|
|
@@ -156,8 +156,7 @@ class PlanningAgent:
|
|
|
|
|
|
# 执行规划
|
|
|
start_time = datetime.now()
|
|
|
- response = await
|
|
|
- planner.ainvoke({
|
|
|
+ response = await planner.ainvoke({
|
|
|
"question": question,
|
|
|
"industry": industry,
|
|
|
"messages": [("system", status_info)]
|
|
|
@@ -358,8 +357,7 @@ async def plan_next_action(question: str, industry: str, current_state: Dict[str
|
|
|
agent = PlanningAgent(api_key)
|
|
|
|
|
|
try:
|
|
|
- decision = await
|
|
|
- agent.make_decision(question, industry, current_state)
|
|
|
+ decision = await agent.make_decision(question, industry, current_state)
|
|
|
|
|
|
print(f"\n🧠 规划决策:{decision.decision}")
|
|
|
print(f" 推理:{decision.reasoning[:100]}...")
|