Class: Aws::BedrockAgentRuntime::Types::AgenticRetrieveMemoryConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockAgentRuntime::Types::AgenticRetrieveMemoryConfiguration
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-bedrockagentruntime/types.rb
Overview
Specifies an AgentCore Memory resource and how this retrieval uses it. Set sessionBinding to restore and continue a session. Set retrievalConfigs to let the agent retrieve from long-term memory. You must specify at least one of the two.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#memory_id ⇒ String
The identifier of the AgentCore Memory resource to use.
-
#persistence_mode ⇒ String
Specifies whether the agent-generated answer is written back to the given short-term memory session, and applies only when sessionBinding is set.
-
#retrieval_configs ⇒ Array<Types::AgenticRetrieveMemoryRetrievalConfig>
Specifies the long-term memory configuration the agent can retrieve from.
-
#session_binding ⇒ Types::AgenticRetrieveMemorySessionBinding
The short-term memory session whose history is restored for this retrieval.
Instance Attribute Details
#memory_id ⇒ String
The identifier of the AgentCore Memory resource to use. The resource must exist in your account and be in the ACTIVE state.
673 674 675 676 677 678 679 680 |
# File 'lib/aws-sdk-bedrockagentruntime/types.rb', line 673 class AgenticRetrieveMemoryConfiguration < Struct.new( :memory_id, :persistence_mode, :retrieval_configs, :session_binding) SENSITIVE = [] include Aws::Structure end |
#persistence_mode ⇒ String
Specifies whether the agent-generated answer is written back to the given short-term memory session, and applies only when sessionBinding is set. Valid values:
-
DEFAULT(default) – Specifies that the question and the agent-generated answer are persisted to the session as a single event. This value requires generateResponse to be true. -
NONE– Specifies that the session is left unchanged.
673 674 675 676 677 678 679 680 |
# File 'lib/aws-sdk-bedrockagentruntime/types.rb', line 673 class AgenticRetrieveMemoryConfiguration < Struct.new( :memory_id, :persistence_mode, :retrieval_configs, :session_binding) SENSITIVE = [] include Aws::Structure end |
#retrieval_configs ⇒ Array<Types::AgenticRetrieveMemoryRetrievalConfig>
Specifies the long-term memory configuration the agent can retrieve from. The agent decides whether to retrieve and composes its own query. This field currently accepts at most one entry.
673 674 675 676 677 678 679 680 |
# File 'lib/aws-sdk-bedrockagentruntime/types.rb', line 673 class AgenticRetrieveMemoryConfiguration < Struct.new( :memory_id, :persistence_mode, :retrieval_configs, :session_binding) SENSITIVE = [] include Aws::Structure end |
#session_binding ⇒ Types::AgenticRetrieveMemorySessionBinding
The short-term memory session whose history is restored for this retrieval. To persist the agent-generated answer to the session, omit persistenceMode or set it to DEFAULT. To leave the session unchanged, set persistenceMode to NONE. Supply session history through the existing messages parameter or through short-term memory, but not both.
673 674 675 676 677 678 679 680 |
# File 'lib/aws-sdk-bedrockagentruntime/types.rb', line 673 class AgenticRetrieveMemoryConfiguration < Struct.new( :memory_id, :persistence_mode, :retrieval_configs, :session_binding) SENSITIVE = [] include Aws::Structure end |