Package io.camunda.client.protocol.rest
Class AgentInstanceHistoryItemRequest
java.lang.Object
io.camunda.client.protocol.rest.AgentInstanceHistoryItemRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AgentInstanceHistoryItemRequest
extends Object
Request to append a single history item to an agent instance's conversation history.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContentItem(AgentInstanceMessageContent contentItem) addToolCallsItem(AgentInstanceToolCall toolCallsItem) content(List<AgentInstanceMessageContent> content) elementInstanceKey(String elementInstanceKey) booleanThe content blocks of this history item.The key of the currently-active element instance.The key of the current job activation during which this history item was produced.Opaque lease token received from the job activation response.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 associated with this history item.inthashCode()loopIteration(Integer loopIteration) metrics(AgentInstanceHistoryItemMetrics metrics) producedAt(String producedAt) voidsetContent(List<AgentInstanceMessageContent> content) voidsetElementInstanceKey(String elementInstanceKey) voidvoidsetJobLease(String jobLease) voidsetLoopIteration(Integer loopIteration) voidvoidsetProducedAt(String producedAt) voidvoidsetToolCalls(List<AgentInstanceToolCall> toolCalls) toolCalls(List<AgentInstanceToolCall> toolCalls) toString()
-
Field Details
-
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_PRODUCED_AT
- See Also:
-
-
Constructor Details
-
AgentInstanceHistoryItemRequest
public AgentInstanceHistoryItemRequest()
-
-
Method Details
-
elementInstanceKey
-
getElementInstanceKey
The key of the currently-active element instance.- Returns:
- elementInstanceKey
-
setElementInstanceKey
-
jobKey
-
getJobKey
The key of the current job activation during which this history item was produced.- Returns:
- jobKey
-
setJobKey
-
jobLease
-
getJobLease
Opaque lease token received from the job activation response.- 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. Omit if not grouping items by loopIteration. 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 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.- Returns:
- toolCalls
-
setToolCalls
-
metrics
-
getMetrics
Per-call token and latency metrics. Present on ASSISTANT items only.- Returns:
- metrics
-
setMetrics
-
producedAt
-
getProducedAt
The connector-side timestamp of when this message was produced.- Returns:
- producedAt
-
setProducedAt
-
equals
-
hashCode
public int hashCode() -
toString
-