Options for the useCompletion hook.
API
UseCompletionOptions
@typeInputdebounceTime
numberThe debounce time between sends to the endpoint. default: 150
debugName
stringThe name of the hook, useful for debugging.
input
Input | null | undefinedThe input string to predict from.
model
ModelInputThe LLM model to use for the chat.
retries
numberNumber of retries if an error is received. default: 0
system
stringThe system message to use for the completion.
threadId
stringOptional thread identifier used to load or continue an existing conversation.
tools
Chat.AnyTool[]The tools to make available use for the completion. default: []
transport
TransportOrFactoryOptional transport override for this hook.