OptionalisTrue if output is incomplete (streaming). When true, the parser tolerates unterminated tool calls and open thinking blocks, returning partial content as-is rather than treating them as parse errors.
OptionalparserPEG parser definition for PEG format models (from FormattedChatResult.parser)
OptionalreasoningReasoning format (from FormattedChatResult.reasoningFormat)
OptionalthinkingWhether thinking tag was forced open (from FormattedChatResult.thinkingForcedOpen)
Options for parsing chat output
All fields are optional. For correct parsing, pass through the corresponding fields from FormattedChatResult.
See
FormattedChatResult