OpenAIAssistantAdapter
Copilot Runtime adapter for OpenAI Assistant API.
Copilot Runtime adapter for the OpenAI Assistant API.
Example
import { CopilotRuntime, OpenAIAssistantAdapter } from "@copilotkit/runtime";
import OpenAI from "openai";
const copilotKit = new CopilotRuntime();
const openai = new OpenAI({
organization: "<your-organization-id>",
apiKey: "<your-api-key>",
});
return new OpenAIAssistantAdapter({
openai,
assistantId: "<your-assistant-id>",
codeInterpreterEnabled: true,
fileSearchEnabled: true,
});Constructor Parameters
Prop
Type
Prop
Type
Prop
Type
Prop
Type
Prop
Type
Prop
Type