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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 310b4ac749c21ce318188aa64e86c531edb344f4c19adcc1a37f712deef726ac
4
- data.tar.gz: 04304cd9fb9dbf72bbb1b3be815400ee2cc1eca80bba44719d40e00a7008b99a
3
+ metadata.gz: 0f6ed8ab896b504001c21a4886d8569ad0cf5e0fe4bfde42e22fc892ccb0a4eb
4
+ data.tar.gz: 449dd47813a8db16ac44f4d9ad8936590b1f4888fc5daeb1dc25fe0ed92811c4
5
5
  SHA512:
6
- metadata.gz: b4af61b42e8b7f5cf6ab74a1ed5fb876b9011e936edda6bd38fcd8ded272922e6692729f664d784ca37f07b38caefb442aa4d0c031a75f106fc984b0fa1ab650
7
- data.tar.gz: 3eb996821335e43ffefc3a6423572061b21c89be2cda49a262b7259f78453891fa58e8b74346d3434d02e2eb66dcdfba456ffc6f9952c4dde9d85f1dc7cee329
6
+ metadata.gz: 3bcf0cb1e8bf735c72ddf4b3e2a59ed0491629a9de0309207b211fe280ba80f7fcb0fb6c229330af53f20904f035207435b9d15a74628094ef2fd043f834600d
7
+ data.tar.gz: 262018b777c50235ccaa2654ebef86fc9d289944532e23e6ba79f1a228194c96b24f870a96a21e73bcbefd4f2dedeeba78061f458e6e360e267877c646d54ae0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- language-operator (0.1.62)
4
+ language-operator (0.1.63)
5
5
  faraday (~> 2.0)
6
6
  k8s-ruby (~> 0.17)
7
7
  lru_redux (~> 1.1)
@@ -2,7 +2,7 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- gem 'language-operator', '~> 0.1.62'
5
+ gem 'language-operator', '~> 0.1.63'
6
6
 
7
7
  # Agent-specific dependencies for autonomous execution
8
8
  gem 'concurrent-ruby', '~> 1.3'
@@ -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') && !defined?(@parsing_retry_attempted)
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
 
@@ -2,7 +2,7 @@
2
2
  :openapi: 3.0.3
3
3
  :info:
4
4
  :title: Language Operator Agent API
5
- :version: 0.1.62
5
+ :version: 0.1.63
6
6
  :description: HTTP API endpoints exposed by Language Operator reactive agents
7
7
  :contact:
8
8
  :name: Language Operator
@@ -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.62",
6
+ "version": "0.1.63",
7
7
  "type": "object",
8
8
  "properties": {
9
9
  "name": {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LanguageOperator
4
- VERSION = '0.1.62'
4
+ VERSION = '0.1.63'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: language-operator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.62
4
+ version: 0.1.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Ryan