Human in the loop
Implémentation fonctionelle de l'HITL !
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user