From 457641f15e7abd28da8736b1986ed150fa144c4a Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Tue, 18 Feb 2025 13:33:47 -0500 Subject: [PATCH] docs: remove beta from functional api (#3475) --- docs/docs/concepts/functional_api.md | 3 --- docs/docs/concepts/index.md | 2 +- docs/docs/how-tos/index.md | 14 +++++--------- libs/langgraph/langgraph/func/__init__.py | 7 ------- 4 files changed, 6 insertions(+), 20 deletions(-) diff --git a/docs/docs/concepts/functional_api.md b/docs/docs/concepts/functional_api.md index 295cd054c..e1e7c4142 100644 --- a/docs/docs/concepts/functional_api.md +++ b/docs/docs/concepts/functional_api.md @@ -1,8 +1,5 @@ # Functional API -!!! warning "Beta" - The Functional API is currently in **beta** and is subject to change. Please [report any issues](https://github.com/langchain-ai/langgraph/issues) or feedback to the LangGraph team. - ## Overview The **Functional API** allows you to add LangGraph's key features -- [persistence](./persistence.md), [memory](./memory.md), [human-in-the-loop](./human_in_the_loop.md), and [streaming](./streaming.md) — to your applications with minimal changes to your existing code. diff --git a/docs/docs/concepts/index.md b/docs/docs/concepts/index.md index 87032f5fa..42260d003 100644 --- a/docs/docs/concepts/index.md +++ b/docs/docs/concepts/index.md @@ -28,7 +28,7 @@ The conceptual guide does not cover step-by-step instructions or specific implem - [Persistence](persistence.md): LangGraph has a built-in persistence layer, implemented through checkpointers. This persistence layer helps to support powerful capabilities like human-in-the-loop, memory, time travel, and fault-tolerance. - [Memory](memory.md): Memory in AI applications refers to the ability to process, store, and effectively recall information from past interactions. With memory, your agents can learn from feedback and adapt to users' preferences. - [Streaming](streaming.md): Streaming is crucial for enhancing the responsiveness of applications built on LLMs. By displaying output progressively, even before a complete response is ready, streaming significantly improves user experience (UX), particularly when dealing with the latency of LLMs. -- [Functional API (beta)](functional_api.md): An alternative to [Graph API (StateGraph)](low_level.md#stategraph) for development in LangGraph. +- [Functional API](functional_api.md): `@entrypoint` and `@task` decorators that allow you to add LangGraph functionality to an existing codebase. - [FAQ](faq.md): Frequently asked questions about LangGraph. ## LangGraph Platform diff --git a/docs/docs/how-tos/index.md b/docs/docs/how-tos/index.md index bf1566cf0..6e007b5b2 100644 --- a/docs/docs/how-tos/index.md +++ b/docs/docs/how-tos/index.md @@ -39,8 +39,7 @@ execution of your graph. - [How to use MongoDB checkpointer for persistence](persistence_mongodb.ipynb) - [How to create a custom checkpointer using Redis](persistence_redis.ipynb) -See the below guides for how-to add persistence to your workflow using the (beta) -[Functional API](../concepts/functional_api.md): +See the below guides for how-to add persistence to your workflow using the [Functional API](../concepts/functional_api.md): - [How to add thread-level persistence (functional API)](persistence-functional.ipynb) - [How to add cross-thread persistence (functional API)](cross-thread-persistence-functional.ipynb) @@ -73,7 +72,7 @@ Other methods: - [How to edit graph state](human_in_the_loop/edit-graph-state.ipynb): Edit graph state using `graph.update_state` method. Use this if implementing a **human-in-the-loop** workflow via **static breakpoints**. - [How to add dynamic breakpoints with `NodeInterrupt`](human_in_the_loop/dynamic_breakpoints.ipynb): **Not recommended**: Use the [`interrupt` function](../concepts/human_in_the_loop.md) instead. -See the below guides for how-to implement human-in-the-loop workflows with the (beta) +See the below guides for how-to implement human-in-the-loop workflows with the [Functional API](../concepts/functional_api.md): - [How to wait for user input (Functional API)](wait-user-input-functional.ipynb) @@ -130,8 +129,7 @@ These how-to guides show common patterns for tool calling with LangGraph: See the [multi-agent tutorials](../tutorials/index.md#multi-agent-systems) for implementations of other multi-agent architectures. -See the below guides for how to implement multi-agent workflows with the (beta) -[Functional API](../concepts/functional_api.md): +See the below guides for how to implement multi-agent workflows with the [Functional API](../concepts/functional_api.md): - [How to build a multi-agent network (functional API)](multi-agent-network-functional.ipynb) - [How to add multi-turn conversation in a multi-agent application (functional API)](multi-agent-multi-turn-convo-functional.ipynb) @@ -149,8 +147,7 @@ See the below guides for how to implement multi-agent workflows with the (beta) - [How to pass custom LangSmith run ID for graph runs](run-id-langsmith.ipynb) - [How to integrate LangGraph with AutoGen, CrewAI, and other frameworks](autogen-integration.ipynb) -See the below guide for how to integrate with other frameworks using the (beta) -[Functional API](../concepts/functional_api.md): +See the below guide for how to integrate with other frameworks using the [Functional API](../concepts/functional_api.md): - [How to integrate LangGraph (functional API) with AutoGen, CrewAI, and other frameworks](autogen-integration-functional.ipynb) @@ -174,8 +171,7 @@ overview of its underlying implementation to help you customize for your own nee - [How to create prebuilt ReAct agent from scratch](react-agent-from-scratch.ipynb) -See the below guide for how-to build ReAct agents with the (beta) -[Functional API](../concepts/functional_api.md): +See the below guide for how-to build ReAct agents with the [Functional API](../concepts/functional_api.md): - [How to create a ReAct agent from scratch (Functional API)](react-agent-from-scratch-functional.ipynb) diff --git a/libs/langgraph/langgraph/func/__init__.py b/libs/langgraph/langgraph/func/__init__.py index 603a1164b..a3d012e55 100644 --- a/libs/langgraph/langgraph/func/__init__.py +++ b/libs/langgraph/langgraph/func/__init__.py @@ -57,9 +57,6 @@ def task( ]: """Define a LangGraph task using the `task` decorator. - !!! warning "Beta" - The Functional API is currently in beta and is subject to change. - !!! important "Requires python 3.11 or higher for async functions" The `task` decorator supports both sync and async functions. To use async functions, ensure that you are using Python 3.11 or higher. @@ -153,10 +150,6 @@ S = TypeVar("S") class entrypoint: """Define a LangGraph workflow using the `entrypoint` decorator. - !!! warning "Beta" - The Functional API is currently in beta and is subject to change. - - ### Function signature The decorated function must accept a **single parameter**, which serves as the input