Première version agent

Dérivé TP3
This commit is contained in:
2026-02-03 15:22:32 +01:00
commit 75008b05e4
12 changed files with 154 additions and 0 deletions

10
AgentReact/start.py Normal file
View File

@@ -0,0 +1,10 @@
from dotenv import load_dotenv
load_dotenv()
from langchain.messages import HumanMessage, SystemMessage, AIMessage, ToolMessage
from agent import getGraph
out_state = getGraph().invoke({'messages':[HumanMessage("What's the price for bitcoin ?")]})
for message in out_state['messages']:
message.pretty_print()