Expand description
interface ReplyObject {
error?: ErrorReply;
reasoning?: string;
text?: string;
tools?: readonly ToolCall[];
usage?: { input: number; output: number };
}Properties§
§§§§§
readonly error?: ErrorReplyWhen set, the server responds with this HTTP error instead of a normal reply.
readonly reasoning?: stringExtended thinking or chain-of-thought. Works with Anthropic and Responses formats.
readonly text?: stringText content to send back.
readonly tools?: readonly ToolCall[]Tool calls the model wants to make.
readonly usage?: { ... }Token counts to report.
A structured reply. Text, reasoning, tool calls, usage, and errors are all optional.