Skip to main content

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 turns Toolkit objects 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.58.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meshagent-anthropic 0.58.1
File Size Uploaded Provenance Actions
meshagent_anthropic-0.58.1.tar.gz 84.8 kB Without provenance Details for meshagent_anthropic-0.58.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for meshagent-anthropic 0.58.1
File Interpreter ABI Platform Actions
meshagent_anthropic-0.58.1-py3-none-any.whl Python 3 none any Details for meshagent_anthropic-0.58.1-py3-none-any.whl

Total release size: 152.8 kB

Release files / meshagent_anthropic-0.58.1.tar.gz

Download URL meshagent_anthropic-0.58.1.tar.gz
Size 84.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3e9a7b4da0ccb1960a7c601a3294da2b36cbfb036d14b7e7f969cf9a263aa33e
BLAKE2b-256 checksum
How to use checksums
fc2f5a70eda4ffb7476cf64a87f551973df30787f24bdcabc26dfd2d3ca301d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / meshagent_anthropic-0.58.1-py3-none-any.whl

Download URL meshagent_anthropic-0.58.1-py3-none-any.whl
Size 68.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0fdc80de596720e239ddb29b0c1271be85122c23dea6e74ffcc1e5bcd6ee5f79
BLAKE2b-256 checksum
How to use checksums
dbf4422012d3064f71d2df643092ee55c329e2eff4b804ef5f23ac24adaf1b95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for meshagent-anthropic 0.58.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.58.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page