Interface InvokeAgentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRuntimeRequest.Builder,Buildable,CopyableBuilder<InvokeAgentRequest.Builder,,InvokeAgentRequest> SdkBuilder<InvokeAgentRequest.Builder,,InvokeAgentRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
InvokeAgentRequest
-
Method Summary
Modifier and TypeMethodDescriptionagentAliasId(String agentAliasId) The alias of the agent to use.The unique identifier of the agent to use.enableTrace(Boolean enableTrace) Specifies whether to turn on the trace or not to track the agent's reasoning process.endSession(Boolean endSession) Specifies whether to end the session with the agent or not.The prompt text to send the agent.The unique identifier of the agent memory.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The unique identifier of the session.default InvokeAgentRequest.BuildersessionState(Consumer<SessionState.Builder> sessionState) Contains parameters that specify various attributes of the session.sessionState(SessionState sessionState) Contains parameters that specify various attributes of the session.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeRequest.Builder
buildMethods 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, sdkFields
-
Method Details
-
agentAliasId
The alias of the agent to use.
- Parameters:
agentAliasId- The alias of the agent to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentId
The unique identifier of the agent to use.
- Parameters:
agentId- The unique identifier of the agent to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableTrace
Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Trace enablement.
- Parameters:
enableTrace- Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Trace enablement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endSession
Specifies whether to end the session with the agent or not.
- Parameters:
endSession- Specifies whether to end the session with the agent or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputText
The prompt text to send the agent.
If you include
returnControlInvocationResultsin thesessionStatefield, theinputTextfield will be ignored.- Parameters:
inputText- The prompt text to send the agent.If you include
returnControlInvocationResultsin thesessionStatefield, theinputTextfield will be ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryId
The unique identifier of the agent memory.
- Parameters:
memoryId- The unique identifier of the agent memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The unique identifier of the session. Use the same value across requests to continue the same conversation.
- Parameters:
sessionId- The unique identifier of the session. Use the same value across requests to continue the same conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionState
Contains parameters that specify various attributes of the session. For more information, see Control session context.
If you include
returnControlInvocationResultsin thesessionStatefield, theinputTextfield will be ignored.- Parameters:
sessionState- Contains parameters that specify various attributes of the session. For more information, see Control session context.If you include
returnControlInvocationResultsin thesessionStatefield, theinputTextfield will be ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionState
Contains parameters that specify various attributes of the session. For more information, see Control session context.
This is a convenience method that creates an instance of theIf you include
returnControlInvocationResultsin thesessionStatefield, theinputTextfield will be ignored.SessionState.Builderavoiding the need to create one manually viaSessionState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosessionState(SessionState).- Parameters:
sessionState- a consumer that will call methods onSessionState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
InvokeAgentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
InvokeAgentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-