docs/content/docs/reference/v1/classes/llm-adapters/AnthropicAdapter.mdx
{ /*
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
}
});