Interface AgentOSFinalResponseChunk

interface AgentOSFinalResponseChunk {
    streamId: string;
    gmiInstanceId: string;
    personaId: string;
    isFinal: boolean;
    timestamp: string;
    metadata?: Record<string, any>;
    type: FINAL_RESPONSE;
    finalResponseText: null | string;
    finalResponseTextPlain?: null | string;
    finalToolCalls?: ToolCallRequest[];
    finalUiCommands?: UICommand[];
    audioOutput?: AudioOutputConfig;
    imageOutput?: ImageOutputConfig;
    usage?: CostAggregator;
    reasoningTrace?: ReasoningTraceEntry[];
    error?: {
        code: string;
        message: string;
        details?: any;
    };
    updatedConversationContext?: ConversationContext;
    activePersonaDetails?: Partial<IPersonaDefinition>;
    ragSources?: RagRetrievedChunk[];
}

Hierarchy (view full)

Properties

streamId: string
gmiInstanceId: string
personaId: string
isFinal: boolean
timestamp: string
metadata?: Record<string, any>
finalResponseText: null | string
finalResponseTextPlain?: null | string

Plain-text rendering of finalResponseText intended for voice/TTS and logs. When omitted, clients can derive it by stripping Markdown.

finalToolCalls?: ToolCallRequest[]
finalUiCommands?: UICommand[]
audioOutput?: AudioOutputConfig
imageOutput?: ImageOutputConfig
reasoningTrace?: ReasoningTraceEntry[]
error?: {
    code: string;
    message: string;
    details?: any;
}

Type declaration

  • code: string
  • message: string
  • Optional details?: any
updatedConversationContext?: ConversationContext
activePersonaDetails?: Partial<IPersonaDefinition>
ragSources?: RagRetrievedChunk[]

RAG source chunks that were used to generate this response. Populated by the GMI when RAG retrieval was performed. Used by grounding guardrails to verify response faithfulness. Undefined when no RAG retrieval was performed.