Spaces:
Sleeping
Sleeping
File size: 497 Bytes
3107242 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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)
|