Spaces:
Sleeping
Sleeping
Update app.py
Browse files10 unmodified lines1112131415161764 unmodified lines8283848586878810 unmodified linesfrom langchain_google_genai import ChatGoogleGenerativeAIfrom langchain.agents import create_agentfrom langchain_core.messages import HumanMessage# --- GLOBAL STATE ---64 unmodified linesagent_executor = create_agent(llm,mcp_tools,system_prompt = system_prompt)return {"status": "Success", "message": f"Agent initialized with {model_name}"}10 unmodified lines11121314151617181964 unmodified lines848586878889909110 unmodified linesfrom langchain_google_genai import ChatGoogleGenerativeAIfrom langchain.agents import create_agentfrom langchain_core.messages import HumanMessagefrom langgraph.store.memory import InMemoryStoremy_store = InMemoryStore()# --- GLOBAL STATE ---64 unmodified linesagent_executor = create_agent(llm,mcp_tools,system_prompt = system_prompt,store=my_store)return {"status": "Success", "message": f"Agent initialized with {model_name}"}
app.py+4-1