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.4
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.4.tar.gz | 83.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| meshagent_anthropic-0.53.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 151.4 kB
Release files / meshagent_anthropic-0.53.4.tar.gz
| Download URL | meshagent_anthropic-0.53.4.tar.gz |
|---|---|
| Size | 83.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2deb2a26bb5e8d36562a712381dbc7d7f241867a7ff968d2ef721e0faf1ef88f
|
|
BLAKE2b-256 checksum How to use checksums |
d59708c6cccd4442c7ae80c041309f97ca597f06aa993fc35a8289ce3be04d87
|
| 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.4-py3-none-any.whl
| Download URL | meshagent_anthropic-0.53.4-py3-none-any.whl |
|---|---|
| Size | 68.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29233ab5eb2dd481418ae943077b84d8e7700ea1845b37106a1ce9c65aea3704
|
|
BLAKE2b-256 checksum How to use checksums |
617478c04ac177b9c1fa92062ed4ed88c5e9edf8e5bc42983450e50d536a2220
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|