Package io.camunda.client.protocol.rest
Class AgentInstanceHistoryItemResult
java.lang.Object
io.camunda.client.protocol.rest.AgentInstanceHistoryItemResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AgentInstanceHistoryItemResult
extends Object
A single conversation history item belonging to an agent instance.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContentItem(AgentInstanceMessageContent contentItem) addToolCallsItem(AgentInstanceToolCall toolCallsItem) agentInstanceKey(String agentInstanceKey) commitStatus(AgentInstanceHistoryCommitStatusEnum commitStatus) content(List<AgentInstanceMessageContent> content) elementInstanceKey(String elementInstanceKey) booleanThe key of the agent instance this item belongs to.The commit status of this history item.The content blocks of this history item.The key of the AI Agent Task or ad-hoc sub-process element instance under which this item was produced.The unique key for this history item.The key of the job activation during which this item was produced.The lease token of the activation that produced this item.The loopIteration this item belongs to.Per-call token and latency metrics.The connector-side timestamp of when this message was produced.getRole()The role of this history item in the conversation.Tool calls for this item.inthashCode()historyItemKey(String historyItemKey) loopIteration(Integer loopIteration) metrics(AgentInstanceHistoryItemMetrics metrics) producedAt(String producedAt) voidsetAgentInstanceKey(String agentInstanceKey) voidsetCommitStatus(AgentInstanceHistoryCommitStatusEnum commitStatus) voidsetContent(List<AgentInstanceMessageContent> content) voidsetElementInstanceKey(String elementInstanceKey) voidsetHistoryItemKey(String historyItemKey) voidvoidsetJobLease(String jobLease) voidsetLoopIteration(Integer loopIteration) voidvoidsetProducedAt(String producedAt) voidvoidsetToolCalls(List<AgentInstanceToolCall> toolCalls) toolCalls(List<AgentInstanceToolCall> toolCalls) toString()
-
Field Details
-
JSON_PROPERTY_HISTORY_ITEM_KEY
- See Also:
-
JSON_PROPERTY_AGENT_INSTANCE_KEY
- See Also:
-
JSON_PROPERTY_ELEMENT_INSTANCE_KEY
- See Also:
-
JSON_PROPERTY_JOB_KEY
- See Also:
-
JSON_PROPERTY_JOB_LEASE
- See Also:
-
JSON_PROPERTY_LOOP_ITERATION
- See Also:
-
JSON_PROPERTY_ROLE
- See Also:
-
JSON_PROPERTY_CONTENT
- See Also:
-
JSON_PROPERTY_TOOL_CALLS
- See Also:
-
JSON_PROPERTY_METRICS
- See Also:
-
JSON_PROPERTY_COMMIT_STATUS
- See Also:
-
JSON_PROPERTY_PRODUCED_AT
- See Also:
-
-
Constructor Details
-
AgentInstanceHistoryItemResult
public AgentInstanceHistoryItemResult()
-
-
Method Details
-
historyItemKey
-
getHistoryItemKey
The unique key for this history item. Stable and sortable by creation order.- Returns:
- historyItemKey
-
setHistoryItemKey
-
agentInstanceKey
-
getAgentInstanceKey
The key of the agent instance this item belongs to.- Returns:
- agentInstanceKey
-
setAgentInstanceKey
-
elementInstanceKey
-
getElementInstanceKey
The key of the AI Agent Task or ad-hoc sub-process element instance under which this item was produced.- Returns:
- elementInstanceKey
-
setElementInstanceKey
-
jobKey
-
getJobKey
The key of the job activation during which this item was produced.- Returns:
- jobKey
-
setJobKey
-
jobLease
-
getJobLease
The lease token of the activation that produced this item.- Returns:
- jobLease
-
setJobLease
-
loopIteration
-
getLoopIteration
The loopIteration this item belongs to. A loopIteration is one pass through the agent feedback loop: one LLM call, its tool dispatches, and their results. Null if not provided by the connector. minimum: 1- Returns:
- loopIteration
-
setLoopIteration
-
role
-
getRole
The role of this history item in the conversation.- Returns:
- role
-
setRole
-
content
-
addContentItem
-
getContent
The content blocks of this history item.- Returns:
- content
-
setContent
-
toolCalls
-
addToolCallsItem
-
getToolCalls
Tool calls for this item. Empty for USER items and ASSISTANT items with no tool dispatches. ASSISTANT items: dispatched tool calls with arguments populated. TOOL_RESULT items: single-entry array referencing the originating tool call (arguments null).- Returns:
- toolCalls
-
setToolCalls
-
metrics
-
getMetrics
Per-call token and latency metrics. Null when metrics were not provided at creation time.- Returns:
- metrics
-
setMetrics
-
commitStatus
public AgentInstanceHistoryItemResult commitStatus(@Nonnull AgentInstanceHistoryCommitStatusEnum commitStatus) -
getCommitStatus
The commit status of this history item.- Returns:
- commitStatus
-
setCommitStatus
-
producedAt
-
getProducedAt
The connector-side timestamp of when this message was produced.- Returns:
- producedAt
-
setProducedAt
-
equals
-
hashCode
public int hashCode() -
toString
-