generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 644
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem Statement
The session manager is not accessible in the AgentInitializedEvent hook. This prevents us from rehydrating conversation history when resuming paused conversations, forcing us to recreate agents for each invocation.
Proposed Solution
Include the session manager in the AgentInitializedEvent context, similar to how it's available in other events. This would allow hook handlers to access and modify conversation history during agent initialization.
Use Case
We are building a persistence layer for agent state. When an agent is resumed:
- The AgentInitializedEvent fires
- Our hook needs to load the previous conversation history from the persistence backend
- The session manager should be populated with this history before the agent continues
Without session manager access at this point, we cannot implement seamless conversation continuation.
Alternatives Solutions
We currently work around this by recreating agents with pre-populated history, but this adds latency and complexity.
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request