mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-17 21:25:46 +02:00
move deprecation note for config_schema
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user