@camunda8/orchestration-cluster-api
    Preparing search index...

    Type Alias AgentInstanceHistoryItemResult

    A single conversation history item belonging to an agent instance.

    type AgentInstanceHistoryItemResult = {
        agentInstanceKey: AgentInstanceKey;
        commitStatus: AgentInstanceHistoryCommitStatusEnum;
        content: AgentInstanceMessageContent[];
        elementInstanceKey: ElementInstanceKey;
        historyItemId: string;
        historyItemKey: AgentHistoryItemKey;
        jobKey: JobKey;
        jobLease: string;
        limits: AgentInstanceLimits;
        loopIteration: LoopIterationId;
        metrics: AgentInstanceHistoryItemMetrics | null;
        model: string | null;
        producedAt: string;
        provider: string | null;
        role: AgentInstanceHistoryRoleEnum;
        systemPrompt: AgentInstanceMessageContent[];
        toolCalls: AgentInstanceToolCall[];
        tools: AgentTool[];
    }
    Index
    agentInstanceKey: AgentInstanceKey

    The key of the agent instance this item belongs to.

    The commit status of this history item.

    The content blocks of this history item.

    elementInstanceKey: ElementInstanceKey

    The key of the AI Agent Task or ad-hoc sub-process element instance under which this item was produced.

    historyItemId: string

    The client-supplied identifier this item was created with. Empty for items that don't carry one.

    historyItemKey: AgentHistoryItemKey

    The unique key for this history item. Stable and sortable by creation order.

    jobKey: JobKey

    The key of the job activation during which this item was produced.

    jobLease: string

    The lease token of the activation that produced this item.

    The operational limits as of this entry. CONFIGURATION items only; -1 on any field means "no limit configured" for other roles.

    loopIteration: LoopIterationId

    The loop iteration this item belongs to.

    Per-call token and latency metrics. Null when metrics were not provided at creation time.

    model: string | null

    The LLM model identifier as of this entry. CONFIGURATION items only; null for other roles.

    producedAt: string

    The agent-side timestamp of when this message was produced.

    provider: string | null

    The LLM provider as of this entry. CONFIGURATION items only; null for other roles.

    The role of this history item in the conversation.

    The system prompt, as content blocks, as of this entry. CONFIGURATION items only; empty for other roles.

    Tool calls for this item. Empty for USER items and ASSISTANT items with no tool dispatches. ASSISTANT items: dispatched tool calls. TOOL_RESULT items: single-entry array referencing the originating tool call.

    tools: AgentTool[]

    The complete list of tools available to the agent as of this entry. CONFIGURATION items only; empty for other roles.