Spaces:
Runtime error
Runtime error
Commit
·
45e9de4
1
Parent(s):
db970aa
add stuff
Browse files- __pycache__/graph.cpython-310.pyc +0 -0
- app.log +20 -0
- graph.py +4 -2
__pycache__/graph.cpython-310.pyc
CHANGED
Binary files a/__pycache__/graph.cpython-310.pyc and b/__pycache__/graph.cpython-310.pyc differ
|
|
app.log
CHANGED
@@ -49724,3 +49724,23 @@ Traceback (most recent call last):
|
|
49724 |
raise GraphRecursionError(msg)
|
49725 |
langgraph.errors.GraphRecursionError: Recursion limit of 20 reached without hitting a stop condition. You can increase the limit by setting the `recursion_limit` config key.
|
49726 |
For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49724 |
raise GraphRecursionError(msg)
|
49725 |
langgraph.errors.GraphRecursionError: Recursion limit of 20 reached without hitting a stop condition. You can increase the limit by setting the `recursion_limit` config key.
|
49726 |
For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT
|
49727 |
+
2025-06-06 09:04:36:__main__:INFO: Starting the interface
|
49728 |
+
2025-06-06 09:04:45:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
49729 |
+
2025-06-06 09:04:51:__main__:INFO: Prompt: You are a helpful assistant.
|
49730 |
+
2025-06-06 09:05:28:__main__:ERROR: Exception occurred
|
49731 |
+
Traceback (most recent call last):
|
49732 |
+
File "/home/user/app/app.py", line 85, in chat_fn
|
49733 |
+
async for stream_mode, chunk in graph.astream(
|
49734 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/pregel/__init__.py", line 2677, in astream
|
49735 |
+
raise GraphRecursionError(msg)
|
49736 |
+
langgraph.errors.GraphRecursionError: Recursion limit of 20 reached without hitting a stop condition. You can increase the limit by setting the `recursion_limit` config key.
|
49737 |
+
For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT
|
49738 |
+
2025-06-06 09:05:45:__main__:INFO: Prompt: You are a helpful assistant.
|
49739 |
+
2025-06-06 09:06:17:__main__:ERROR: Exception occurred
|
49740 |
+
Traceback (most recent call last):
|
49741 |
+
File "/home/user/app/app.py", line 85, in chat_fn
|
49742 |
+
async for stream_mode, chunk in graph.astream(
|
49743 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/pregel/__init__.py", line 2677, in astream
|
49744 |
+
raise GraphRecursionError(msg)
|
49745 |
+
langgraph.errors.GraphRecursionError: Recursion limit of 20 reached without hitting a stop condition. You can increase the limit by setting the `recursion_limit` config key.
|
49746 |
+
For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT
|
graph.py
CHANGED
@@ -190,6 +190,8 @@ async def assistant_node(state: GraphProcessingState, config=None):
|
|
190 |
chain = prompt | assistant_model
|
191 |
response = await chain.ainvoke({"messages": state.messages}, config=config)
|
192 |
|
|
|
|
|
193 |
idea_complete = evaluate_idea_completion(response)
|
194 |
|
195 |
return {
|
@@ -222,7 +224,7 @@ async def guidance_node(state: GraphProcessingState, config=None):
|
|
222 |
|
223 |
|
224 |
print(f"Prompt: {state.prompt}")
|
225 |
-
print(f"Message: {state.messages}")
|
226 |
|
227 |
print(f"Tools Enabled: {state.tools_enabled}")
|
228 |
print(f"Search Enabled: {state.search_enabled}")
|
@@ -313,7 +315,7 @@ def guidance_routing(state: GraphProcessingState) -> str:
|
|
313 |
|
314 |
|
315 |
print(f"Prompt: {state.prompt}")
|
316 |
-
print(f"Message: {state.messages}")
|
317 |
print(f"Tools Enabled: {state.tools_enabled}")
|
318 |
print(f"Search Enabled: {state.search_enabled}")
|
319 |
print(f"Next Stage: {state.next_stage}")
|
|
|
190 |
chain = prompt | assistant_model
|
191 |
response = await chain.ainvoke({"messages": state.messages}, config=config)
|
192 |
|
193 |
+
print(response.content)
|
194 |
+
|
195 |
idea_complete = evaluate_idea_completion(response)
|
196 |
|
197 |
return {
|
|
|
224 |
|
225 |
|
226 |
print(f"Prompt: {state.prompt}")
|
227 |
+
# print(f"Message: {state.messages}")
|
228 |
|
229 |
print(f"Tools Enabled: {state.tools_enabled}")
|
230 |
print(f"Search Enabled: {state.search_enabled}")
|
|
|
315 |
|
316 |
|
317 |
print(f"Prompt: {state.prompt}")
|
318 |
+
# print(f"Message: {state.messages}")
|
319 |
print(f"Tools Enabled: {state.tools_enabled}")
|
320 |
print(f"Search Enabled: {state.search_enabled}")
|
321 |
print(f"Next Stage: {state.next_stage}")
|