language-operator 0.1.39 → 0.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e670a07610f07576228d91fbe02a1ac45e5ce43633bc9b4fc9974db52a04b08
|
|
4
|
+
data.tar.gz: ed8ef8e1e9a9a132582a734676f7aff1745565690fbbe40d7046fc058a3f3b6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6b727e3736603600df84f13c9c0ea3b3bb98335fc1eabcd20669ccc8908b3b13c631125fe6362bb5f3f13218f4f558c4b37b224d04d2d36bdc32059c8234b18
|
|
7
|
+
data.tar.gz: 8f0ff851ae3cb6b573b315c35e1158db30ec066d74861968be6751a8bb47a99259a28320c553f56face105e17893d81f6e9946ccac8d7f85dfce0b83084862b6
|
data/Gemfile.lock
CHANGED
|
@@ -50,6 +50,27 @@ module LanguageOperator
|
|
|
50
50
|
load_and_run(agent)
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
# Load and run agent from a specific file path
|
|
54
|
+
#
|
|
55
|
+
# @param code_path [String] Path to agent DSL code file
|
|
56
|
+
# @param agent_name [String, nil] Name of the agent definition to run
|
|
57
|
+
# @param config_path [String, nil] Path to configuration file
|
|
58
|
+
# @return [void]
|
|
59
|
+
def self.load_and_run_from_file(code_path, agent_name = nil, config_path: nil)
|
|
60
|
+
# Disable stdout buffering for real-time logging in containers
|
|
61
|
+
$stdout.sync = true
|
|
62
|
+
$stderr.sync = true
|
|
63
|
+
|
|
64
|
+
config_path ||= ENV.fetch('CONFIG_PATH', 'config.yaml')
|
|
65
|
+
config = LanguageOperator::Client::Config.load_with_fallback(config_path)
|
|
66
|
+
|
|
67
|
+
# Create agent instance
|
|
68
|
+
agent = LanguageOperator::Agent::Base.new(config)
|
|
69
|
+
|
|
70
|
+
# Load and run the specified agent code
|
|
71
|
+
load_synthesized_agent(agent, code_path, agent_name)
|
|
72
|
+
end
|
|
73
|
+
|
|
53
74
|
# Load synthesized agent code and run with definition if available
|
|
54
75
|
#
|
|
55
76
|
# @param agent [LanguageOperator::Agent::Base] The agent instance
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "https://github.com/language-operator/language-operator-gem/schema/agent-dsl.json",
|
|
4
4
|
"title": "Language Operator Agent DSL",
|
|
5
5
|
"description": "Schema for defining autonomous AI agents using the Language Operator DSL",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.40",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"name": {
|