Constructor for InvocationContext
Optional
appApplication name (for multi-app environments)
Run configuration
In-memory storage for node execution results
Optional
memoryMemory service for long-term storage
Current conversation history
Additional context metadata
Unique session ID for the current conversation
Optional
sessionSession service for session management
Optional
userUser identifier associated with the session
Creates a new context with the same configuration but empty message history
Loads a session from the session service
The loaded session or undefined if not found
Searches memory for relevant information
The search query
Optional
options: SearchMemoryOptionsSearch options
Search results or empty response if no memory service
Sets a variable in the context
Contextual data for a specific agent invocation