From 5644100ee0d3510084d81ff787b9f3a46898d5fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B8=D0=BD=D0=B0=D1=80=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0=D0=B3=D0=B8=D1=82=D0=BE=D0=B2?= Date: Wed, 27 May 2026 08:36:36 +0000 Subject: [PATCH] Update agent.py --- agent.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/agent.py b/agent.py index 3f02305..9cc7ecd 100644 --- a/agent.py +++ b/agent.py @@ -1,3 +1,16 @@ -langchain-community -langchain-core -openai +import asyncio +from langchain_core.messages import AIMessage, HumanMessage +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())