Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /agno-agi_agno /cookbook /91_tools /mcp /oxylabs.py
| """ | |
| Oxylabs | |
| ============================= | |
| Demonstrates oxylabs. | |
| """ | |
| import asyncio | |
| import os | |
| from agno.agent import Agent | |
| from agno.models.google import Gemini | |
| from agno.tools.mcp import MCPTools | |
| # --------------------------------------------------------------------------- | |
| # Create Agent | |
| # --------------------------------------------------------------------------- | |
| async def run_agent_prompt(): | |
| async with MCPTools( | |
| command="uvx oxylabs-mcp", | |
| env={ | |
| "OXYLABS_USERNAME": os.getenv("OXYLABS_USERNAME"), | |
| "OXYLABS_PASSWORD": os.getenv("OXYLABS_PASSWORD"), | |
| }, | |
| ) as server: | |
| agent = Agent( | |
| model=Gemini(api_key=os.getenv("GEMINI_API_KEY")), | |
| tools=[server], | |
| instructions=["Use MCP tools to fulfill the requests"], | |
| markdown=True, | |
| ) | |
| await agent.aprint_response( | |
| "Go to oxylabs.io, look for career page, " | |
| "go to it and return all job titles in markdown format. " | |
| "Don't invent URLs, start from one provided." | |
| ) | |
| # --------------------------------------------------------------------------- | |
| # Run Agent | |
| # --------------------------------------------------------------------------- | |
| if __name__ == "__main__": | |
| asyncio.run(run_agent_prompt()) | |
Xet Storage Details
- Size:
- 1.31 kB
- Xet hash:
- f40639151f01d925290b35f6acfe0625a22f14c92b92ec49e129818a49276286
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.