Skip to main content

Interface: ChatResult

Normalized chat response structure returned by engines.

Properties​

conversation?​

optional conversation: ConversationState;

Updated conversation state to persist for future calls.


degradedMcpServers?​

optional degradedMcpServers: null | string[];

MCP server labels that were degraded (removed) due to persistent failures.


finish_reason​

finish_reason: string;

Reason provided by the API for ending the completion.


mcpCalls?​

optional mcpCalls: MCPCall[];

Any MCP calls emitted during the completion.


message?​

optional message: ChatMessage;

Assistant message when no tool call was issued.


rawResponse?​

optional rawResponse: unknown;

Provider-specific payload for debugging or auditing.


toolCalls?​

optional toolCalls: ChatFunctionCall[];

Any tool calls emitted during the completion.


voice?​

optional voice: VoiceChatResult;

Voice response metadata, when applicable.