Download src/agents/sub_agents/read_agent/agent.py from AIterAI/Finova: direct link, hf CLI and curl.
- Browser
- Download file 899 Bytes
-
https://huggingface.co/spaces/AIterAI/Finova/resolve/main/src/agents/sub_agents/read_agent/agent.py
- Command line
-
hf download hf://spaces/AIterAI/Finova/src/agents/sub_agents/read_agent/agent.py
-
curl -L -o agent.py https://huggingface.co/spaces/AIterAI/Finova/resolve/main/src/agents/sub_agents/read_agent/agent.py
899 Bytes
| from google.adk.agents import Agent | |
| from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset | |
| from google.adk.tools.mcp_tool.mcp_session_manager import StdioConnectionParams | |
| from mcp import StdioServerParameters | |
| from src.tools import get_current_time | |
| from src.prompts import READ_AGENT | |
| from src.db import DB_PATH | |
| read_agent = Agent( | |
| name="read_agent", | |
| model=READ_AGENT.config.model, | |
| description="Agent that specialized in reading transaction", | |
| instruction=READ_AGENT.prompt, | |
| tools=[ | |
| MCPToolset( | |
| connection_params=StdioConnectionParams( | |
| server_params=StdioServerParameters( | |
| command="npx", | |
| args= [ | |
| "-y", | |
| "@executeautomation/database-server", | |
| f"{DB_PATH}" | |
| ] | |
| ) | |
| ) | |
| ) | |
| ] | |
| ) | |