Spaces:
Sleeping
Sleeping
| from mcp_use import MCPAgent, MCPClient | |
| import os | |
| from langchain_google_genai import ChatGoogleGenerativeAI | |
| from dotenv import load_dotenv | |
| load_dotenv(dotenv_path="src/configs/.env") | |
| summary_client = MCPClient.from_config_file(os.path.join("src", "configs", "mcp_config.json")) | |
| llm = ChatGoogleGenerativeAI( | |
| model="gemini-2.5-flash", | |
| temperature=0, | |
| google_api_key=os.getenv("GEMINI_API_KEY") | |
| ) | |
| summary_agent = MCPAgent(llm=llm, client=summary_client, max_steps=5, verbose=False) | |