feat: agent files
This commit is contained in:
13
main.py
Normal file
13
main.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from core.agent.agent import create_agent_graph
|
||||
from langchain_core.messages import HumanMessage, AIMessage
|
||||
|
||||
def main():
|
||||
print("Hello from oss-agent!")
|
||||
graph = create_agent_graph()
|
||||
graph.invoke({"messages": []})
|
||||
# Invoke the graph with a test message
|
||||
output = graph.invoke({"messages": [HumanMessage(content="hi!")]})
|
||||
print("Agent response:", output)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user