meshagent-anthropic 0.25.3__py3-none-any.whl → 0.25.5__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.
- meshagent/anthropic/messages_adapter.py +5 -2
- meshagent/anthropic/version.py +1 -1
- {meshagent_anthropic-0.25.3.dist-info → meshagent_anthropic-0.25.5.dist-info}/METADATA +4 -4
- {meshagent_anthropic-0.25.3.dist-info → meshagent_anthropic-0.25.5.dist-info}/RECORD +7 -7
- {meshagent_anthropic-0.25.3.dist-info → meshagent_anthropic-0.25.5.dist-info}/WHEEL +0 -0
- {meshagent_anthropic-0.25.3.dist-info → meshagent_anthropic-0.25.5.dist-info}/licenses/LICENSE +0 -0
- {meshagent_anthropic-0.25.3.dist-info → meshagent_anthropic-0.25.5.dist-info}/top_level.txt +0 -0
|
@@ -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", "
|
|
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 {
|
|
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}")]
|
meshagent/anthropic/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.25.
|
|
1
|
+
__version__ = "0.25.5"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshagent-anthropic
|
|
3
|
-
Version: 0.25.
|
|
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.
|
|
15
|
-
Requires-Dist: meshagent-agents~=0.25.
|
|
16
|
-
Requires-Dist: meshagent-tools~=0.25.
|
|
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
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
meshagent/anthropic/__init__.py,sha256=Pnh3_HRESWLfL_ntR3Jjt5oSuWwEHMJkTRBPH69hA-M,833
|
|
2
2
|
meshagent/anthropic/mcp.py,sha256=KdH5r8Eu_3bWTttV-mNTgFBkAuf3fvaDWWXmTO93kLs,3148
|
|
3
|
-
meshagent/anthropic/messages_adapter.py,sha256=
|
|
3
|
+
meshagent/anthropic/messages_adapter.py,sha256=RfZgMMdut79K1bePyXKSTdKiGA6COIX25seLHmyrkI8,25050
|
|
4
4
|
meshagent/anthropic/openai_responses_stream_adapter.py,sha256=Pxn6LjMKzZJrFwxtDiMKunVaOxQ3pgWfjHODhuBdSTU,15967
|
|
5
5
|
meshagent/anthropic/request_tool.py,sha256=053qqtkLhcugsI3AQjpt4AzMRQE-SC4szI4P5usAd1s,839
|
|
6
|
-
meshagent/anthropic/version.py,sha256=
|
|
6
|
+
meshagent/anthropic/version.py,sha256=9zCh_8lz8S_e8JlXmwkSbkp_uQhvRgQSEOH1abFGMw8,23
|
|
7
7
|
meshagent/anthropic/web_fetch.py,sha256=jKOq3Hcyqm0q_CsQdPzXHXHhyBI8VBbXj-ZowjKCiRI,2637
|
|
8
8
|
meshagent/anthropic/web_search.py,sha256=1ua9G9cIeZMOM-sQnIUYXlW54g_fc6edcxDA0o4srM0,2600
|
|
9
9
|
meshagent/anthropic/proxy/__init__.py,sha256=_E4wvJC90tmMnatDodkD0kIB8zsDZ4_zFd-5s86WQ8c,106
|
|
@@ -12,8 +12,8 @@ meshagent/anthropic/tests/anthropic_live_test.py,sha256=t8Uy8za0He4p4oXhnVFAx6vs
|
|
|
12
12
|
meshagent/anthropic/tests/mcp_test.py,sha256=Su2GTHYN8ntNNhmmmnMKS5iDgJIuKKDJQT8Or_8LQO0,2286
|
|
13
13
|
meshagent/anthropic/tests/messages_adapter_test.py,sha256=BQV1zOB1xM1-wRuGyvmIdeMhubmgmZH_1-tQLFXZLi8,5265
|
|
14
14
|
meshagent/anthropic/tests/openai_responses_stream_adapter_test.py,sha256=WLkF5wSRYKV83n3GgIDoKI4EQdNJS6_EqC1_7RlMNHs,2842
|
|
15
|
-
meshagent_anthropic-0.25.
|
|
16
|
-
meshagent_anthropic-0.25.
|
|
17
|
-
meshagent_anthropic-0.25.
|
|
18
|
-
meshagent_anthropic-0.25.
|
|
19
|
-
meshagent_anthropic-0.25.
|
|
15
|
+
meshagent_anthropic-0.25.5.dist-info/licenses/LICENSE,sha256=TRD-XzqhdrBbIpokiGa61wuDTBc_ElKoFP9HSNihODc,10255
|
|
16
|
+
meshagent_anthropic-0.25.5.dist-info/METADATA,sha256=oEO3ws9uXOdlZO2nNe--bgqtM4jc6LuyNan8LCALJcQ,1595
|
|
17
|
+
meshagent_anthropic-0.25.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
18
|
+
meshagent_anthropic-0.25.5.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
|
|
19
|
+
meshagent_anthropic-0.25.5.dist-info/RECORD,,
|
|
File without changes
|
{meshagent_anthropic-0.25.3.dist-info → meshagent_anthropic-0.25.5.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|