Constructor for InvocationContext
OptionalappApplication name (for multi-app environments)
Run configuration
In-memory storage for node execution results
OptionalmemoryMemory service for long-term storage
Current conversation history
Additional context metadata
Unique session ID for the current conversation
OptionalsessionSession service for session management
OptionaluserUser 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
Optionaloptions: SearchMemoryOptionsSearch options
Search results or empty response if no memory service
Sets a variable in the context
Contextual data for a specific agent invocation