Options for the useUiCompletion hook.
API
interface UiCompletionOptions<Input, Tools extends Chat.AnyTool = Chat.AnyTool, State = unknown> {components: UiKitInput <
ExposedComponent <
any >> [];debounceTime?: number;debugName?: string;input: Input | null | undefined;retries?: number;state?: State;system: string;threadId?: string | undefined;tools?: Tools[];transport?: TransportOrFactory;}UiCompletionOptions
@typeInput@typeToolsChat.AnyTool@typeStatecomponents
UiKitInput<ExposedComponent<any>>[]The components that can be rendered by the completion.
debounceTime
numberThe debounce time between requests.
debugName
stringThe name of the hook, useful for debugging.
input
Input | null | undefinedThe input for the completion.
retries
numberNumber of retries if an error is received.
state
StateThe initial shared agent state.
system
stringThe system prompt to use for the completion.
threadId
string | undefinedOptional opaque AG-UI thread identity.
tools
Tools[]The tools to make available to the completion.
transport
TransportOrFactoryOptional transport override for this hook.