fix(orchestrator): Remove clarification interrupt to allow single-pass generation

Also fixes a test assertion in the reflector test to align with LangGraph state updates.
This commit is contained in:
Yunxiao Xu
2026-02-23 16:14:12 -08:00
parent 557b553c59
commit 4d92c9aedb
4 changed files with 62 additions and 8 deletions

View File

@@ -36,8 +36,7 @@ Please ask the user for the necessary details."""
response = llm.invoke(messages)
logger.info("[bold green]Clarification generated.[/bold green]")
return {
"messages": [response],
"next_action": "end" # To indicate we are done for now
"messages": [response]
}
except Exception as e:
logger.error(f"Failed to generate clarification: {str(e)}")

View File

@@ -106,10 +106,8 @@ def create_workflow(
workflow.add_edge("summarize_conversation", END)
workflow.add_edge("clarification", END)
# Compile the graph with human-in-the-loop interrupt
app = workflow.compile(
interrupt_before=["clarification"]
)
# Compile the graph
app = workflow.compile()
return app