The result object-type returned by the useStructuredCompletion
hook that provides the structured output and state for the completion.
API
interface UseStructuredCompletionResult<Output> {
error: Error | undefined;
exhaustedRetries: boolean;
isReceiving: boolean;
isRunningToolCalls: boolean;
isSending: boolean;
output: Output | null;
reload: () => void;
}
UseStructuredCompletionResult
@type
Output