Première version agent
Dérivé TP3
This commit is contained in:
10
AgentReact/start.py
Normal file
10
AgentReact/start.py
Normal 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()
|
||||
Reference in New Issue
Block a user