Files
Projet-Agent-IA/AgentReact/start.py
2026-02-03 15:22:32 +01:00

10 lines
315 B
Python

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()