ag-ui-langgraph-0.0.9a0


توضیحات

Implementation of the AG-UI protocol for LangGraph.
ویژگی مقدار
سیستم عامل -
نام فایل ag-ui-langgraph-0.0.9a0
نام ag-ui-langgraph
نسخه کتابخانه 0.0.9a0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Ran Shem Tov
ایمیل نویسنده ran@copilotkit.ai
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/ag-ui-langgraph/
مجوز -
# ag-ui-langgraph Implementation of the AG-UI protocol for LangGraph. Provides a complete Python integration for LangGraph agents with the AG-UI protocol, including FastAPI endpoint creation and comprehensive event streaming. ## Installation ```bash pip install ag-ui-langgraph ``` ## Usage ```python from langgraph.graph import StateGraph, MessagesState from langchain_openai import ChatOpenAI from ag_ui_langgraph import LangGraphAgent, add_langgraph_fastapi_endpoint from fastapi import FastAPI from my_langgraph_workflow import graph # Add to FastAPI app = FastAPI() add_langgraph_fastapi_endpoint(app, graph, "/agent") ``` ## Features - **Native LangGraph integration** – Direct support for LangGraph workflows and state management - **FastAPI endpoint creation** – Automatic HTTP endpoint generation with proper event streaming - **Advanced event handling** – Comprehensive support for all AG-UI events including thinking, tool calls, and state updates - **Message translation** – Seamless conversion between AG-UI and LangChain message formats ## To run the dojo examples ```bash cd python/ag_ui_langgraph/examples poetry install poetry run dev ```


نیازمندی

مقدار نام
- ag-ui-protocol<0.2.0,>=0.1.10
xtr fastapi<0.116.0,>=0.115.12;
- langchain>=0.3.0
- langchain-core>=0.3.0
- langgraph<1.1.0,>=0.3.25
- pydantic>=2.0.0


زبان مورد نیاز

مقدار نام
<3.14,>=3.10 Python


نحوه نصب


نصب پکیج whl ag-ui-langgraph-0.0.9a0:

    pip install ag-ui-langgraph-0.0.9a0.whl


نصب پکیج tar.gz ag-ui-langgraph-0.0.9a0:

    pip install ag-ui-langgraph-0.0.9a0.tar.gz