Human in the loop

Implémentation fonctionelle de l'HITL !
This commit is contained in:
2026-02-06 22:07:47 +01:00
parent 523cea84fe
commit a9ff56c122
6 changed files with 71 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
from langgraph.graph import START, END
from langgraph.graph.state import CompiledStateGraph
from langgraph.checkpoint.memory import InMemorySaver
from utils.nodes import call_to_LLM, should_continue, task_ended, BasicToolNode, tool_node
from utils.state import getState
@@ -26,7 +27,7 @@ def getGraph()->CompiledStateGraph:
"no_tools":END
})
return workflow.compile()
return workflow.compile(checkpointer=InMemorySaver()) # TODO: Rempalcer par une vrai BDD de prod
if __name__ == "__main__":
# Affichage du graphe