Interface InvokeInlineAgentRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRuntimeRequest.Builder,Buildable,CopyableBuilder<InvokeInlineAgentRequest.Builder,InvokeInlineAgentRequest>,SdkBuilder<InvokeInlineAgentRequest.Builder,InvokeInlineAgentRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- InvokeInlineAgentRequest
@Mutable @NotThreadSafe public static interface InvokeInlineAgentRequest.Builder extends BedrockAgentRuntimeRequest.Builder, SdkPojo, CopyableBuilder<InvokeInlineAgentRequest.Builder,InvokeInlineAgentRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InvokeInlineAgentRequest.BuilderactionGroups(Collection<AgentActionGroup> actionGroups)A list of action groups with each action group defining the action the inline agent needs to carry out.InvokeInlineAgentRequest.BuilderactionGroups(Consumer<AgentActionGroup.Builder>... actionGroups)A list of action groups with each action group defining the action the inline agent needs to carry out.InvokeInlineAgentRequest.BuilderactionGroups(AgentActionGroup... actionGroups)A list of action groups with each action group defining the action the inline agent needs to carry out.InvokeInlineAgentRequest.BuilderagentCollaboration(String agentCollaboration)Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response.InvokeInlineAgentRequest.BuilderagentCollaboration(AgentCollaboration agentCollaboration)Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response.InvokeInlineAgentRequest.BuilderagentName(String agentName)The name for the agent.default InvokeInlineAgentRequest.BuilderbedrockModelConfigurations(Consumer<InlineBedrockModelConfigurations.Builder> bedrockModelConfigurations)Model settings for the request.InvokeInlineAgentRequest.BuilderbedrockModelConfigurations(InlineBedrockModelConfigurations bedrockModelConfigurations)Model settings for the request.InvokeInlineAgentRequest.BuildercollaboratorConfigurations(Collection<CollaboratorConfiguration> collaboratorConfigurations)Settings for an inline agent collaborator called with InvokeInlineAgent.InvokeInlineAgentRequest.BuildercollaboratorConfigurations(Consumer<CollaboratorConfiguration.Builder>... collaboratorConfigurations)Settings for an inline agent collaborator called with InvokeInlineAgent.InvokeInlineAgentRequest.BuildercollaboratorConfigurations(CollaboratorConfiguration... collaboratorConfigurations)Settings for an inline agent collaborator called with InvokeInlineAgent.InvokeInlineAgentRequest.Buildercollaborators(Collection<Collaborator> collaborators)List of collaborator inline agents.InvokeInlineAgentRequest.Buildercollaborators(Consumer<Collaborator.Builder>... collaborators)List of collaborator inline agents.InvokeInlineAgentRequest.Buildercollaborators(Collaborator... collaborators)List of collaborator inline agents.InvokeInlineAgentRequest.BuildercustomerEncryptionKeyArn(String customerEncryptionKeyArn)The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent.default InvokeInlineAgentRequest.BuildercustomOrchestration(Consumer<CustomOrchestration.Builder> customOrchestration)Contains details of the custom orchestration configured for the agent.InvokeInlineAgentRequest.BuildercustomOrchestration(CustomOrchestration customOrchestration)Contains details of the custom orchestration configured for the agent.InvokeInlineAgentRequest.BuilderenableTrace(Boolean enableTrace)Specifies whether to turn on the trace or not to track the agent's reasoning process.InvokeInlineAgentRequest.BuilderendSession(Boolean endSession)Specifies whether to end the session with the inline agent or not.InvokeInlineAgentRequest.BuilderfoundationModel(String foundationModel)The model identifier (ID) of the model to use for orchestration by the inline agent.default InvokeInlineAgentRequest.BuilderguardrailConfiguration(Consumer<GuardrailConfigurationWithArn.Builder> guardrailConfiguration)The guardrails to assign to the inline agent.InvokeInlineAgentRequest.BuilderguardrailConfiguration(GuardrailConfigurationWithArn guardrailConfiguration)The guardrails to assign to the inline agent.InvokeInlineAgentRequest.BuilderidleSessionTTLInSeconds(Integer idleSessionTTLInSeconds)The number of seconds for which the inline agent should maintain session information.default InvokeInlineAgentRequest.BuilderinlineSessionState(Consumer<InlineSessionState.Builder> inlineSessionState)Parameters that specify the various attributes of a sessions.InvokeInlineAgentRequest.BuilderinlineSessionState(InlineSessionState inlineSessionState)Parameters that specify the various attributes of a sessions.InvokeInlineAgentRequest.BuilderinputText(String inputText)The prompt text to send to the agent.InvokeInlineAgentRequest.Builderinstruction(String instruction)The instructions that tell the inline agent what it should do and how it should interact with users.InvokeInlineAgentRequest.BuilderknowledgeBases(Collection<KnowledgeBase> knowledgeBases)Contains information of the knowledge bases to associate with.InvokeInlineAgentRequest.BuilderknowledgeBases(Consumer<KnowledgeBase.Builder>... knowledgeBases)Contains information of the knowledge bases to associate with.InvokeInlineAgentRequest.BuilderknowledgeBases(KnowledgeBase... knowledgeBases)Contains information of the knowledge bases to associate with.InvokeInlineAgentRequest.BuilderorchestrationType(String orchestrationType)Specifies the type of orchestration strategy for the agent.InvokeInlineAgentRequest.BuilderorchestrationType(OrchestrationType orchestrationType)Specifies the type of orchestration strategy for the agent.InvokeInlineAgentRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)InvokeInlineAgentRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default InvokeInlineAgentRequest.BuilderpromptCreationConfigurations(Consumer<PromptCreationConfigurations.Builder> promptCreationConfigurations)Specifies parameters that control how the service populates the agent prompt for anInvokeInlineAgentrequest.InvokeInlineAgentRequest.BuilderpromptCreationConfigurations(PromptCreationConfigurations promptCreationConfigurations)Specifies parameters that control how the service populates the agent prompt for anInvokeInlineAgentrequest.default InvokeInlineAgentRequest.BuilderpromptOverrideConfiguration(Consumer<PromptOverrideConfiguration.Builder> promptOverrideConfiguration)Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent.InvokeInlineAgentRequest.BuilderpromptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent.InvokeInlineAgentRequest.BuildersessionId(String sessionId)The unique identifier of the session.default InvokeInlineAgentRequest.BuilderstreamingConfigurations(Consumer<StreamingConfigurations.Builder> streamingConfigurations)Specifies the configurations for streaming.InvokeInlineAgentRequest.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
-
actionGroups
InvokeInlineAgentRequest.Builder actionGroups(Collection<AgentActionGroup> actionGroups)
A list of action groups with each action group defining the action the inline agent needs to carry out.
- Parameters:
actionGroups- A list of action groups with each action group defining the action the inline agent needs to carry out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionGroups
InvokeInlineAgentRequest.Builder actionGroups(AgentActionGroup... actionGroups)
A list of action groups with each action group defining the action the inline agent needs to carry out.
- Parameters:
actionGroups- A list of action groups with each action group defining the action the inline agent needs to carry out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionGroups
InvokeInlineAgentRequest.Builder actionGroups(Consumer<AgentActionGroup.Builder>... actionGroups)
A list of action groups with each action group defining the action the inline agent needs to carry out.
This is a convenience method that creates an instance of theAgentActionGroup.Builderavoiding the need to create one manually viaAgentActionGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#actionGroups(List.) - Parameters:
actionGroups- a consumer that will call methods onAgentActionGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#actionGroups(java.util.Collection)
-
agentCollaboration
InvokeInlineAgentRequest.Builder agentCollaboration(String agentCollaboration)
Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor.
- Parameters:
agentCollaboration- Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AgentCollaboration,AgentCollaboration
-
agentCollaboration
InvokeInlineAgentRequest.Builder agentCollaboration(AgentCollaboration agentCollaboration)
Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor.
- Parameters:
agentCollaboration- Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AgentCollaboration,AgentCollaboration
-
agentName
InvokeInlineAgentRequest.Builder agentName(String agentName)
The name for the agent.
- Parameters:
agentName- The name for the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bedrockModelConfigurations
InvokeInlineAgentRequest.Builder bedrockModelConfigurations(InlineBedrockModelConfigurations bedrockModelConfigurations)
Model settings for the request.
- Parameters:
bedrockModelConfigurations- Model settings for the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bedrockModelConfigurations
default InvokeInlineAgentRequest.Builder bedrockModelConfigurations(Consumer<InlineBedrockModelConfigurations.Builder> bedrockModelConfigurations)
Model settings for the request.
This is a convenience method that creates an instance of theInlineBedrockModelConfigurations.Builderavoiding the need to create one manually viaInlineBedrockModelConfigurations.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobedrockModelConfigurations(InlineBedrockModelConfigurations).- Parameters:
bedrockModelConfigurations- a consumer that will call methods onInlineBedrockModelConfigurations.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
bedrockModelConfigurations(InlineBedrockModelConfigurations)
-
collaboratorConfigurations
InvokeInlineAgentRequest.Builder collaboratorConfigurations(Collection<CollaboratorConfiguration> collaboratorConfigurations)
Settings for an inline agent collaborator called with InvokeInlineAgent.
- Parameters:
collaboratorConfigurations- Settings for an inline agent collaborator called with InvokeInlineAgent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
collaboratorConfigurations
InvokeInlineAgentRequest.Builder collaboratorConfigurations(CollaboratorConfiguration... collaboratorConfigurations)
Settings for an inline agent collaborator called with InvokeInlineAgent.
- Parameters:
collaboratorConfigurations- Settings for an inline agent collaborator called with InvokeInlineAgent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
collaboratorConfigurations
InvokeInlineAgentRequest.Builder collaboratorConfigurations(Consumer<CollaboratorConfiguration.Builder>... collaboratorConfigurations)
Settings for an inline agent collaborator called with InvokeInlineAgent.
This is a convenience method that creates an instance of theCollaboratorConfiguration.Builderavoiding the need to create one manually viaCollaboratorConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#collaboratorConfigurations(List.) - Parameters:
collaboratorConfigurations- a consumer that will call methods onCollaboratorConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#collaboratorConfigurations(java.util.Collection)
-
collaborators
InvokeInlineAgentRequest.Builder collaborators(Collection<Collaborator> collaborators)
List of collaborator inline agents.
- Parameters:
collaborators- List of collaborator inline agents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
collaborators
InvokeInlineAgentRequest.Builder collaborators(Collaborator... collaborators)
List of collaborator inline agents.
- Parameters:
collaborators- List of collaborator inline agents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
collaborators
InvokeInlineAgentRequest.Builder collaborators(Consumer<Collaborator.Builder>... collaborators)
List of collaborator inline agents.
This is a convenience method that creates an instance of theCollaborator.Builderavoiding the need to create one manually viaCollaborator.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#collaborators(List.) - Parameters:
collaborators- a consumer that will call methods onCollaborator.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#collaborators(java.util.Collection)
-
customOrchestration
InvokeInlineAgentRequest.Builder customOrchestration(CustomOrchestration customOrchestration)
Contains details of the custom orchestration configured for the agent.
- Parameters:
customOrchestration- Contains details of the custom orchestration configured for the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customOrchestration
default InvokeInlineAgentRequest.Builder customOrchestration(Consumer<CustomOrchestration.Builder> customOrchestration)
Contains details of the custom orchestration configured for the agent.
This is a convenience method that creates an instance of theCustomOrchestration.Builderavoiding the need to create one manually viaCustomOrchestration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomOrchestration(CustomOrchestration).- Parameters:
customOrchestration- a consumer that will call methods onCustomOrchestration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
customOrchestration(CustomOrchestration)
-
customerEncryptionKeyArn
InvokeInlineAgentRequest.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent.
- Parameters:
customerEncryptionKeyArn- The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableTrace
InvokeInlineAgentRequest.Builder enableTrace(Boolean enableTrace)
Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Using trace.
- Parameters:
enableTrace- Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Using trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endSession
InvokeInlineAgentRequest.Builder endSession(Boolean endSession)
Specifies whether to end the session with the inline agent or not.
- Parameters:
endSession- Specifies whether to end the session with the inline agent or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
foundationModel
InvokeInlineAgentRequest.Builder foundationModel(String foundationModel)
The model identifier (ID) of the model to use for orchestration by the inline agent. For example,
meta.llama3-1-70b-instruct-v1:0.- Parameters:
foundationModel- The model identifier (ID) of the model to use for orchestration by the inline agent. For example,meta.llama3-1-70b-instruct-v1:0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailConfiguration
InvokeInlineAgentRequest.Builder guardrailConfiguration(GuardrailConfigurationWithArn guardrailConfiguration)
The guardrails to assign to the inline agent.
- Parameters:
guardrailConfiguration- The guardrails to assign to the inline agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailConfiguration
default InvokeInlineAgentRequest.Builder guardrailConfiguration(Consumer<GuardrailConfigurationWithArn.Builder> guardrailConfiguration)
The guardrails to assign to the inline agent.
This is a convenience method that creates an instance of theGuardrailConfigurationWithArn.Builderavoiding the need to create one manually viaGuardrailConfigurationWithArn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toguardrailConfiguration(GuardrailConfigurationWithArn).- Parameters:
guardrailConfiguration- a consumer that will call methods onGuardrailConfigurationWithArn.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
guardrailConfiguration(GuardrailConfigurationWithArn)
-
idleSessionTTLInSeconds
InvokeInlineAgentRequest.Builder idleSessionTTLInSeconds(Integer idleSessionTTLInSeconds)
The number of seconds for which the inline agent should maintain session information. After this time expires, the subsequent
InvokeInlineAgentrequest begins a new session.A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and the data provided before the timeout is deleted.
- Parameters:
idleSessionTTLInSeconds- The number of seconds for which the inline agent should maintain session information. After this time expires, the subsequentInvokeInlineAgentrequest begins a new session.A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and the data provided before the timeout is deleted.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inlineSessionState
InvokeInlineAgentRequest.Builder inlineSessionState(InlineSessionState inlineSessionState)
Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group. For more information, see Control session context.
If you include
returnControlInvocationResultsin thesessionStatefield, theinputTextfield will be ignored.- Parameters:
inlineSessionState- Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group. 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.
-
inlineSessionState
default InvokeInlineAgentRequest.Builder inlineSessionState(Consumer<InlineSessionState.Builder> inlineSessionState)
Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group. 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.InlineSessionState.Builderavoiding the need to create one manually viaInlineSessionState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinlineSessionState(InlineSessionState).- Parameters:
inlineSessionState- a consumer that will call methods onInlineSessionState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
inlineSessionState(InlineSessionState)
-
inputText
InvokeInlineAgentRequest.Builder inputText(String inputText)
The prompt text to send to the agent.
If you include
returnControlInvocationResultsin thesessionStatefield, theinputTextfield will be ignored.- Parameters:
inputText- The prompt text to send to 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.
-
instruction
InvokeInlineAgentRequest.Builder instruction(String instruction)
The instructions that tell the inline agent what it should do and how it should interact with users.
- Parameters:
instruction- The instructions that tell the inline agent what it should do and how it should interact with users.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBases
InvokeInlineAgentRequest.Builder knowledgeBases(Collection<KnowledgeBase> knowledgeBases)
Contains information of the knowledge bases to associate with.
- Parameters:
knowledgeBases- Contains information of the knowledge bases to associate with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBases
InvokeInlineAgentRequest.Builder knowledgeBases(KnowledgeBase... knowledgeBases)
Contains information of the knowledge bases to associate with.
- Parameters:
knowledgeBases- Contains information of the knowledge bases to associate with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBases
InvokeInlineAgentRequest.Builder knowledgeBases(Consumer<KnowledgeBase.Builder>... knowledgeBases)
Contains information of the knowledge bases to associate with.
This is a convenience method that creates an instance of theKnowledgeBase.Builderavoiding the need to create one manually viaKnowledgeBase.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#knowledgeBases(List.) - Parameters:
knowledgeBases- a consumer that will call methods onKnowledgeBase.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#knowledgeBases(java.util.Collection)
-
orchestrationType
InvokeInlineAgentRequest.Builder orchestrationType(String orchestrationType)
Specifies the type of orchestration strategy for the agent. This is set to DEFAULT orchestration type, by default.
- Parameters:
orchestrationType- Specifies the type of orchestration strategy for the agent. This is set to DEFAULT orchestration type, by default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OrchestrationType,OrchestrationType
-
orchestrationType
InvokeInlineAgentRequest.Builder orchestrationType(OrchestrationType orchestrationType)
Specifies the type of orchestration strategy for the agent. This is set to DEFAULT orchestration type, by default.
- Parameters:
orchestrationType- Specifies the type of orchestration strategy for the agent. This is set to DEFAULT orchestration type, by default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OrchestrationType,OrchestrationType
-
promptCreationConfigurations
InvokeInlineAgentRequest.Builder promptCreationConfigurations(PromptCreationConfigurations promptCreationConfigurations)
Specifies parameters that control how the service populates the agent prompt for an
InvokeInlineAgentrequest. You can control which aspects of previous invocations in the same agent session the service uses to populate the agent prompt. This gives you more granular control over the contextual history that is used to process the current request.- Parameters:
promptCreationConfigurations- Specifies parameters that control how the service populates the agent prompt for anInvokeInlineAgentrequest. You can control which aspects of previous invocations in the same agent session the service uses to populate the agent prompt. This gives you more granular control over the contextual history that is used to process the current request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptCreationConfigurations
default InvokeInlineAgentRequest.Builder promptCreationConfigurations(Consumer<PromptCreationConfigurations.Builder> promptCreationConfigurations)
Specifies parameters that control how the service populates the agent prompt for an
This is a convenience method that creates an instance of theInvokeInlineAgentrequest. You can control which aspects of previous invocations in the same agent session the service uses to populate the agent prompt. This gives you more granular control over the contextual history that is used to process the current request.PromptCreationConfigurations.Builderavoiding the need to create one manually viaPromptCreationConfigurations.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topromptCreationConfigurations(PromptCreationConfigurations).- Parameters:
promptCreationConfigurations- a consumer that will call methods onPromptCreationConfigurations.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
promptCreationConfigurations(PromptCreationConfigurations)
-
promptOverrideConfiguration
InvokeInlineAgentRequest.Builder promptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)
Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent.
- Parameters:
promptOverrideConfiguration- Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptOverrideConfiguration
default InvokeInlineAgentRequest.Builder promptOverrideConfiguration(Consumer<PromptOverrideConfiguration.Builder> promptOverrideConfiguration)
Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent.
This is a convenience method that creates an instance of thePromptOverrideConfiguration.Builderavoiding the need to create one manually viaPromptOverrideConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topromptOverrideConfiguration(PromptOverrideConfiguration).- Parameters:
promptOverrideConfiguration- a consumer that will call methods onPromptOverrideConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
promptOverrideConfiguration(PromptOverrideConfiguration)
-
sessionId
InvokeInlineAgentRequest.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.
-
streamingConfigurations
InvokeInlineAgentRequest.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 InvokeInlineAgentRequest.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
InvokeInlineAgentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
InvokeInlineAgentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-