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

Metadata

Release files for agent-framework-anthropic 1.0.0b260721

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.0b260721
File Size Uploaded
agent_framework_anthropic-1.0.0b260721.tar.gz 20.2 kB Details

Built distribution (wheel)

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

Total release size: 43.0 kB

Release files / agent_framework_anthropic-1.0.0b260721.tar.gz

Download URL agent_framework_anthropic-1.0.0b260721.tar.gz
Size 20.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dc5d51321375e3dec0dd204561ed0dd0c7362f39abf43b17125e6d52a1a1aa74
BLAKE2b-256 checksum
How to use checksums
9f966e4476afccc2fb65d433a1696ca7fa4b7c078c1156e30035cb31d349d61e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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.0b260721-py3-none-any.whl

Download URL agent_framework_anthropic-1.0.0b260721-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76741c81b968528600fd0e2e8f399377b9d3a7dfff2be99f96c3790c4f29604c
BLAKE2b-256 checksum
How to use checksums
6f84c96985a3c25bf56cd527fbb2b770648b4f5cffbe91f1bd05f17985f8bf31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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 history Release notifications | RSS feed

This release

1.0.0b260721 This release

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