create_agent
runs on LangGraph’s runtime under the hood.
LangGraph exposes a Runtime
object with the following information:
BaseStore
instance used for long term memory"custom""
stream modecreate_agent
, you can specify a context_schema
to define the structure of the context
stored in the agent runtime.
When invoking the agent, pass the context
argument with the relevant configuration for the run:
get_runtime
function from langgraph.runtime
to access the Runtime
object inside a tool.
get_runtime
function from langgraph.runtime
to access the Runtime
object inside a prompt function.
get_runtime
function from langgraph.runtime
to access the Runtime
object inside the hookRuntime
directly via the hook signature