Runtime API
AssistantRuntimeProvider
The AssistantRuntimeProvider
is a React component that wraps your entire app and provides the Runtime
to the rest of your app.
Properties
AssistantRuntimeProviderProps
runtime:
The runtime to provide to the rest of your app.
AssistantRuntime
capabilities:
The capabilities of the runtime.
RuntimeCapability
edit:
Whether the runtime supports editing messages.
reload:
Whether the runtime supports reloading messages.
cancel:
Whether the runtime supports cancelling runs.
unstable_copy:
Whether the runtime supports copying messages.
speak:
Whether the runtime supports speaking messages.
attachments:
Whether the runtime supports attachments.
messages:
The messages in the thread.
isDisabled:
Whether the thread is disabled.
getBranches:
A function to get the branches for a message.
switchToBranch:
A function to switch to a branch.
append:
A function to append a message to the thread.
startRun:
A function to start a run.
cancelRun:
A function to cancel a run.
addToolResult:
A function to add a tool result.
subscribe:
A function to subscribe to updates.
registerModelConfigProvider:
A function to register a model config provider.