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.52.3
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.52.3.tar.gz | 82.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| meshagent_anthropic-0.52.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 150.8 kB
Release files / meshagent_anthropic-0.52.3.tar.gz
| Download URL | meshagent_anthropic-0.52.3.tar.gz |
|---|---|
| Size | 82.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
564134719866c32f5b2d1b23bef5c75dedfc5a7f2c19bca0772b30c3b94b3e5b
|
|
BLAKE2b-256 checksum How to use checksums |
38bc51feada620c7f0d02d84b7b882bb0aef12a2fd2658c1232967ad58e163da
|
| 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.52.3-py3-none-any.whl
| Download URL | meshagent_anthropic-0.52.3-py3-none-any.whl |
|---|---|
| Size | 68.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9d2020ef2d352bef3344ec9de5c7ceae0143e00101a3fe0b6c97ef24cdb06dd
|
|
BLAKE2b-256 checksum How to use checksums |
17bfd751bfac45c157112c4ba3d4df66543d293b53f665e008f473b1900c7378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|