Back to Copilotkit

CopilotRuntime

showcase/shell-docs/src/content/reference/v1/classes/CopilotRuntime.mdx

1.57.2813 B
Original Source

{ /*

  • ATTENTION! DO NOT MODIFY THIS FILE!
  • This page is auto-generated. If you want to make any changes to this page, changes must be made at:
  • packages/runtime/src/lib/runtime/copilot-runtime.ts */ } <Callout type="info">

This is the reference for the CopilotRuntime class. For more information and example code snippets, please see Concept: Copilot Runtime. </Callout>

Usage

tsx
import { CopilotRuntime } from "@copilotkit/runtime";
 
const copilotKit = new CopilotRuntime();

constructor(params?: CopilotRuntimeConstructorParams<T> &

  PartialBy&lt;CopilotRuntimeOptions, "agents"&gt;)

<PropertyReference name="params" type="CopilotRuntimeConstructorParams<T> & PartialBy<CopilotRuntimeOptions, 'agents'>" >

</PropertyReference>