Skip to main content
The RunContext is an object that can be referenced in pre- and post-hooks, tools, and other parts of the run. See Agent State for examples of how to use the RunContext in your code.

RunContext Attributes

AttributeTypeDescription
run_idstrRun ID
session_idstrSession ID for the run
user_idOptional[str]User ID associated with the run
dependenciesDict[str, Any]Dependencies for the run
knowledge_filtersDict[str, Any]Knowledge filters for the run
metadataDict[str, Any]Metadata associated with the run
session_stateDict[str, Any]Session state for the run