meshagent-anthropic 0.25.4__tar.gz → 0.25.5__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.
Files changed (28) hide show
  1. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/CHANGELOG.md +3 -0
  2. {meshagent_anthropic-0.25.4/meshagent_anthropic.egg-info → meshagent_anthropic-0.25.5}/PKG-INFO +4 -4
  3. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/messages_adapter.py +5 -2
  4. meshagent_anthropic-0.25.5/meshagent/anthropic/version.py +1 -0
  5. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5/meshagent_anthropic.egg-info}/PKG-INFO +4 -4
  6. meshagent_anthropic-0.25.5/meshagent_anthropic.egg-info/requires.txt +6 -0
  7. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/pyproject.toml +3 -3
  8. meshagent_anthropic-0.25.4/meshagent/anthropic/version.py +0 -1
  9. meshagent_anthropic-0.25.4/meshagent_anthropic.egg-info/requires.txt +0 -6
  10. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/LICENSE +0 -0
  11. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/MANIFEST.in +0 -0
  12. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/README.md +0 -0
  13. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/__init__.py +0 -0
  14. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/mcp.py +0 -0
  15. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/openai_responses_stream_adapter.py +0 -0
  16. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/proxy/__init__.py +0 -0
  17. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/proxy/proxy.py +0 -0
  18. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/request_tool.py +0 -0
  19. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/tests/anthropic_live_test.py +0 -0
  20. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/tests/mcp_test.py +0 -0
  21. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/tests/messages_adapter_test.py +0 -0
  22. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/tests/openai_responses_stream_adapter_test.py +0 -0
  23. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/web_fetch.py +0 -0
  24. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent/anthropic/web_search.py +0 -0
  25. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent_anthropic.egg-info/SOURCES.txt +0 -0
  26. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent_anthropic.egg-info/dependency_links.txt +0 -0
  27. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/meshagent_anthropic.egg-info/top_level.txt +0 -0
  28. {meshagent_anthropic-0.25.4 → meshagent_anthropic-0.25.5}/setup.cfg +0 -0
@@ -1,3 +1,6 @@
1
+ ## [0.25.5]
2
+ - Stability
3
+
1
4
  ## [0.25.4]
2
5
  - Stability
3
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-anthropic
3
- Version: 0.25.4
3
+ Version: 0.25.5
4
4
  Summary: Anthropic Building Blocks for Meshagent
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Documentation, https://docs.meshagent.com
@@ -11,9 +11,9 @@ Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
12
  Requires-Dist: pytest~=8.4
13
13
  Requires-Dist: pytest-asyncio~=0.26
14
- Requires-Dist: meshagent-api~=0.25.4
15
- Requires-Dist: meshagent-agents~=0.25.4
16
- Requires-Dist: meshagent-tools~=0.25.4
14
+ Requires-Dist: meshagent-api~=0.25.5
15
+ Requires-Dist: meshagent-agents~=0.25.5
16
+ Requires-Dist: meshagent-tools~=0.25.5
17
17
  Requires-Dist: anthropic<1.0,>=0.25
18
18
  Dynamic: license-file
19
19
 
@@ -196,6 +196,9 @@ class AnthropicMessagesToolResponseAdapter(ToolResponseAdapter):
196
196
  }
197
197
  ]
198
198
 
199
+ elif mime_type.startswith("text/") or mime_type == "application/json":
200
+ tool_result_content = [_text_block(response.data.decode())]
201
+
199
202
  else:
200
203
  output = await self.to_plain_text(room=room, response=response)
201
204
  tool_result_content = [_text_block(output)]
@@ -236,7 +239,7 @@ class AnthropicMessagesAdapter(LLMAdapter[dict]):
236
239
  def __init__(
237
240
  self,
238
241
  model: str = os.getenv("ANTHROPIC_MODEL", "claude-3-5-sonnet-latest"),
239
- max_tokens: int = int(os.getenv("ANTHROPIC_MAX_TOKENS", "1024")),
242
+ max_tokens: int = int(os.getenv("ANTHROPIC_MAX_TOKENS", "8192")),
240
243
  client: Optional[Any] = None,
241
244
  message_options: Optional[dict] = None,
242
245
  provider: str = "anthropic",
@@ -568,7 +571,7 @@ class AnthropicMessagesAdapter(LLMAdapter[dict]):
568
571
  )
569
572
  except Exception as ex:
570
573
  logger.error(
571
- f"error in tool call {tool_use.get('name')}:",
574
+ f"error in tool call {json.dumps(tool_use)}:",
572
575
  exc_info=ex,
573
576
  )
574
577
  tool_result_content = [_text_block(f"Error: {ex}")]
@@ -0,0 +1 @@
1
+ __version__ = "0.25.5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-anthropic
3
- Version: 0.25.4
3
+ Version: 0.25.5
4
4
  Summary: Anthropic Building Blocks for Meshagent
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Documentation, https://docs.meshagent.com
@@ -11,9 +11,9 @@ Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
12
  Requires-Dist: pytest~=8.4
13
13
  Requires-Dist: pytest-asyncio~=0.26
14
- Requires-Dist: meshagent-api~=0.25.4
15
- Requires-Dist: meshagent-agents~=0.25.4
16
- Requires-Dist: meshagent-tools~=0.25.4
14
+ Requires-Dist: meshagent-api~=0.25.5
15
+ Requires-Dist: meshagent-agents~=0.25.5
16
+ Requires-Dist: meshagent-tools~=0.25.5
17
17
  Requires-Dist: anthropic<1.0,>=0.25
18
18
  Dynamic: license-file
19
19
 
@@ -0,0 +1,6 @@
1
+ pytest~=8.4
2
+ pytest-asyncio~=0.26
3
+ meshagent-api~=0.25.5
4
+ meshagent-agents~=0.25.5
5
+ meshagent-tools~=0.25.5
6
+ anthropic<1.0,>=0.25
@@ -12,9 +12,9 @@ keywords = []
12
12
  dependencies = [
13
13
  "pytest~=8.4",
14
14
  "pytest-asyncio~=0.26",
15
- "meshagent-api~=0.25.4",
16
- "meshagent-agents~=0.25.4",
17
- "meshagent-tools~=0.25.4",
15
+ "meshagent-api~=0.25.5",
16
+ "meshagent-agents~=0.25.5",
17
+ "meshagent-tools~=0.25.5",
18
18
  "anthropic>=0.25,<1.0"
19
19
  ]
20
20
 
@@ -1 +0,0 @@
1
- __version__ = "0.25.4"
@@ -1,6 +0,0 @@
1
- pytest~=8.4
2
- pytest-asyncio~=0.26
3
- meshagent-api~=0.25.4
4
- meshagent-agents~=0.25.4
5
- meshagent-tools~=0.25.4
6
- anthropic<1.0,>=0.25