@polymind-inc/agent-framework-anthropic
v0.3.0
Published
Anthropic Messages API chat client for the Agent Framework, built on the official @anthropic-ai/sdk.
Maintainers
Readme
@polymind-inc/agent-framework-anthropic
Constituent package. The supported way to use the Agent Framework is the main
@polymind-inc/agent-frameworkpackage, which re-exports everything here under@polymind-inc/agent-framework/anthropicand pins this package to its exact version. Installing this package directly works and resolves to the same modules, but examples and documentation import through the main package.
Anthropic provider for the Agent Framework: AnthropicChatClient implements the ChatClient
interface from @polymind-inc/agent-framework-core on top of the official @anthropic-ai/sdk Messages API,
including streaming, extended thinking, structured output and remote MCP servers. Pass an
AnthropicBedrock, AnthropicVertex or AnthropicFoundry client to reach Claude through those
gateways — the wire format is identical.
npm install @polymind-inc/agent-framework-core @polymind-inc/agent-framework-anthropicimport { Agent } from '@polymind-inc/agent-framework-core';
import { AnthropicChatClient } from '@polymind-inc/agent-framework-anthropic';
const agent = new Agent({
client: new AnthropicChatClient({ model: 'claude-sonnet-4-5' }), // reads ANTHROPIC_API_KEY
instructions: 'You are a helpful assistant.',
});
const response = await agent.run('Summarize the Messages API in one sentence.');
console.log(response.text);Part of Agent Framework for TypeScript — an independent community implementation of the Microsoft Agent Framework programming model. Not an official Microsoft product, and not affiliated with or endorsed by Microsoft. MIT licensed.
