User prompt node

Permet de demander un prompt à l'utilisateur
This commit is contained in:
2026-02-08 18:58:27 +01:00
parent 82a5491188
commit e0bd50a15b
4 changed files with 54 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ def getGraph()->CompiledStateGraph:
workflow = getState() # State prêt à utiliser
# Définition des sommets du graphe
workflow.add_node(user_prompt)
workflow.add_node(call_to_LLM)
workflow.add_node(preparation_docs)
workflow.add_node(inject_preparation_prompt)
@@ -27,8 +28,9 @@ def getGraph()->CompiledStateGraph:
workflow.add_edge("inject_preparation_prompt", "preparation_docs")
workflow.add_conditional_edges("preparation_docs", should_continue, {
"tools":"weekly_report_tools",
"no_tools":"call_to_LLM"
"no_tools":"user_prompt"
})
workflow.add_edge("user_prompt", "call_to_LLM")
#workflow.set_entry_point("call_to_LLM")
workflow.add_edge("weekly_report_tools", "preparation_docs")