Interface AgentCollaborator.Builder

  • Method Details

    • agentDescriptor

      AgentCollaborator.Builder agentDescriptor(AgentDescriptor agentDescriptor)

      The collaborator's agent descriptor.

      Parameters:
      agentDescriptor - The collaborator's agent descriptor.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentDescriptor

      default AgentCollaborator.Builder agentDescriptor(Consumer<AgentDescriptor.Builder> agentDescriptor)

      The collaborator's agent descriptor.

      This is a convenience method that creates an instance of the AgentDescriptor.Builder avoiding the need to create one manually via AgentDescriptor.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to agentDescriptor(AgentDescriptor).

      Parameters:
      agentDescriptor - a consumer that will call methods on AgentDescriptor.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • agentId

      The collaborator's agent ID.

      Parameters:
      agentId - The collaborator's agent ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentVersion

      AgentCollaborator.Builder agentVersion(String agentVersion)

      The collaborator's agent version.

      Parameters:
      agentVersion - The collaborator's agent version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      AgentCollaborator.Builder clientToken(String clientToken)

      The collaborator's client token.

      Parameters:
      clientToken - The collaborator's client token.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • collaborationInstruction

      AgentCollaborator.Builder collaborationInstruction(String collaborationInstruction)

      The collaborator's instructions.

      Parameters:
      collaborationInstruction - The collaborator's instructions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • collaboratorId

      AgentCollaborator.Builder collaboratorId(String collaboratorId)

      The collaborator's collaborator ID.

      Parameters:
      collaboratorId - The collaborator's collaborator ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • collaboratorName

      AgentCollaborator.Builder collaboratorName(String collaboratorName)

      The collaborator's collaborator name.

      Parameters:
      collaboratorName - The collaborator's collaborator name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      AgentCollaborator.Builder createdAt(Instant createdAt)

      When the collaborator was created.

      Parameters:
      createdAt - When the collaborator was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedAt

      AgentCollaborator.Builder lastUpdatedAt(Instant lastUpdatedAt)

      When the collaborator was updated.

      Parameters:
      lastUpdatedAt - When the collaborator was updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relayConversationHistory

      AgentCollaborator.Builder relayConversationHistory(String relayConversationHistory)

      The collaborator's relay conversation history.

      Parameters:
      relayConversationHistory - The collaborator's relay conversation history.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • relayConversationHistory

      AgentCollaborator.Builder relayConversationHistory(RelayConversationHistory relayConversationHistory)

      The collaborator's relay conversation history.

      Parameters:
      relayConversationHistory - The collaborator's relay conversation history.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: