hashbrown

UiCompletionOptions

Options for the useUiCompletion hook.

API

UiCompletionOptions
@typeInput
@typeTools
Chat.AnyTool
components
UiKitInput<ExposedComponent<any>>[]

The components that can be rendered by the completion.

debounceTime
number

The debounce time between requests.

debugName
string

The name of the hook, useful for debugging.

examples
SystemPrompt

Optional prompt-based UI examples to include in the wrapper schema description.

input
Input | null | undefined

The input for the completion.

model
ModelInput

The model to use for the completion.

retries
number

Number of retries if an error is received.

structuredOutput
Chat.Api.StructuredOutputOptions

Controls how the provider is asked to produce structured output.

system
string | SystemPrompt

The system prompt to use for the completion.

threadId
string

Optional thread identifier used to load or continue an existing conversation.

tools
Tools[]

The tools to make available to the completion.

transport
TransportOrFactory

Optional transport override for this hook.