memory

Extension function to access the AgentMemory feature from a AIAgentStageContext.

This provides a convenient way to access memory operations within agent nodes.

Example usage:

val rememberUserPreference by node {
// Access memory directly
val memory = stageContext.memory()
// Use memory operations...
}

Return

The AgentMemory instance for this agent context