Skill 3.2.9

Implement agent state management systems

Key Concepts

Short-term state holds the current session's messages, tool results and progress: Bedrock Agents session state and session attributes, AgentCore Memory events, or framework state persisted in DynamoDB.

Long-term memory keeps facts, preferences and summaries across sessions. AgentCore Memory extracts them with built-in strategies (semantic facts, user preferences, summaries) or custom ones, scoped by actor and session. Keep state outside the compute so runtimes stay stateless.