Package io.camunda.client.api.command
Interface CreateAgentHistoryItemCommandStep1.CreateAgentHistoryItemFinalCommandStep
- All Superinterfaces:
FinalCommandStep<CreateAgentHistoryItemResponse>
- All Known Implementing Classes:
CreateAgentHistoryItemCommandImpl
- Enclosing interface:
CreateAgentHistoryItemCommandStep1
public static interface CreateAgentHistoryItemCommandStep1.CreateAgentHistoryItemFinalCommandStep
extends FinalCommandStep<CreateAgentHistoryItemResponse>
-
Method Summary
Modifier and TypeMethodDescriptionSets the opaque job lease token received from the job activation response.loopIteration(int loopIteration) Sets the sequential loopIteration number this item belongs to.metrics(AgentInstanceHistoryMetrics metrics) Sets per-call token and latency metrics.toolCalls(List<AgentInstanceHistoryToolCall> toolCalls) Sets the tool calls associated with this history item.Methods inherited from interface io.camunda.client.api.command.FinalCommandStep
execute, requestTimeout, send
-
Method Details
-
jobLease
Sets the opaque job lease token received from the job activation response.Job leasing is not yet enforced (#55033); this field is optional until support is added.
- Parameters:
jobLease- the lease token. Must not be null or empty.- Returns:
- this builder for method chaining
-
loopIteration
CreateAgentHistoryItemCommandStep1.CreateAgentHistoryItemFinalCommandStep loopIteration(int loopIteration) Sets the sequential loopIteration number this item belongs to.- Parameters:
loopIteration- the loopIteration number.- Returns:
- this builder for method chaining
-
toolCalls
CreateAgentHistoryItemCommandStep1.CreateAgentHistoryItemFinalCommandStep toolCalls(List<AgentInstanceHistoryToolCall> toolCalls) Sets the tool calls associated with this history item.- Parameters:
toolCalls- the list of tool calls. May be null.- Returns:
- this builder for method chaining
-
metrics
CreateAgentHistoryItemCommandStep1.CreateAgentHistoryItemFinalCommandStep metrics(AgentInstanceHistoryMetrics metrics) Sets per-call token and latency metrics. Present on ASSISTANT items only.- Parameters:
metrics- the metrics. May be null.- Returns:
- this builder for method chaining
-