mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-07 04:35:58 -10:00
9 lines
310 B
Python
9 lines
310 B
Python
# praisonai: skip=true
|
|
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) |