meshagent-openai 0.0.6__tar.gz → 0.0.7__tar.gz
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.
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/CHANGELOG.md +4 -0
- {meshagent_openai-0.0.6/meshagent_openai.egg-info → meshagent_openai-0.0.7}/PKG-INFO +4 -4
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/meshagent/openai/tools/responses_adapter.py +14 -1
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7/meshagent_openai.egg-info}/PKG-INFO +4 -4
- meshagent_openai-0.0.7/meshagent_openai.egg-info/requires.txt +7 -0
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/setup.py +3 -3
- meshagent_openai-0.0.7/version.py +1 -0
- meshagent_openai-0.0.6/meshagent_openai.egg-info/requires.txt +0 -7
- meshagent_openai-0.0.6/version.py +0 -1
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/LICENSE +0 -0
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/MANIFEST.in +0 -0
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/README.md +0 -0
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/meshagent/openai/__init__.py +0 -0
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/meshagent/openai/tools/__init__.py +0 -0
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/meshagent/openai/tools/completions_adapter.py +0 -0
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/meshagent_openai.egg-info/SOURCES.txt +0 -0
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/meshagent_openai.egg-info/dependency_links.txt +0 -0
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/meshagent_openai.egg-info/top_level.txt +0 -0
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/pyproject.toml +0 -0
- {meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshagent-openai
|
|
3
|
-
Version: 0.0.
|
|
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.
|
|
18
|
-
Requires-Dist: meshagent-agents>=0.0.
|
|
19
|
-
Requires-Dist: meshagent-tools>=0.0.
|
|
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
|
{meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/meshagent/openai/tools/responses_adapter.py
RENAMED
|
@@ -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 =
|
|
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.
|
|
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.
|
|
18
|
-
Requires-Dist: meshagent-agents>=0.0.
|
|
19
|
-
Requires-Dist: meshagent-tools>=0.0.
|
|
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
|
|
@@ -29,9 +29,9 @@ setuptools.setup(
|
|
|
29
29
|
"pytest>=8.3.4",
|
|
30
30
|
"pytest-asyncio>=0.24.0",
|
|
31
31
|
"openai>=1.66.2",
|
|
32
|
-
"meshagent-api>=0.0.
|
|
33
|
-
"meshagent-agents>=0.0.
|
|
34
|
-
"meshagent-tools>=0.0.
|
|
32
|
+
"meshagent-api>=0.0.7",
|
|
33
|
+
"meshagent-agents>=0.0.7",
|
|
34
|
+
"meshagent-tools>=0.0.7"
|
|
35
35
|
],
|
|
36
36
|
package_data={
|
|
37
37
|
"meshagent.openai": ["py.typed", "*.pyi", "**/*.pyi", "**/*.js"],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.7"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.6"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/meshagent/openai/tools/completions_adapter.py
RENAMED
|
File without changes
|
|
File without changes
|
{meshagent_openai-0.0.6 → meshagent_openai-0.0.7}/meshagent_openai.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|