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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meshagent_anthropic-0.51.5.tar.gz (82.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meshagent_anthropic-0.51.5-py3-none-any.whl (68.0 kB view details)

Uploaded Python 3

File details

Details for the file meshagent_anthropic-0.51.5.tar.gz.

File metadata

  • Download URL: meshagent_anthropic-0.51.5.tar.gz
  • Upload date:
  • Size: 82.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for meshagent_anthropic-0.51.5.tar.gz
Algorithm Hash digest
SHA256 098566cf6fc9c273ed12ff8ad1c8e7ec3bb162e15f75954342c3dd0a2388c226
MD5 58806f5cc5d7a80309fd390c7c54ad64
BLAKE2b-256 dfbab9af59f4952aa49818a3e3bc4e255effae0f2d4302371a08522c5fb8226a

See more details on using hashes here.

File details

Details for the file meshagent_anthropic-0.51.5-py3-none-any.whl.

File metadata

File hashes

Hashes for meshagent_anthropic-0.51.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f1c129fb87049865dfa51a44c8981e3872faa224dab73f0b16471d34cd019ba9
MD5 9b48281497f950b0dffe2ff07f211a62
BLAKE2b-256 7f7279786a476bf7f1311e46c96cae55ef308367370713d95ed587b72170167d

See more details on using hashes here.

Release history Release notifications | RSS feed

0.52.1

2 files

0.52.0

2 files

0.51.6

2 files

This release

0.51.5 This release

2 files

0.51.4

2 files

0.51.3

2 files

0.51.2

2 files

0.51.1

2 files

0.51.0

2 files

0.50.1

2 files

0.50.0

2 files

0.49.1

2 files

0.49.0

2 files

0.48.0

2 files

0.47.1

2 files

0.47.0

2 files

0.46.4

2 files

0.46.3

2 files

0.46.2

2 files

0.46.1

2 files

0.46.0

2 files

0.45.7

2 files

0.45.6

2 files

0.45.5

2 files

0.45.4

2 files

0.45.2

2 files

0.45.1

2 files

0.45.0

2 files

0.44.13

2 files

0.44.12

2 files

0.44.11

2 files

0.44.10

2 files

0.44.9

2 files

0.44.8

2 files

0.44.7

2 files

0.44.6

2 files

0.44.5

2 files

0.44.4

2 files

0.44.3

2 files

0.44.2

2 files

0.44.1

2 files

0.44.0

2 files

0.43.3

2 files

0.43.2

2 files

0.43.1

2 files

0.43.0

2 files

0.42.2

2 files

0.42.0

2 files

0.41.9

2 files

0.41.7

2 files

0.41.6

2 files

0.41.5

2 files

0.41.4

2 files

0.41.2

2 files

0.41.1

2 files

0.41.0

2 files

0.40.2

2 files

0.40.1

2 files

0.40.0

2 files

0.39.9

2 files

0.39.8

2 files

0.39.7

2 files

0.39.6

2 files

0.39.5

2 files

0.39.4

2 files

0.39.3

2 files

0.39.2

2 files

0.39.1

2 files

0.39.0

2 files

0.38.4

2 files

0.38.3

2 files

0.38.2

2 files

0.38.1

2 files

0.38.0

2 files

0.37.2

2 files

0.37.1

2 files

0.37.0

2 files

0.36.3

2 files

0.36.2

2 files

0.36.1

2 files

0.36.0

2 files

0.35.8

2 files

0.35.7

2 files

0.35.6

2 files

0.35.5

2 files

0.35.4

2 files

0.35.3

2 files

0.35.0

2 files

0.34.0

2 files

0.33.3

2 files

0.33.2

2 files

0.33.1

2 files

0.33.0

2 files

0.32.0

2 files

0.31.4

2 files

0.31.3

2 files

0.31.2

2 files

0.31.1

2 files

0.31.0

2 files

0.30.1

2 files

0.30.0

2 files

0.29.4

2 files

0.29.2

2 files

0.29.1

2 files

0.29.0

2 files

0.28.15

2 files

0.28.14

2 files

0.28.13

2 files

0.28.12

2 files

0.28.11

2 files

0.28.10

2 files

0.28.9

2 files

0.28.8

2 files

0.28.7

2 files

0.28.6

2 files

0.28.5

2 files

0.28.4

2 files

0.28.3

2 files

0.28.2

2 files

0.28.1

2 files

0.28.0

2 files

0.27.0

2 files

0.26.0

2 files

0.25.8

2 files

0.25.7

2 files

0.25.6

2 files

0.25.5

2 files

0.25.4

2 files

0.25.3

2 files

0.25.2

2 files

0.25.1

2 files

0.25.0

2 files

0.24.6

2 files

0.24.5

2 files

0.24.4

2 files

0.24.3

2 files

0.24.1

2 files

0.24.0

2 files

0.23.0

2 files

0.22.2

2 files

0.22.1

2 files

0.22.0

2 files

0.21.0

2 files

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