Create a new file google_maps_agent.py with the following code:
Copy
from praisonaiagents import Agent, MCPimport os# Get the API key from environmentmaps_api_key = os.getenv("GOOGLE_MAPS_API_KEY")# Use a single string command with Google Maps configurationmaps_agent = Agent( instructions="""You are a helpful assistant that can interact with Google Maps. Use the available tools when relevant to handle location-based queries.""", llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-google-maps", env={"GOOGLE_MAPS_API_KEY": maps_api_key}))maps_agent.start("Find nearby restaurants in London")