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

    Type Alias AgentInstanceHistoryItemRequest

    Request to append a single history item to an agent instance's conversation history.

    type AgentInstanceHistoryItemRequest = {
        content: AgentInstanceMessageContent[];
        elementInstanceKey: ElementInstanceKey;
        iteration?: IterationId | null;
        jobKey: JobKey;
        jobLease: string;
        metrics?: AgentInstanceHistoryItemMetrics | null;
        producedAt: string;
        role: AgentInstanceHistoryRoleEnum;
        toolCalls?: AgentInstanceToolCall[] | null;
    }
    Index

    Properties

    The content blocks of this history item.

    elementInstanceKey: ElementInstanceKey

    The key of the currently-active element instance.

    iteration?: IterationId | null

    Sequential iteration number this item belongs to. Omit if not grouping items into iterations.

    jobKey: JobKey

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

    jobLease: string

    Opaque lease token received from the job activation response.

    Per-call token and latency metrics. Present on ASSISTANT items only.

    producedAt: string

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

    The role of this history item in the conversation.

    toolCalls?: AgentInstanceToolCall[] | null

    Tool calls associated with this history item. For ASSISTANT items: tool calls dispatched by this LLM response, with arguments populated. For TOOL_RESULT items: single-entry array referencing the originating tool call, with arguments null. Omit for USER items.