Meshagent
MeshAgent Anthropic
The meshagent.anthropic package provides adapters to integrate Anthropic models (Messages API) with MeshAgent tools and agents.
Messages Adapter
AnthropicMessagesAdapter: wraps the Anthropic Messages API. It turnsToolkitobjects into Anthropic tool definitions, executes tool calls, and returns the final assistant response.
from meshagent.anthropic import AnthropicMessagesAdapter
adapter = AnthropicMessagesAdapter(model="claude-3-5-sonnet-latest")
Compaction can be enabled through Anthropic context management:
adapter = AnthropicMessagesAdapter(
model="claude-sonnet-4-5",
context_management="auto",
compaction_threshold=150000,
)
You can also pass base_url= to AnthropicMessagesAdapter. If omitted, MeshAgent reads ANTHROPIC_BASE_URL from the environment when constructing the provider client.
Tool Response Adapter
AnthropicMessagesToolResponseAdapter converts a tool's structured response into Anthropic tool_result blocks that can be inserted back into the conversation.
Learn more about MeshAgent on our website or check out the docs for additional examples!
Website: www.meshagent.com
Documentation: docs.meshagent.com
Metadata
Release files for meshagent-anthropic 0.53.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| meshagent_anthropic-0.53.2.tar.gz | 83.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| meshagent_anthropic-0.53.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 151.2 kB
Release files / meshagent_anthropic-0.53.2.tar.gz
| Download URL | meshagent_anthropic-0.53.2.tar.gz |
|---|---|
| Size | 83.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d225cc474b51a3e3cd32d130eb81ff676c7a331e797917e6a3c722b55024397
|
|
BLAKE2b-256 checksum How to use checksums |
efe62f49cefe6e00947a585859a14f9ebe1f38d05de102be2e09abb4c894b53c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / meshagent_anthropic-0.53.2-py3-none-any.whl
| Download URL | meshagent_anthropic-0.53.2-py3-none-any.whl |
|---|---|
| Size | 68.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5076a0cc50c72f72780342504bb59853a5a8a83234f83d0f0203e09b2952b0b8
|
|
BLAKE2b-256 checksum How to use checksums |
0072a450da2536d8ee7e596227a2b021a6b98d7b81bc1b670dfa5f5c251992c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|