Interface SessionState.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SessionState.Builder,
,SessionState> SdkBuilder<SessionState.Builder,
,SessionState> SdkPojo
- Enclosing class:
SessionState
-
Method Summary
Modifier and TypeMethodDescriptionfiles
(Collection<InputFile> files) Contains information about the files used by code interpreter.files
(Consumer<InputFile.Builder>... files) Contains information about the files used by code interpreter.Contains information about the files used by code interpreter.invocationId
(String invocationId) The identifier of the invocation of an action.knowledgeBaseConfigurations
(Collection<KnowledgeBaseConfiguration> knowledgeBaseConfigurations) An array of configurations, each of which applies to a knowledge base attached to the agent.knowledgeBaseConfigurations
(Consumer<KnowledgeBaseConfiguration.Builder>... knowledgeBaseConfigurations) An array of configurations, each of which applies to a knowledge base attached to the agent.knowledgeBaseConfigurations
(KnowledgeBaseConfiguration... knowledgeBaseConfigurations) An array of configurations, each of which applies to a knowledge base attached to the agent.promptSessionAttributes
(Map<String, String> promptSessionAttributes) Contains attributes that persist across a prompt and the values of those attributes.returnControlInvocationResults
(Collection<InvocationResultMember> returnControlInvocationResults) Contains information about the results from the action group invocation.returnControlInvocationResults
(Consumer<InvocationResultMember.Builder>... returnControlInvocationResults) Contains information about the results from the action group invocation.returnControlInvocationResults
(InvocationResultMember... returnControlInvocationResults) Contains information about the results from the action group invocation.sessionAttributes
(Map<String, String> sessionAttributes) Contains attributes that persist across a session and the values of those attributes.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, sdkFields
-
Method Details
-
files
Contains information about the files used by code interpreter.
- Parameters:
files
- Contains information about the files used by code interpreter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
files
Contains information about the files used by code interpreter.
- Parameters:
files
- Contains information about the files used by code interpreter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
files
Contains information about the files used by code interpreter.
This is a convenience method that creates an instance of theInputFile.Builder
avoiding the need to create one manually viaInputFile.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofiles(List<InputFile>)
.- Parameters:
files
- a consumer that will call methods onInputFile.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
invocationId
The identifier of the invocation of an action. This value must match the
invocationId
returned in theInvokeAgent
response for the action whose results are provided in thereturnControlInvocationResults
field. For more information, see Return control to the agent developer and Control session context.- Parameters:
invocationId
- The identifier of the invocation of an action. This value must match theinvocationId
returned in theInvokeAgent
response for the action whose results are provided in thereturnControlInvocationResults
field. For more information, see Return control to the agent developer and Control session context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfigurations
SessionState.Builder knowledgeBaseConfigurations(Collection<KnowledgeBaseConfiguration> knowledgeBaseConfigurations) An array of configurations, each of which applies to a knowledge base attached to the agent.
- Parameters:
knowledgeBaseConfigurations
- An array of configurations, each of which applies to a knowledge base attached to the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfigurations
SessionState.Builder knowledgeBaseConfigurations(KnowledgeBaseConfiguration... knowledgeBaseConfigurations) An array of configurations, each of which applies to a knowledge base attached to the agent.
- Parameters:
knowledgeBaseConfigurations
- An array of configurations, each of which applies to a knowledge base attached to the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfigurations
SessionState.Builder knowledgeBaseConfigurations(Consumer<KnowledgeBaseConfiguration.Builder>... knowledgeBaseConfigurations) An array of configurations, each of which applies to a knowledge base attached to the agent.
This is a convenience method that creates an instance of theKnowledgeBaseConfiguration.Builder
avoiding the need to create one manually viaKnowledgeBaseConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toknowledgeBaseConfigurations(List<KnowledgeBaseConfiguration>)
.- Parameters:
knowledgeBaseConfigurations
- a consumer that will call methods onKnowledgeBaseConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
promptSessionAttributes
Contains attributes that persist across a prompt and the values of those attributes. These attributes replace the $prompt_session_attributes$ placeholder variable in the orchestration prompt template. For more information, see Prompt template placeholder variables.
- Parameters:
promptSessionAttributes
- Contains attributes that persist across a prompt and the values of those attributes. These attributes replace the $prompt_session_attributes$ placeholder variable in the orchestration prompt template. For more information, see Prompt template placeholder variables.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnControlInvocationResults
SessionState.Builder returnControlInvocationResults(Collection<InvocationResultMember> returnControlInvocationResults) Contains information about the results from the action group invocation. For more information, see Return control to the agent developer and Control session context.
If you include this field, the
inputText
field will be ignored.- Parameters:
returnControlInvocationResults
- Contains information about the results from the action group invocation. For more information, see Return control to the agent developer and Control session context.If you include this field, the
inputText
field will be ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnControlInvocationResults
SessionState.Builder returnControlInvocationResults(InvocationResultMember... returnControlInvocationResults) Contains information about the results from the action group invocation. For more information, see Return control to the agent developer and Control session context.
If you include this field, the
inputText
field will be ignored.- Parameters:
returnControlInvocationResults
- Contains information about the results from the action group invocation. For more information, see Return control to the agent developer and Control session context.If you include this field, the
inputText
field will be ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnControlInvocationResults
SessionState.Builder returnControlInvocationResults(Consumer<InvocationResultMember.Builder>... returnControlInvocationResults) Contains information about the results from the action group invocation. For more information, see Return control to the agent developer and Control session context.
If you include this field, the
inputText
field will be ignored.InvocationResultMember.Builder
avoiding the need to create one manually viaInvocationResultMember.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreturnControlInvocationResults(List<InvocationResultMember>)
.- Parameters:
returnControlInvocationResults
- a consumer that will call methods onInvocationResultMember.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sessionAttributes
Contains attributes that persist across a session and the values of those attributes.
- Parameters:
sessionAttributes
- Contains attributes that persist across a session and the values of those attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-