Interface InvokeAgentRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRuntimeRequest.Builder,Buildable,CopyableBuilder<InvokeAgentRequest.Builder,InvokeAgentRequest>,SdkBuilder<InvokeAgentRequest.Builder,InvokeAgentRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- InvokeAgentRequest
public static interface InvokeAgentRequest.Builder extends BedrockAgentRuntimeRequest.Builder, SdkPojo, CopyableBuilder<InvokeAgentRequest.Builder,InvokeAgentRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InvokeAgentRequest.BuilderagentAliasId(String agentAliasId)The alias of the agent to use.InvokeAgentRequest.BuilderagentId(String agentId)The unique identifier of the agent to use.default InvokeAgentRequest.BuilderbedrockModelConfigurations(Consumer<BedrockModelConfigurations.Builder> bedrockModelConfigurations)Model performance settings for the request.InvokeAgentRequest.BuilderbedrockModelConfigurations(BedrockModelConfigurations bedrockModelConfigurations)Model performance settings for the request.InvokeAgentRequest.BuilderenableTrace(Boolean enableTrace)Specifies whether to turn on the trace or not to track the agent's reasoning process.InvokeAgentRequest.BuilderendSession(Boolean endSession)Specifies whether to end the session with the agent or not.InvokeAgentRequest.BuilderinputText(String inputText)The prompt text to send the agent.InvokeAgentRequest.BuildermemoryId(String memoryId)The unique identifier of the agent memory.InvokeAgentRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)InvokeAgentRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)InvokeAgentRequest.BuildersessionId(String sessionId)The unique identifier of the session.default InvokeAgentRequest.BuildersessionState(Consumer<SessionState.Builder> sessionState)Contains parameters that specify various attributes of the session.InvokeAgentRequest.BuildersessionState(SessionState sessionState)Contains parameters that specify various attributes of the session.InvokeAgentRequest.BuildersourceArn(String sourceArn)The ARN of the resource making the request.default InvokeAgentRequest.BuilderstreamingConfigurations(Consumer<StreamingConfigurations.Builder> streamingConfigurations)Specifies the configurations for streaming.InvokeAgentRequest.BuilderstreamingConfigurations(StreamingConfigurations streamingConfigurations)Specifies the configurations for streaming.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
agentAliasId
InvokeAgentRequest.Builder agentAliasId(String 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
InvokeAgentRequest.Builder agentId(String 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.
-
bedrockModelConfigurations
InvokeAgentRequest.Builder bedrockModelConfigurations(BedrockModelConfigurations bedrockModelConfigurations)
Model performance settings for the request.
- Parameters:
bedrockModelConfigurations- Model performance settings for the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bedrockModelConfigurations
default InvokeAgentRequest.Builder bedrockModelConfigurations(Consumer<BedrockModelConfigurations.Builder> bedrockModelConfigurations)
Model performance settings for the request.
This is a convenience method that creates an instance of theBedrockModelConfigurations.Builderavoiding the need to create one manually viaBedrockModelConfigurations.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobedrockModelConfigurations(BedrockModelConfigurations).- Parameters:
bedrockModelConfigurations- a consumer that will call methods onBedrockModelConfigurations.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
bedrockModelConfigurations(BedrockModelConfigurations)
-
enableTrace
InvokeAgentRequest.Builder enableTrace(Boolean 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
InvokeAgentRequest.Builder endSession(Boolean 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
InvokeAgentRequest.Builder inputText(String 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
InvokeAgentRequest.Builder memoryId(String 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
InvokeAgentRequest.Builder sessionId(String 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
InvokeAgentRequest.Builder sessionState(SessionState 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
default InvokeAgentRequest.Builder sessionState(Consumer<SessionState.Builder> 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:
sessionState(SessionState)
-
sourceArn
InvokeAgentRequest.Builder sourceArn(String sourceArn)
The ARN of the resource making the request.
- Parameters:
sourceArn- The ARN of the resource making the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streamingConfigurations
InvokeAgentRequest.Builder streamingConfigurations(StreamingConfigurations streamingConfigurations)
Specifies the configurations for streaming.
To use agent streaming, you need permissions to perform the
bedrock:InvokeModelWithResponseStreamaction.- Parameters:
streamingConfigurations- Specifies the configurations for streaming.To use agent streaming, you need permissions to perform the
bedrock:InvokeModelWithResponseStreamaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streamingConfigurations
default InvokeAgentRequest.Builder streamingConfigurations(Consumer<StreamingConfigurations.Builder> streamingConfigurations)
Specifies the configurations for streaming.
This is a convenience method that creates an instance of theTo use agent streaming, you need permissions to perform the
bedrock:InvokeModelWithResponseStreamaction.StreamingConfigurations.Builderavoiding the need to create one manually viaStreamingConfigurations.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostreamingConfigurations(StreamingConfigurations).- Parameters:
streamingConfigurations- a consumer that will call methods onStreamingConfigurations.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
streamingConfigurations(StreamingConfigurations)
-
overrideConfiguration
InvokeAgentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
InvokeAgentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-