diff --git a/libs/langgraph/langgraph/func/__init__.py b/libs/langgraph/langgraph/func/__init__.py index ec453fec2..5d60f2095 100644 --- a/libs/langgraph/langgraph/func/__init__.py +++ b/libs/langgraph/langgraph/func/__init__.py @@ -261,10 +261,11 @@ class entrypoint(Generic[ContextT]): passed to the workflow. cache_policy: A cache policy to use for caching the results of the workflow. retry_policy: A retry policy (or list of policies) to use for the workflow in case of a failure. - config_schema: Specifies the schema for the `configurable` key in the `RunnableConfig` object. - !!! warning "Deprecated" - This parameter is deprecated and support will be removed in v2.0.0. - Please use `context_schema` instead. + + !!! warning "`config_schema` Deprecated" + The `config_schema` parameter is deprecated in v0.6.0 and support will be removed in v2.0.0. + Please use `context_schema` instead to specify the schema run run-scoped context. + Example: Using entrypoint and tasks ```python diff --git a/libs/langgraph/langgraph/graph/state.py b/libs/langgraph/langgraph/graph/state.py index 0bee5c0dc..9c218bdc3 100644 --- a/libs/langgraph/langgraph/graph/state.py +++ b/libs/langgraph/langgraph/graph/state.py @@ -128,10 +128,10 @@ class StateGraph(Generic[StateT, ContextT, InputT, OutputT]): Use this to expose immutable context data to your nodes, like user_id, db_conn, etc. input_schema: The schema class that defines the input to the graph. output_schema: The schema class that defines the output from the graph. - config_schema: Specifies the schema for the `configurable` key in the `RunnableConfig` object. - !!! warning "Deprecated" - This parameter is deprecated and support will be removed in v2.0.0. - Please use `context_schema` instead. + + !!! warning "`config_schema` Deprecated" + The `config_schema` parameter is deprecated in v0.6.0 and support will be removed in v2.0.0. + Please use `context_schema` instead to specify the schema run run-scoped context. Example: ```python diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 34c1a930b..e5aa25010 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -363,10 +363,11 @@ def create_react_agent( name: An optional name for the CompiledStateGraph. This name will be automatically used when adding ReAct agent graph to another graph as a subgraph node - particularly useful for building multi-agent systems. - config_schema: Specifies the schema for the `configurable` key in the `RunnableConfig` object. - !!! warning "Deprecated" - This parameter is deprecated and support will be removed in v2.0.0. - Please use `context_schema` instead. + + !!! warning "`config_schema` Deprecated" + The `config_schema` parameter is deprecated in v0.6.0 and support will be removed in v2.0.0. + Please use `context_schema` instead to specify the schema run run-scoped context. + Returns: A compiled LangChain runnable that can be used for chat interactions.