Renamme node central

This commit is contained in:
2026-02-08 22:21:51 +01:00
parent e0bd50a15b
commit bdf5b7dd98
3 changed files with 8 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ def getGraph()->CompiledStateGraph:
# Définition des sommets du graphe
workflow.add_node(user_prompt)
workflow.add_node(call_to_LLM)
workflow.add_node(LLM_central)
workflow.add_node(preparation_docs)
workflow.add_node(inject_preparation_prompt)
workflow.add_node("tool_node", tool_node)# BasicToolNode(tools=getTools())) # N'est pas une fonction, mais une classe instanciée, je dois précisier le nom du node
@@ -30,12 +30,11 @@ def getGraph()->CompiledStateGraph:
"tools":"weekly_report_tools",
"no_tools":"user_prompt"
})
workflow.add_edge("user_prompt", "call_to_LLM")
workflow.add_edge("user_prompt", "LLM_central")
#workflow.set_entry_point("call_to_LLM")
workflow.add_edge("weekly_report_tools", "preparation_docs")
workflow.add_edge("tool_node", "call_to_LLM")
workflow.add_conditional_edges("call_to_LLM", should_continue, {
workflow.add_edge("tool_node", "LLM_central")
workflow.add_conditional_edges("LLM_central", should_continue, {
"tools":"tool_node",
"no_tools":END
})