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;examples?: SystemPrompt;input: Input | null | undefined;retries?: number;state?: State;system: string | SystemPrompt; 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.
examples
SystemPromptOptional prompt-based UI examples to include in the wrapper schema description.
input
Input | null | undefinedThe input for the completion.
retries
numberNumber of retries if an error is received.
state
StateThe initial shared agent state.
system
string | SystemPromptThe 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.