Spaces:
Runtime error
Runtime error
Commit
·
20b3669
1
Parent(s):
b038f16
fixed requirements.txt
Browse files- graph/graph_builder.py +0 -23
- requirements.txt +102 -3
graph/graph_builder.py
DELETED
@@ -1,23 +0,0 @@
|
|
1 |
-
from langgraph.graph import START, StateGraph
|
2 |
-
from langgraph.prebuilt import tools_condition
|
3 |
-
from langgraph.prebuilt import ToolNode
|
4 |
-
from nodes.core import assistant, tools
|
5 |
-
from states.state import AgentState
|
6 |
-
|
7 |
-
## The graph
|
8 |
-
builder = StateGraph(AgentState)
|
9 |
-
|
10 |
-
# Define nodes: these do the work
|
11 |
-
builder.add_node("assistant", assistant)
|
12 |
-
builder.add_node("tools", ToolNode(tools))
|
13 |
-
|
14 |
-
# Define edges: these determine how the control flow moves
|
15 |
-
builder.add_edge(START, "assistant")
|
16 |
-
builder.add_conditional_edges(
|
17 |
-
"assistant",
|
18 |
-
# If the latest message requires a tool, route to tools
|
19 |
-
# Otherwise, provide a direct response
|
20 |
-
tools_condition,
|
21 |
-
)
|
22 |
-
builder.add_edge("tools", "assistant")
|
23 |
-
graph = builder.compile()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements.txt
CHANGED
@@ -1,5 +1,45 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
langchain==0.3.25
|
4 |
langchain-community==0.3.24
|
5 |
langchain-core==0.3.63
|
@@ -12,4 +52,63 @@ langgraph-checkpoint==2.0.26
|
|
12 |
langgraph-prebuilt==0.2.2
|
13 |
langgraph-sdk==0.1.70
|
14 |
langgraph-supervisor==0.0.27
|
15 |
-
langsmith==0.3.43
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
aiofiles==24.1.0
|
2 |
+
aiohappyeyeballs==2.6.1
|
3 |
+
aiohttp==3.12.11
|
4 |
+
aiosignal==1.3.2
|
5 |
+
annotated-types==0.7.0
|
6 |
+
anyio==4.9.0
|
7 |
+
async-timeout==4.0.3
|
8 |
+
attrs==25.3.0
|
9 |
+
backoff==2.2.1
|
10 |
+
cachetools==5.5.2
|
11 |
+
certifi==2025.4.26
|
12 |
+
charset-normalizer==3.4.2
|
13 |
+
click==8.2.1
|
14 |
+
colorama==0.4.6
|
15 |
+
dataclasses-json==0.6.7
|
16 |
+
exceptiongroup==1.3.0
|
17 |
+
fastapi==0.115.12
|
18 |
+
ffmpy==0.6.0
|
19 |
+
filelock==3.18.0
|
20 |
+
filetype==1.2.0
|
21 |
+
frozenlist==1.6.2
|
22 |
+
fsspec==2025.5.1
|
23 |
+
google-ai-generativelanguage==0.6.18
|
24 |
+
google-api-core==2.25.0
|
25 |
+
google-auth==2.40.3
|
26 |
+
google-genai==1.19.0
|
27 |
+
googleapis-common-protos==1.70.0
|
28 |
+
gradio==5.33.0
|
29 |
+
gradio_client==1.10.2
|
30 |
+
greenlet==3.2.3
|
31 |
+
groovy==0.1.2
|
32 |
+
grpcio==1.72.1
|
33 |
+
grpcio-status==1.72.1
|
34 |
+
h11==0.16.0
|
35 |
+
httpcore==1.0.9
|
36 |
+
httpx==0.28.1
|
37 |
+
httpx-sse==0.4.0
|
38 |
+
huggingface-hub==0.32.4
|
39 |
+
idna==3.10
|
40 |
+
Jinja2==3.1.6
|
41 |
+
jsonpatch==1.33
|
42 |
+
jsonpointer==3.0.0
|
43 |
langchain==0.3.25
|
44 |
langchain-community==0.3.24
|
45 |
langchain-core==0.3.63
|
|
|
52 |
langgraph-prebuilt==0.2.2
|
53 |
langgraph-sdk==0.1.70
|
54 |
langgraph-supervisor==0.0.27
|
55 |
+
langsmith==0.3.43
|
56 |
+
markdown-it-py==3.0.0
|
57 |
+
MarkupSafe==3.0.2
|
58 |
+
marshmallow==3.26.1
|
59 |
+
mcp==1.9.0
|
60 |
+
mdurl==0.1.2
|
61 |
+
multidict==6.4.4
|
62 |
+
mypy==1.16.0
|
63 |
+
mypy_extensions==1.1.0
|
64 |
+
numpy==2.2.6
|
65 |
+
orjson==3.10.18
|
66 |
+
ormsgpack==1.10.0
|
67 |
+
packaging==24.2
|
68 |
+
pandas==2.3.0
|
69 |
+
pathspec==0.12.1
|
70 |
+
pillow==11.2.1
|
71 |
+
propcache==0.3.1
|
72 |
+
proto-plus==1.26.1
|
73 |
+
protobuf==6.31.1
|
74 |
+
pyasn1==0.6.1
|
75 |
+
pyasn1_modules==0.4.2
|
76 |
+
pydantic==2.11.5
|
77 |
+
pydantic-settings==2.9.1
|
78 |
+
pydantic_core==2.33.2
|
79 |
+
pydub==0.25.1
|
80 |
+
Pygments==2.19.1
|
81 |
+
python-dateutil==2.9.0.post0
|
82 |
+
python-dotenv==1.1.0
|
83 |
+
python-multipart==0.0.20
|
84 |
+
pytz==2025.2
|
85 |
+
PyYAML==6.0.2
|
86 |
+
requests==2.32.3
|
87 |
+
requests-toolbelt==1.0.0
|
88 |
+
rich==14.0.0
|
89 |
+
rsa==4.9.1
|
90 |
+
ruff==0.11.13
|
91 |
+
safehttpx==0.1.6
|
92 |
+
semantic-version==2.10.0
|
93 |
+
shellingham==1.5.4
|
94 |
+
six==1.17.0
|
95 |
+
sniffio==1.3.1
|
96 |
+
SQLAlchemy==2.0.41
|
97 |
+
sse-starlette==2.3.6
|
98 |
+
starlette==0.46.2
|
99 |
+
tenacity==9.1.2
|
100 |
+
tomli==2.2.1
|
101 |
+
tomlkit==0.13.3
|
102 |
+
tqdm==4.67.1
|
103 |
+
typer==0.16.0
|
104 |
+
typing-inspect==0.9.0
|
105 |
+
typing-inspection==0.4.1
|
106 |
+
typing_extensions==4.14.0
|
107 |
+
tzdata==2025.2
|
108 |
+
urllib3==2.4.0
|
109 |
+
uvicorn==0.34.3
|
110 |
+
websockets==15.0.1
|
111 |
+
wrapt==1.17.2
|
112 |
+
xxhash==3.5.0
|
113 |
+
yarl==1.20.0
|
114 |
+
zstandard==0.23.0
|