Interface InlineSessionState.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InlineSessionState.Builder,,InlineSessionState> SdkBuilder<InlineSessionState.Builder,,InlineSessionState> SdkPojo
- Enclosing class:
InlineSessionState
-
Method Summary
Modifier and TypeMethodDescriptiondefault InlineSessionState.BuilderconversationHistory(Consumer<ConversationHistory.Builder> conversationHistory) Contains the conversation history that persist across sessions.conversationHistory(ConversationHistory conversationHistory) Contains the conversation history that persist across sessions.files(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.promptSessionAttributes(Map<String, String> promptSessionAttributes) Contains attributes that persist across a session 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
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
-
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.
-
promptSessionAttributes
Contains attributes that persist across a session and the values of those attributes.
- Parameters:
promptSessionAttributes- 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.
-
returnControlInvocationResults
InlineSessionState.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.
If you include this field in the
sessionStatefield, theinputTextfield 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.If you include this field in the
sessionStatefield, theinputTextfield will be ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnControlInvocationResults
InlineSessionState.Builder returnControlInvocationResults(InvocationResultMember... returnControlInvocationResults) Contains information about the results from the action group invocation. For more information, see Return control to the agent developer.
If you include this field in the
sessionStatefield, theinputTextfield 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.If you include this field in the
sessionStatefield, theinputTextfield will be ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnControlInvocationResults
InlineSessionState.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.
This is a convenience method that creates an instance of theIf you include this field in the
sessionStatefield, theinputTextfield will be ignored.InvocationResultMember.Builderavoiding the need to create one manually viaInvocationResultMember.builder().When the
Consumercompletes,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:
-
invocationId
The identifier of the invocation of an action. This value must match the
invocationIdreturned in theInvokeInlineAgentresponse for the action whose results are provided in thereturnControlInvocationResultsfield. For more information, see Return control to the agent developer.- Parameters:
invocationId- The identifier of the invocation of an action. This value must match theinvocationIdreturned in theInvokeInlineAgentresponse for the action whose results are provided in thereturnControlInvocationResultsfield. For more information, see Return control to the agent developer.- 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.
- 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.Builderavoiding the need to create one manually viaInputFile.builder().When the
Consumercompletes,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:
-
conversationHistory
Contains the conversation history that persist across sessions.
- Parameters:
conversationHistory- Contains the conversation history that persist across sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationHistory
default InlineSessionState.Builder conversationHistory(Consumer<ConversationHistory.Builder> conversationHistory) Contains the conversation history that persist across sessions.
This is a convenience method that creates an instance of theConversationHistory.Builderavoiding the need to create one manually viaConversationHistory.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconversationHistory(ConversationHistory).- Parameters:
conversationHistory- a consumer that will call methods onConversationHistory.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-