Packages@robojs/ai
ChatResult
Interface: ChatResult
Normalized chat response structure returned by engines.
Properties
| Property | Type | Description |
|---|---|---|
conversation? | ConversationState | Updated conversation state to persist for future calls. |
degradedMcpServers? | null | string[] | MCP server labels that were degraded (removed) due to persistent failures. |
finish_reason | string | Reason provided by the API for ending the completion. |
mcpCalls? | MCPCall[] | Any MCP calls emitted during the completion. |
message? | ChatMessage | Assistant message when no tool call was issued. |
rawResponse? | unknown | Provider-specific payload for debugging or auditing. |
toolCalls? | ChatFunctionCall[] | Any tool calls emitted during the completion. |
voice? | VoiceChatResult | Voice response metadata, when applicable. |
