meshagent-openai 0.0.24__py3-none-any.whl → 0.0.26__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.
- meshagent/openai/tools/completions_adapter.py +1 -2
- meshagent/openai/tools/responses_adapter.py +5 -5
- meshagent/openai/version.py +1 -1
- {meshagent_openai-0.0.24.dist-info → meshagent_openai-0.0.26.dist-info}/METADATA +4 -4
- meshagent_openai-0.0.26.dist-info/RECORD +10 -0
- {meshagent_openai-0.0.24.dist-info → meshagent_openai-0.0.26.dist-info}/WHEEL +1 -1
- meshagent_openai-0.0.24.dist-info/RECORD +0 -10
- {meshagent_openai-0.0.24.dist-info → meshagent_openai-0.0.26.dist-info}/licenses/LICENSE +0 -0
- {meshagent_openai-0.0.24.dist-info → meshagent_openai-0.0.26.dist-info}/top_level.txt +0 -0
|
@@ -201,10 +201,9 @@ class OpenAICompletionsToolResponseAdapter(ToolResponseAdapter):
|
|
|
201
201
|
"content" : await self.to_plain_text(room=room, response=response),
|
|
202
202
|
"tool_call_id" : tool_call.id,
|
|
203
203
|
}
|
|
204
|
-
|
|
205
204
|
|
|
206
205
|
room.developer.log_nowait(type="llm.message", data={ "context" : context.id, "participant_id" : room.local_participant.id, "participant_name" : room.local_participant.get_attribute("name"), "message" : message })
|
|
207
|
-
|
|
206
|
+
|
|
208
207
|
return [ message ]
|
|
209
208
|
|
|
210
209
|
|
|
@@ -314,11 +314,9 @@ class OpenAIResponsesAdapter(LLMAdapter[ResponsesToolBundle]):
|
|
|
314
314
|
|
|
315
315
|
openai = self._get_client(room=room)
|
|
316
316
|
|
|
317
|
-
|
|
318
317
|
response_schema = output_schema
|
|
319
318
|
response_name = "response"
|
|
320
319
|
|
|
321
|
-
|
|
322
320
|
while True:
|
|
323
321
|
|
|
324
322
|
# We need to do this inside the loop because tools can change mid loop
|
|
@@ -386,7 +384,10 @@ class OpenAIResponsesAdapter(LLMAdapter[ResponsesToolBundle]):
|
|
|
386
384
|
|
|
387
385
|
|
|
388
386
|
async def handle_message(message):
|
|
389
|
-
|
|
387
|
+
|
|
388
|
+
room.developer.log_nowait(type=f"llm.message", data={
|
|
389
|
+
"context" : context.id, "participant_id" : room.local_participant.id, "participant_name" : room.local_participant.get_attribute("name"), "message" : message.to_dict()
|
|
390
|
+
})
|
|
390
391
|
|
|
391
392
|
if message.type == "function_call":
|
|
392
393
|
|
|
@@ -455,6 +456,7 @@ class OpenAIResponsesAdapter(LLMAdapter[ResponsesToolBundle]):
|
|
|
455
456
|
# First try to parse the result
|
|
456
457
|
try:
|
|
457
458
|
full_response = json.loads(content.text)
|
|
459
|
+
|
|
458
460
|
# sometimes open ai packs two JSON chunks seperated by newline, check if that's why we couldn't parse
|
|
459
461
|
except json.decoder.JSONDecodeError as e:
|
|
460
462
|
for part in content.text.splitlines():
|
|
@@ -538,8 +540,6 @@ class OpenAIResponsesAdapter(LLMAdapter[ResponsesToolBundle]):
|
|
|
538
540
|
|
|
539
541
|
elif event.type == "response.output_item.done":
|
|
540
542
|
|
|
541
|
-
room.developer.log_nowait(type="llm.output", data={ "context" : context.id, "participant_id" : room.local_participant.id, "participant_name" : room.local_participant.get_attribute("name"), "response" : event.to_dict() })
|
|
542
|
-
|
|
543
543
|
context.previous_messages.append(event.item.to_dict())
|
|
544
544
|
|
|
545
545
|
outputs, done = await handle_message(message=event.item)
|
meshagent/openai/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.0.
|
|
1
|
+
__version__ = "0.0.26"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshagent-openai
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.26
|
|
4
4
|
Summary: OpenAI Building Blocks for Meshagent
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Project-URL: Documentation, https://docs.meshagent.com
|
|
@@ -13,9 +13,9 @@ Requires-Dist: pyjwt~=2.10.1
|
|
|
13
13
|
Requires-Dist: pytest~=8.3.5
|
|
14
14
|
Requires-Dist: pytest-asyncio~=0.26.0
|
|
15
15
|
Requires-Dist: openai~=1.70.0
|
|
16
|
-
Requires-Dist: meshagent-api~=0.0.
|
|
17
|
-
Requires-Dist: meshagent-agents~=0.0.
|
|
18
|
-
Requires-Dist: meshagent-tools~=0.0.
|
|
16
|
+
Requires-Dist: meshagent-api~=0.0.26
|
|
17
|
+
Requires-Dist: meshagent-agents~=0.0.26
|
|
18
|
+
Requires-Dist: meshagent-tools~=0.0.26
|
|
19
19
|
Dynamic: license-file
|
|
20
20
|
|
|
21
21
|
### Meshagent OpenAI
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
meshagent/openai/__init__.py,sha256=4JRby-ltGfJzrNYhJkMNIpVc2ml2zL_JkkFC0T1_8Vk,174
|
|
2
|
+
meshagent/openai/version.py,sha256=z29JBD25DddXLFEuHGkjmgFe-J9BefGzGLo7FXpMNtM,22
|
|
3
|
+
meshagent/openai/tools/__init__.py,sha256=RBU_J4qRDuBaaUdi6jpgpuMlIbvT30QmTBrZrYLwsUU,185
|
|
4
|
+
meshagent/openai/tools/completions_adapter.py,sha256=4xEfs57O5GrIRnz1_yVRd3nJpC521lMKFO7RANczRnw,15191
|
|
5
|
+
meshagent/openai/tools/responses_adapter.py,sha256=QdTnnSvsGK0nMgceEX-kwo1lAc59ot7G1CYre-n6aFM,23390
|
|
6
|
+
meshagent_openai-0.0.26.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
|
|
7
|
+
meshagent_openai-0.0.26.dist-info/METADATA,sha256=fJsQe_6woQ_tHHEjrBPU-LwBP6fylvxXTinOytEHbWo,660
|
|
8
|
+
meshagent_openai-0.0.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
meshagent_openai-0.0.26.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
|
|
10
|
+
meshagent_openai-0.0.26.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
meshagent/openai/__init__.py,sha256=4JRby-ltGfJzrNYhJkMNIpVc2ml2zL_JkkFC0T1_8Vk,174
|
|
2
|
-
meshagent/openai/version.py,sha256=sE45w-zCTIpVQyXYRbP5E390wIU6bNzRFuAh6ySoc1w,22
|
|
3
|
-
meshagent/openai/tools/__init__.py,sha256=RBU_J4qRDuBaaUdi6jpgpuMlIbvT30QmTBrZrYLwsUU,185
|
|
4
|
-
meshagent/openai/tools/completions_adapter.py,sha256=osEOIXpME4EJnpmQ32QlK95F6oelwxW49DscFX8XNi0,15226
|
|
5
|
-
meshagent/openai/tools/responses_adapter.py,sha256=MbFXd8yVOBK6HBa4rR4FynL1Ihe09jRL0tyEbs6uLjY,23350
|
|
6
|
-
meshagent_openai-0.0.24.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
|
|
7
|
-
meshagent_openai-0.0.24.dist-info/METADATA,sha256=04A91QkHrMgGCSDKyKpMsJ5E0i-c4hJ3xM6Fs9vtlrQ,660
|
|
8
|
-
meshagent_openai-0.0.24.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
9
|
-
meshagent_openai-0.0.24.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
|
|
10
|
-
meshagent_openai-0.0.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|