mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-09 11:51:37 -10:00
8 lines
287 B
Python
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) |