Interface HandoffAgentConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<HandoffAgentConfiguration.Builder,,HandoffAgentConfiguration> SdkBuilder<HandoffAgentConfiguration.Builder,,HandoffAgentConfiguration> SdkPojo
- Enclosing class:
HandoffAgentConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionagentTarget(Consumer<AgentTarget.Builder> agentTarget) The collaborator agent to hand off to.agentTarget(AgentTarget agentTarget) The collaborator agent to hand off to.audioStreamingEnabled(Boolean audioStreamingEnabled) Specifies whether the caller's audio is streamed directly to the collaborator agent and the collaborator's audio response is played back during the handoff.immediateHandoff(Boolean immediateHandoff) Specifies whether the conversation is handed off to this collaborator agent immediately on the first turn, without any orchestration reasoning.instruction(Consumer<MultiAgentInstruction.Builder> instruction) The instruction that tells the Orchestration AI Agent when and how to hand off to this collaborator agent.instruction(MultiAgentInstruction instruction) The instruction that tells the Orchestration AI Agent when and how to hand off to this collaborator agent.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
agentTarget
The collaborator agent to hand off to.
- Parameters:
agentTarget- The collaborator agent to hand off to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentTarget
The collaborator agent to hand off to.
This is a convenience method that creates an instance of theAgentTarget.Builderavoiding the need to create one manually viaAgentTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toagentTarget(AgentTarget).- Parameters:
agentTarget- a consumer that will call methods onAgentTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instruction
The instruction that tells the Orchestration AI Agent when and how to hand off to this collaborator agent.
- Parameters:
instruction- The instruction that tells the Orchestration AI Agent when and how to hand off to this collaborator agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
default HandoffAgentConfiguration.Builder instruction(Consumer<MultiAgentInstruction.Builder> instruction) The instruction that tells the Orchestration AI Agent when and how to hand off to this collaborator agent.
This is a convenience method that creates an instance of theMultiAgentInstruction.Builderavoiding the need to create one manually viaMultiAgentInstruction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstruction(MultiAgentInstruction).- Parameters:
instruction- a consumer that will call methods onMultiAgentInstruction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
audioStreamingEnabled
Specifies whether the caller's audio is streamed directly to the collaborator agent and the collaborator's audio response is played back during the handoff. This applies only to voice handoffs.
- Parameters:
audioStreamingEnabled- Specifies whether the caller's audio is streamed directly to the collaborator agent and the collaborator's audio response is played back during the handoff. This applies only to voice handoffs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
immediateHandoff
Specifies whether the conversation is handed off to this collaborator agent immediately on the first turn, without any orchestration reasoning. At most one handoff in an AI Agent's configuration can set this to
true.- Parameters:
immediateHandoff- Specifies whether the conversation is handed off to this collaborator agent immediately on the first turn, without any orchestration reasoning. At most one handoff in an AI Agent's configuration can set this totrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-