mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-07 12:47:55 -10:00
12 lines
467 B
Python
12 lines
467 B
Python
from praisonaiagents import Agent, MCP
|
|
|
|
stock_agent = Agent(
|
|
instructions="""You are a Stock Price Assistant.""",
|
|
llm="ollama/llama3.2",
|
|
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
|
|
|
|
stock_agent.start("What is the Stock Price of Apple?") |