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.54.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 | Provenance | |
|---|---|---|---|---|
| meshagent_anthropic-0.54.2.tar.gz | 83.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| meshagent_anthropic-0.54.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 151.6 kB
Release files / meshagent_anthropic-0.54.2.tar.gz
| Download URL | meshagent_anthropic-0.54.2.tar.gz |
|---|---|
| Size | 83.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59fbdb61d369f0562f410d113a482e224c4b6436663946a79951f046b2d60edc
|
|
BLAKE2b-256 checksum How to use checksums |
7acda9c7371243047d5c15253a7f0cbdfb7eb1e7b364f1909c780098a9bea3b3
|
| 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.54.2-py3-none-any.whl
| Download URL | meshagent_anthropic-0.54.2-py3-none-any.whl |
|---|---|
| Size | 68.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04ab299750eaeb98f801124861e8014eb363f141a05c223c7b0ecd052cf46307
|
|
BLAKE2b-256 checksum How to use checksums |
4ddc7686bab9607af6f76af96b9634f3fbf84f6a5cb493a207d46c4b074908f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for meshagent-anthropic 0.54.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.