Update agent.py
This commit is contained in:
@@ -1,3 +1,16 @@
|
|||||||
langchain-community
|
import asyncio
|
||||||
langchain-core
|
from langchain_core.messages import AIMessage, HumanMessage
|
||||||
openai
|
from langgraph.graph import StateGraph
|
||||||
|
from langgraph.checkpoint.memory import MemorySaver
|
||||||
|
|
||||||
|
# Simple state with messages list
|
||||||
|
class AgentState:
|
||||||
|
def __init__(self):
|
||||||
|
self.messages = []
|
||||||
|
|
||||||
|
async def main():
|
||||||
|
# Placeholder for stream logic
|
||||||
|
print("Stream AI agent placeholder")
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
asyncio.run(main())
|
||||||
|
|||||||
Reference in New Issue
Block a user