Enumeration GMIOutputChunkType

Defines the type of content in a GMIOutputChunk.

Enumeration Members

TEXT_DELTA: "text_delta"
TOOL_CALL_REQUEST: "tool_call_request"
REASONING_STATE_UPDATE: "reasoning_state_update"
FINAL_RESPONSE_MARKER: "final_response_marker"
ERROR: "error"
SYSTEM_MESSAGE: "system_message"
USAGE_UPDATE: "usage_update"
LATENCY_REPORT: "latency_report"
UI_COMMAND: "ui_command"
RAG_SOURCES_AVAILABLE: "rag_sources_available"

Emitted after a successful RAG retrieval during a turn so downstream consumers (guardrails, grounding verification, UI source panels) can see the retrieved chunks before the LLM call produces text deltas. The chunk content is { ragSources: RagRetrievedChunk[] }.

STEP_FINISHED: "step_finished"

One per model step that completes: the step's text, finish reason, provider, model, hop and usage. A step that fails emits none: a USAGE_UPDATE with metadata.attemptFailed: true reports what it was billed, when the provider reported that, and the turn's ERROR chunk follows. Content: StepFinishedChunkPayload.

TOOL_RESULT: "tool_result"

One per result the GMI records for a call of its own tool round, failures included. Results a host passes to handleToolResults() produce none. Content: ToolResultChunkPayload.