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.0
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.0.tar.gz | 83.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| meshagent_anthropic-0.53.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 151.2 kB
Release files / meshagent_anthropic-0.53.0.tar.gz
| Download URL | meshagent_anthropic-0.53.0.tar.gz |
|---|---|
| Size | 83.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
440ebb3aac57cd97073661b68a602d697dd4f4eb7f6a944f00f17178bc9fffac
|
|
BLAKE2b-256 checksum How to use checksums |
a8b82552842c73b90afce9d80d968cc991a6246e3ad6c774beb641f92d8237bb
|
| 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.0-py3-none-any.whl
| Download URL | meshagent_anthropic-0.53.0-py3-none-any.whl |
|---|---|
| Size | 68.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fbf3797b5f7a7ea50e99775d1d7349dd4719dc632c059568dc31b78e5b6e8f9
|
|
BLAKE2b-256 checksum How to use checksums |
7c62bb573bc8e74af515b74613f78a6a5b7a6781d221b1e43801c36622a0b6fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|