Files
PraisonAI/examples/python/api/simple-api-mcp.py
T
2026-01-08 20:12:14 +00:00

8 lines
287 B
Python

from praisonaiagents import Agent, MCP
search_agent = Agent(
instructions="""You are a weather agent that can provide weather information for a given city.""",
llm="openai/gpt-4o-mini",
tools=MCP("http://localhost:8080/sse")
)
search_agent.launch(path="/weather", port=3030)