AnthropicAdapter
Copilot Runtime adapter for Anthropic.
Copilot Runtime adapter for Anthropic.
Example
import { CopilotRuntime, AnthropicAdapter } from "@copilotkit/runtime";
import Anthropic from "@anthropic-ai/sdk";
const copilotKit = new CopilotRuntime();
const anthropic = new Anthropic({
apiKey: "<your-api-key>",
});
return new AnthropicAdapter({
anthropic,
promptCaching: {
enabled: true,
debug: true
}
});Constructor Parameters
Prop
Type
Prop
Type
Prop
Type
Prop
Type