Runtime Adapters
OpenAIAssistantAdapter
CopilotKit Adapter for the OpenAI Assistant API.
Use this adapter to get responses from the OpenAI Assistant API.
Constructor
assistantId
string
requiredThe ID of the assistant to use.
openai
OpenAI
An instance of OpenAI
to use for the request. If not provided, a new instance will be created.
codeInterpreterEnabled
boolean
Whether to enable the code interpreter. Defaults to true
.
fileSearchEnabled
boolean
Whether to enable retrieval. Defaults to true
.
process(request: CopilotRuntimeChatCompletionRequest)
request
CopilotRuntimeChatCompletionRequest
required