meshagent-openai 0.0.25__tar.gz → 0.0.26__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.

Files changed (19) hide show
  1. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/CHANGELOG.md +3 -0
  2. {meshagent_openai-0.0.25/meshagent_openai.egg-info → meshagent_openai-0.0.26}/PKG-INFO +4 -4
  3. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/meshagent/openai/tools/completions_adapter.py +1 -2
  4. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/meshagent/openai/tools/responses_adapter.py +5 -5
  5. meshagent_openai-0.0.26/meshagent/openai/version.py +1 -0
  6. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26/meshagent_openai.egg-info}/PKG-INFO +4 -4
  7. meshagent_openai-0.0.26/meshagent_openai.egg-info/requires.txt +7 -0
  8. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/pyproject.toml +3 -3
  9. meshagent_openai-0.0.25/meshagent/openai/version.py +0 -1
  10. meshagent_openai-0.0.25/meshagent_openai.egg-info/requires.txt +0 -7
  11. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/LICENSE +0 -0
  12. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/MANIFEST.in +0 -0
  13. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/README.md +0 -0
  14. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/meshagent/openai/__init__.py +0 -0
  15. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/meshagent/openai/tools/__init__.py +0 -0
  16. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/meshagent_openai.egg-info/SOURCES.txt +0 -0
  17. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/meshagent_openai.egg-info/dependency_links.txt +0 -0
  18. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/meshagent_openai.egg-info/top_level.txt +0 -0
  19. {meshagent_openai-0.0.25 → meshagent_openai-0.0.26}/setup.cfg +0 -0
@@ -1,3 +1,6 @@
1
+ ## [0.0.26]
2
+ - Stability
3
+
1
4
  ## [0.0.25]
2
5
  - Stability
3
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-openai
3
- Version: 0.0.25
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.25
17
- Requires-Dist: meshagent-agents~=0.0.25
18
- Requires-Dist: meshagent-tools~=0.0.25
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
@@ -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)
@@ -0,0 +1 @@
1
+ __version__ = "0.0.26"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-openai
3
- Version: 0.0.25
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.25
17
- Requires-Dist: meshagent-agents~=0.0.25
18
- Requires-Dist: meshagent-tools~=0.0.25
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,7 @@
1
+ pyjwt~=2.10.1
2
+ pytest~=8.3.5
3
+ pytest-asyncio~=0.26.0
4
+ openai~=1.70.0
5
+ meshagent-api~=0.0.26
6
+ meshagent-agents~=0.0.26
7
+ meshagent-tools~=0.0.26
@@ -14,9 +14,9 @@ dependencies = [
14
14
  "pytest~=8.3.5",
15
15
  "pytest-asyncio~=0.26.0",
16
16
  "openai~=1.70.0",
17
- "meshagent-api~=0.0.25",
18
- "meshagent-agents~=0.0.25",
19
- "meshagent-tools~=0.0.25"
17
+ "meshagent-api~=0.0.26",
18
+ "meshagent-agents~=0.0.26",
19
+ "meshagent-tools~=0.0.26"
20
20
  ]
21
21
 
22
22
  [project.urls]
@@ -1 +0,0 @@
1
- __version__ = "0.0.25"
@@ -1,7 +0,0 @@
1
- pyjwt~=2.10.1
2
- pytest~=8.3.5
3
- pytest-asyncio~=0.26.0
4
- openai~=1.70.0
5
- meshagent-api~=0.0.25
6
- meshagent-agents~=0.0.25
7
- meshagent-tools~=0.0.25