Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Get Started with Microsoft Agent Framework Anthropic

Please install this package via pip:

pip install agent-framework-anthropic --pre

Anthropic Integration

The Anthropic integration enables communication with the Anthropic API, allowing your Agent Framework applications to leverage Anthropic's capabilities.

The package also includes Anthropic-hosted transport wrappers for:

  • Microsoft Foundry via AnthropicFoundryClient
  • Amazon Bedrock via AnthropicBedrockClient
  • Google Vertex AI via AnthropicVertexClient

Basic Usage Example

See the Anthropic agent examples which demonstrate:

  • Connecting to a Anthropic endpoint with an agent
  • Streaming and non-streaming responses

Structured system blocks for prompt caching

Use instructions with Anthropic-native system blocks when you need structured system prompt content, such as prompt-cache cache_control metadata. Do not combine structured instructions blocks with a leading system message.

from anthropic.types.beta import BetaTextBlockParam

from agent_framework_anthropic import AnthropicClient

client = AnthropicClient()
system_blocks: list[BetaTextBlockParam] = [
    {"type": "text", "text": "Stable instructions", "cache_control": {"type": "ephemeral", "ttl": "1h"}},
]

response = await client.get_response("Hello", options={"instructions": system_blocks})

Instructions contributed later in a run — by a context provider such as SkillsProvider, or by per-run options — are appended as an additional text block after the configured blocks. The blocks you supply keep their structure and their position, so a cache_control breakpoint stays valid.

Metadata

Release files for agent-framework-anthropic 1.0.0b261022

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

Source distribution (sdist)

Source distribution for agent-framework-anthropic 1.0.0b261022
File Size Uploaded Provenance Actions
agent_framework_anthropic-1.0.0b261022.tar.gz 23.9 kB Without provenance Details for agent_framework_anthropic-1.0.0b261022.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-framework-anthropic 1.0.0b261022
File Interpreter ABI Platform Actions
agent_framework_anthropic-1.0.0b261022-py3-none-any.whl Python 3 none any Details for agent_framework_anthropic-1.0.0b261022-py3-none-any.whl

Total release size: 50.4 kB

Release files / agent_framework_anthropic-1.0.0b261022.tar.gz

Download URL agent_framework_anthropic-1.0.0b261022.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b3343dcf6e38eb9cddeefbc4829e6587c209b3d921d87545d5916ec2d03f967d
BLAKE2b-256 checksum
How to use checksums
e22714f915de9ba6835cc282f48859fa15f781f8c7c6b71dcf7588aac9c5c92e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / agent_framework_anthropic-1.0.0b261022-py3-none-any.whl

Download URL agent_framework_anthropic-1.0.0b261022-py3-none-any.whl
Size 26.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2028163cb6b345217c1d006b350da68749ddf3de016c8ec74d1b271c5420fa2b
BLAKE2b-256 checksum
How to use checksums
68613ab0fb545b169bcfa4d33cd7c676efbb86f8a5930207b27521dda8e052fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for agent-framework-anthropic 1.0.0b261022

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
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