mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-07 12:47:55 -10:00
13 lines
568 B
Python
13 lines
568 B
Python
from praisonaiagents import Agent, MCP
|
|
|
|
agent = Agent(
|
|
instructions="""You are a helpful assistant that can check stock prices and perform other tasks.
|
|
Use the available tools when relevant to answer user questions.""",
|
|
llm="gpt-5-nano",
|
|
tools = MCP("/Users/praison/miniconda3/envs/mcp/bin/python /Users/praison/stockprice/app.py")
|
|
)
|
|
|
|
# NOTE: Python Path replace with yours: /Users/praison/miniconda3/envs/mcp/bin/python
|
|
# NOTE: app.py file path, replace it with yours: /Users/praison/stockprice/app.py
|
|
|
|
agent.start("What is the stock price of Tesla?") |