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:
- Azure AI 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.0b260709
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agent_framework_anthropic-1.0.0b260709.tar.gz | 20.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_framework_anthropic-1.0.0b260709-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.9 kB
Release files / agent_framework_anthropic-1.0.0b260709.tar.gz
| Download URL | agent_framework_anthropic-1.0.0b260709.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54447f4bcb00f52f06cd6cab250d4bd0a9fad63882e020b0e11ef33e288e0420
|
|
BLAKE2b-256 checksum How to use checksums |
78912f4d704c6b8c4f2d4526ada2941db2b9bb44814280a14d60e7d4629e713f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":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.0b260709-py3-none-any.whl
| Download URL | agent_framework_anthropic-1.0.0b260709-py3-none-any.whl |
|---|---|
| Size | 22.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6f3d244e6f8fa5375d2551bb2edef9d63b84d5e4757cdaf292c9e1651acccee
|
|
BLAKE2b-256 checksum How to use checksums |
b3d386cbd012d41cb6d9edcab31730f8314d9a38393f1699d529b7756d1c8a47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|