meshagent-openai 0.0.6__py3-none-any.whl → 0.0.7__py3-none-any.whl

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.

Potentially problematic release.


This version of meshagent-openai might be problematic. Click here for more details.

@@ -235,7 +235,7 @@ class OpenAIResponsesAdapter(LLMAdapter[ResponsesToolBundle]):
235
235
  model: str = os.getenv("OPENAI_MODEL"),
236
236
  parallel_tool_calls : Optional[bool] = None,
237
237
  client: Optional[AsyncOpenAI] = None,
238
- retries : int = 10,
238
+ retries : int = 0,
239
239
  response_options : Optional[dict] = None
240
240
  ):
241
241
  self._model = model
@@ -473,7 +473,9 @@ class OpenAIResponsesAdapter(LLMAdapter[ResponsesToolBundle]):
473
473
 
474
474
  final_outputs = []
475
475
 
476
+
476
477
  for message in response.output:
478
+ context.previous_messages.append(message.to_dict())
477
479
  outputs, done = await handle_message(message=message)
478
480
  if done:
479
481
  final_outputs.extend(outputs)
@@ -484,6 +486,17 @@ class OpenAIResponsesAdapter(LLMAdapter[ResponsesToolBundle]):
484
486
  if len(final_outputs) > 0:
485
487
 
486
488
  return final_outputs[0]
489
+
490
+ term = await self.check_for_termination(context=context, room=room)
491
+ if term:
492
+ text = ""
493
+ for output in response.output:
494
+ if output.type == "message":
495
+ for content in output.content:
496
+ text += content.text
497
+
498
+ return text
499
+
487
500
 
488
501
  else:
489
502
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-openai
3
- Version: 0.0.6
3
+ Version: 0.0.7
4
4
  Summary: OpenAI Building Blocks for Meshagent
5
5
  Home-page:
6
6
  License: Apache License 2.0
@@ -14,9 +14,9 @@ Requires-Dist: pyjwt>=2.0.0
14
14
  Requires-Dist: pytest>=8.3.4
15
15
  Requires-Dist: pytest-asyncio>=0.24.0
16
16
  Requires-Dist: openai>=1.66.2
17
- Requires-Dist: meshagent-api>=0.0.6
18
- Requires-Dist: meshagent-agents>=0.0.6
19
- Requires-Dist: meshagent-tools>=0.0.6
17
+ Requires-Dist: meshagent-api>=0.0.7
18
+ Requires-Dist: meshagent-agents>=0.0.7
19
+ Requires-Dist: meshagent-tools>=0.0.7
20
20
  Dynamic: description-content-type
21
21
  Dynamic: license
22
22
  Dynamic: license-file
@@ -0,0 +1,9 @@
1
+ meshagent/openai/__init__.py,sha256=qAqthmkQBsTqmrnVbtGOeaWCz9o5N48uEUCX7irzEsg,141
2
+ meshagent/openai/tools/__init__.py,sha256=RBU_J4qRDuBaaUdi6jpgpuMlIbvT30QmTBrZrYLwsUU,185
3
+ meshagent/openai/tools/completions_adapter.py,sha256=Rqq8c9E4lkVKrXkbWFcTPHQFCLcoomdM1nIiU1a_T7w,15123
4
+ meshagent/openai/tools/responses_adapter.py,sha256=mC0I6pmSy3d7tSq7Nm1LhuFmuibzXK0oCE0zPuRqqDI,22618
5
+ meshagent_openai-0.0.7.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
6
+ meshagent_openai-0.0.7.dist-info/METADATA,sha256=XUJbVfUC1mZ9yvwX_skoDCvVpG7OiMh1auDq5YcWLdk,774
7
+ meshagent_openai-0.0.7.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
8
+ meshagent_openai-0.0.7.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
9
+ meshagent_openai-0.0.7.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (77.0.1)
2
+ Generator: setuptools (77.0.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,9 +0,0 @@
1
- meshagent/openai/__init__.py,sha256=qAqthmkQBsTqmrnVbtGOeaWCz9o5N48uEUCX7irzEsg,141
2
- meshagent/openai/tools/__init__.py,sha256=RBU_J4qRDuBaaUdi6jpgpuMlIbvT30QmTBrZrYLwsUU,185
3
- meshagent/openai/tools/completions_adapter.py,sha256=Rqq8c9E4lkVKrXkbWFcTPHQFCLcoomdM1nIiU1a_T7w,15123
4
- meshagent/openai/tools/responses_adapter.py,sha256=fEGj-yIM3Sxv__2aMP7WkVZkQzhElKbHRO9xegRXerI,22080
5
- meshagent_openai-0.0.6.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
6
- meshagent_openai-0.0.6.dist-info/METADATA,sha256=sheEI0Otfty9FDawTrFRrxFwEoJ-ssCfnnS_XCcj-lw,774
7
- meshagent_openai-0.0.6.dist-info/WHEEL,sha256=tTnHoFhvKQHCh4jz3yCn0WPTYIy7wXx3CJtJ7SJGV7c,91
8
- meshagent_openai-0.0.6.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
9
- meshagent_openai-0.0.6.dist-info/RECORD,,