Class: Aws::BedrockAgentRuntime::Types::SessionState
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockAgentRuntime::Types::SessionState
- Defined in:
- gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb
Overview
Contains parameters that specify various attributes that persist across a session or prompt. You can define session state attributes as key-value pairs when writing a Lambda function for an action group or pass them when making an InvokeAgent request. Use session state attributes to control and provide conversational context for your agent and to help customize your agent's behavior. For more information, see Control session context.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#files ⇒ Array<Types::InputFile>
Contains information about the files used by code interpreter.
-
#invocation_id ⇒ String
The identifier of the invocation of an action.
-
#knowledge_base_configurations ⇒ Array<Types::KnowledgeBaseConfiguration>
An array of configurations, each of which applies to a knowledge base attached to the agent.
-
#prompt_session_attributes ⇒ Hash<String,String>
Contains attributes that persist across a prompt and the values of those attributes.
-
#return_control_invocation_results ⇒ Array<Types::InvocationResultMember>
Contains information about the results from the action group invocation.
-
#session_attributes ⇒ Hash<String,String>
Contains attributes that persist across a session and the values of those attributes.
Instance Attribute Details
#files ⇒ Array<Types::InputFile>
Contains information about the files used by code interpreter.
3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 |
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3854 class SessionState < Struct.new( :files, :invocation_id, :knowledge_base_configurations, :prompt_session_attributes, :return_control_invocation_results, :session_attributes) SENSITIVE = [] include Aws::Structure end |
#invocation_id ⇒ String
The identifier of the invocation of an action. This value must match
the invocationId
returned in the InvokeAgent
response for the
action whose results are provided in the
returnControlInvocationResults
field. For more information, see
Return control to the agent developer and Control session
context.
3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 |
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3854 class SessionState < Struct.new( :files, :invocation_id, :knowledge_base_configurations, :prompt_session_attributes, :return_control_invocation_results, :session_attributes) SENSITIVE = [] include Aws::Structure end |
#knowledge_base_configurations ⇒ Array<Types::KnowledgeBaseConfiguration>
An array of configurations, each of which applies to a knowledge base attached to the agent.
3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 |
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3854 class SessionState < Struct.new( :files, :invocation_id, :knowledge_base_configurations, :prompt_session_attributes, :return_control_invocation_results, :session_attributes) SENSITIVE = [] include Aws::Structure end |
#prompt_session_attributes ⇒ Hash<String,String>
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.
3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 |
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3854 class SessionState < Struct.new( :files, :invocation_id, :knowledge_base_configurations, :prompt_session_attributes, :return_control_invocation_results, :session_attributes) SENSITIVE = [] include Aws::Structure end |
#return_control_invocation_results ⇒ Array<Types::InvocationResultMember>
Contains information about the results from the action group invocation. For more information, see Return control to the agent developer and Control session context.
inputText
field will be ignored.
3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 |
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3854 class SessionState < Struct.new( :files, :invocation_id, :knowledge_base_configurations, :prompt_session_attributes, :return_control_invocation_results, :session_attributes) SENSITIVE = [] include Aws::Structure end |
#session_attributes ⇒ Hash<String,String>
Contains attributes that persist across a session and the values of those attributes.
3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 |
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3854 class SessionState < Struct.new( :files, :invocation_id, :knowledge_base_configurations, :prompt_session_attributes, :return_control_invocation_results, :session_attributes) SENSITIVE = [] include Aws::Structure end |