language-operator 0.1.62 → 0.1.63
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 +4 -4
- data/Gemfile.lock +1 -1
- data/components/agent/Gemfile +1 -1
- data/lib/language_operator/agent/task_executor.rb +4 -6
- data/lib/language_operator/templates/schema/agent_dsl_openapi.yaml +1 -1
- data/lib/language_operator/templates/schema/agent_dsl_schema.json +1 -1
- data/lib/language_operator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f6ed8ab896b504001c21a4886d8569ad0cf5e0fe4bfde42e22fc892ccb0a4eb
|
|
4
|
+
data.tar.gz: 449dd47813a8db16ac44f4d9ad8936590b1f4888fc5daeb1dc25fe0ed92811c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3bcf0cb1e8bf735c72ddf4b3e2a59ed0491629a9de0309207b211fe280ba80f7fcb0fb6c229330af53f20904f035207435b9d15a74628094ef2fd043f834600d
|
|
7
|
+
data.tar.gz: 262018b777c50235ccaa2654ebef86fc9d289944532e23e6ba79f1a228194c96b24f870a96a21e73bcbefd4f2dedeeba78061f458e6e360e267877c646d54ae0
|
data/Gemfile.lock
CHANGED
data/components/agent/Gemfile
CHANGED
|
@@ -106,6 +106,9 @@ module LanguageOperator
|
|
|
106
106
|
def execute_task(task_name, inputs: {}, timeout: nil, max_retries: nil)
|
|
107
107
|
execution_start = Time.now
|
|
108
108
|
max_retries ||= @config[:max_retries]
|
|
109
|
+
|
|
110
|
+
# Reset JSON parsing retry flag for this task
|
|
111
|
+
@parsing_retry_attempted = false
|
|
109
112
|
|
|
110
113
|
with_span('task_executor.execute_task', attributes: {
|
|
111
114
|
'task.name' => task_name.to_s,
|
|
@@ -211,7 +214,7 @@ module LanguageOperator
|
|
|
211
214
|
parse_neural_response(response_text, task)
|
|
212
215
|
rescue RuntimeError => e
|
|
213
216
|
# If parsing fails and this is a JSON parsing error, try one more time with clarified prompt
|
|
214
|
-
raise e unless e.message.include?('returned invalid JSON') &&
|
|
217
|
+
raise e unless e.message.include?('returned invalid JSON') && !@parsing_retry_attempted
|
|
215
218
|
|
|
216
219
|
@parsing_retry_attempted = true
|
|
217
220
|
|
|
@@ -237,11 +240,6 @@ module LanguageOperator
|
|
|
237
240
|
|
|
238
241
|
# Try parsing the retry response
|
|
239
242
|
parse_neural_response(retry_response_text, task)
|
|
240
|
-
|
|
241
|
-
# Re-raise original error if not a JSON parsing error or already retried
|
|
242
|
-
ensure
|
|
243
|
-
# Reset retry flag for next task
|
|
244
|
-
@parsing_retry_attempted = nil
|
|
245
243
|
end
|
|
246
244
|
end
|
|
247
245
|
|
|
@@ -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.63",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"name": {
|