Interface DelegateAgentConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DelegateAgentConfiguration.Builder,,DelegateAgentConfiguration> SdkBuilder<DelegateAgentConfiguration.Builder,,DelegateAgentConfiguration> SdkPojo
- Enclosing class:
DelegateAgentConfiguration
@Mutable
@NotThreadSafe
public static interface DelegateAgentConfiguration.Builder
extends SdkPojo, CopyableBuilder<DelegateAgentConfiguration.Builder,DelegateAgentConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionagentTarget(Consumer<AgentTarget.Builder> agentTarget) The collaborator agent to delegate to.agentTarget(AgentTarget agentTarget) The collaborator agent to delegate to.instruction(Consumer<MultiAgentInstruction.Builder> instruction) The instruction that tells the Orchestration AI Agent when and how to delegate to this collaborator agent.instruction(MultiAgentInstruction instruction) The instruction that tells the Orchestration AI Agent when and how to delegate 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 delegate to.
- Parameters:
agentTarget- The collaborator agent to delegate to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentTarget
The collaborator agent to delegate 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 delegate to this collaborator agent.
- Parameters:
instruction- The instruction that tells the Orchestration AI Agent when and how to delegate to this collaborator agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
default DelegateAgentConfiguration.Builder instruction(Consumer<MultiAgentInstruction.Builder> instruction) The instruction that tells the Orchestration AI Agent when and how to delegate 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:
-