The result of the useCompletion hook.
API
error
Error | undefinedThe error encountered during chat operations, if any.
exhaustedRetries
booleanWhether the current request has exhausted retries.
isReceiving
booleanWhether the chat is receiving a response.
isRunningToolCalls
booleanWhether the chat is running tool calls.
isSending
booleanWhether the chat is sending a response.
output
string | nullThe output from the model.
reload
() => voidReload the chat, useful for retrying when an error occurs.