Skip to content

Commit 35732f4

Browse files
Merge pull request #454 from MervinPraison/develop
Add new Databutton and Research agents in `databutton-mcp.py` and `mc…
2 parents c542dfd + 20d926d commit 35732f4

4 files changed

Lines changed: 39 additions & 754 deletions

File tree

examples/mcp/databutton-mcp.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from praisonaiagents import Agent, MCP
2+
import os
3+
4+
# Databutton API key
5+
databutton_api_key = os.getenv("DATABUTTON_API_KEY")
6+
7+
# Create databutton agent
8+
databutton_agent = Agent(
9+
instructions="""You are a helpful assistant that can interact with Databutton.
10+
Use the available tools when relevant to answer user questions.""",
11+
llm="gpt-4o-mini",
12+
tools=MCP("uvx databutton-app-mcp@latest", env={"DATABUTTON_API_KEY": databutton_api_key})
13+
)
14+
15+
databutton_agent.start("Get the current stock price for AAPL, Tesla, and Amazon")

src/praisonai-agents/mcp-llama4.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from praisonaiagents import Agent, MCP
2+
import os
3+
4+
brave_api_key = os.getenv("BRAVE_API_KEY")
5+
6+
research_agent = Agent(
7+
instructions="Research Agent",
8+
llm="groq/meta-llama/llama-4-scout-17b-16e-instruct",
9+
tools=MCP("npx -y @modelcontextprotocol/server-brave-search", env={"BRAVE_API_KEY": brave_api_key})
10+
)
11+
12+
research_agent.start("What is the latest research on the topic of AI and its impact on society?")

src/praisonai-agents/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "praisonaiagents"
7-
version = "0.0.73"
7+
version = "0.0.74"
88
description = "Praison AI agents for completing complex tasks with Self Reflection Agents"
99
authors = [
1010
{ name="Mervin Praison" }

0 commit comments

Comments
 (0)