Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,8 +50,9 @@ def plan_node(state: AgentState) -> AgentState:
|
|
50 |
"Example: {'web_search_query':'Mercedes Sosa discography'}\n"
|
51 |
"Respond with only that Python dict literal—no additional text."
|
52 |
]
|
|
|
53 |
llm_out = llm(prompt).content.strip()
|
54 |
-
|
55 |
try:
|
56 |
parsed = eval(llm_out, {}, {})
|
57 |
if isinstance(parsed, dict):
|
@@ -95,7 +96,9 @@ def finalize_node(state: AgentState) -> AgentState:
|
|
95 |
return {"final_answer": state["final_answer"]}
|
96 |
|
97 |
parts.append("ASSISTANT: Please provide the final answer now.")
|
|
|
98 |
llm_out = llm(parts).content.strip()
|
|
|
99 |
return {"final_answer": llm_out}
|
100 |
|
101 |
|
|
|
50 |
"Example: {'web_search_query':'Mercedes Sosa discography'}\n"
|
51 |
"Respond with only that Python dict literal—no additional text."
|
52 |
]
|
53 |
+
print("plan_node content problem: ", prompt)
|
54 |
llm_out = llm(prompt).content.strip()
|
55 |
+
print("plan_node passed")
|
56 |
try:
|
57 |
parsed = eval(llm_out, {}, {})
|
58 |
if isinstance(parsed, dict):
|
|
|
96 |
return {"final_answer": state["final_answer"]}
|
97 |
|
98 |
parts.append("ASSISTANT: Please provide the final answer now.")
|
99 |
+
print("finalize_node content problem: ", parts)
|
100 |
llm_out = llm(parts).content.strip()
|
101 |
+
print("finalize_node passed")
|
102 |
return {"final_answer": llm_out}
|
103 |
|
104 |
|