<CopilotKit />
Provides the Copilot context to its children.
![](https://static.scarf.sh/a.png?x-pxid=a9b290bb-38f9-4518-ac3b-8f54fdbf43be)
This component provides the Copilot context to its children.
It can be configured either with a chat API endpoint or a CopilotApiConfig
.
The backend can use OpenAI, or you can bring your own LLM. For examples of the
backend api implementation, see examples/next-openai
or the runtime
docs.
Example usage
<CopilotKit publicApiKey="the api key or self host (see below)">
<App />
</CopilotKit>
Props
Your Copilot Cloud API key.
Cloud feature: Restrict input to a specific topic.
the endpoint for the Copilot Runtime instance.
The endpoint for the Copilot transcribe audio service.
The endpoint for the Copilot text to speech service.
Additional headers to be sent with the request.
For example:
{
'Authorization': 'Bearer your_token_here'
}
Additional body params to be sent with the request For example:
{
'message': 'Hello, world!'
}
The children to be rendered within the CopilotKit.
Custom properties to be sent with the request For example:
{
'user_id': 'users_id',
}
Indicates whether the user agent should send or receive cookies from the other domain in the case of cross-origin requests.