Interface CreateAgentHistoryItemCommandStep1

All Known Implementing Classes:
CreateAgentHistoryItemCommandImpl

public interface CreateAgentHistoryItemCommandStep1
Represents a request to append a conversation history item to an agent instance.

Usage example:

   CreateAgentHistoryItemResponse response = camundaClient
       .newCreateAgentHistoryItemCommand(agentInstanceKey)
       .elementInstanceKey(2251799813685248L)
       .jobKey(2251799813685249L)
       .role(AgentInstanceHistoryRole.USER)
       .content(List.of(AgentInstanceHistoryContent.text("Hello!")))
       .producedAt(OffsetDateTime.now())
       .send()
       .join();
 
  • Method Details

    • elementInstanceKey

      CreateAgentHistoryItemCommandStep1.CreateAgentHistoryItemCommandStep2 elementInstanceKey(long elementInstanceKey)
      Sets the element instance key of the element instance this history item belongs to.
      Parameters:
      elementInstanceKey - the key of the element instance. Must be greater than 0.
      Returns:
      this builder for method chaining