-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update to version 2.1.1 #442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| FROM python:3.11-slim | ||
| WORKDIR /app | ||
| COPY . . | ||
| RUN pip install flask praisonai==2.1.0 gunicorn markdown | ||
| RUN pip install flask praisonai==2.1.1 gunicorn markdown | ||
| EXPOSE 8080 | ||
| CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| --- | ||
| title: "Anthropic MCP Integration" | ||
| sidebarTitle: "Anthropic" | ||
| description: "Guide for integrating Anthropic's Claude models with PraisonAI agents using MCP" | ||
| icon: "a" | ||
| --- | ||
|
|
||
| ## Add Anthropic Tool to AI Agent | ||
|
|
||
| ```mermaid | ||
| flowchart LR | ||
| In[In] --> Agent[AI Agent] | ||
| Agent --> Tool[Airbnb MCP] | ||
| Tool --> Agent | ||
| Agent --> Out[Out] | ||
|
|
||
| style In fill:#8B0000,color:#fff | ||
| style Agent fill:#2E8B57,color:#fff | ||
| style Tool fill:#FF5A5F,color:#fff | ||
| style Out fill:#8B0000,color:#fff | ||
| ``` | ||
|
|
||
| ## Quick Start | ||
|
|
||
| <Steps> | ||
| <Step title="Set API Key"> | ||
| Set your Anthropic API key as an environment variable in your terminal: | ||
| ```zsh | ||
| export ANTHROPIC_API_KEY=your_anthropic_api_key_here | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Create a file"> | ||
| Create a new file `anthropic_airbnb.py` with the following code: | ||
| ```python | ||
| from praisonaiagents import Agent, MCP | ||
| import os | ||
|
|
||
| # Get API key from environment variable | ||
| anthropic_api_key = os.environ.get("ANTHROPIC_API_KEY") | ||
|
|
||
| search_agent = Agent( | ||
| instructions="""You help book apartments on Airbnb.""", | ||
| llm="anthropic/claude-3-7-sonnet-20250219", | ||
| tools=MCP( | ||
| command="npx", | ||
| args=["-y", "@openbnb/mcp-server-airbnb", "--ignore-robots-txt"], | ||
| env={"ANTHROPIC_API_KEY": anthropic_api_key} | ||
| ) | ||
| ) | ||
|
|
||
| search_agent.start("MUST USE airbnb_search Tool to Search. Search for Apartments in Paris for 2 nights. 04/28 - 04/30 for 2 adults. All Your Preference") | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Install Dependencies"> | ||
| Make sure you have Node.js installed, as the MCP server requires it: | ||
| ```bash | ||
| pip install "praisonaiagents[llm]" | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Run the Agent"> | ||
| Execute your script: | ||
| ```bash | ||
| python anthropic_airbnb.py | ||
| ``` | ||
| </Step> | ||
| </Steps> | ||
|
|
||
| <Note> | ||
| **Requirements** | ||
| - Python 3.10 or higher | ||
| - Node.js installed on your system | ||
| - Anthropic API key | ||
| </Note> | ||
|
|
||
| ## Features | ||
|
|
||
| <CardGroup cols={2}> | ||
| <Card title="Claude 3.7 Sonnet" icon="brain"> | ||
| Leverage Anthropic's powerful Claude 3.7 Sonnet model. | ||
| </Card> | ||
| <Card title="MCP Integration" icon="plug"> | ||
| Seamless integration with Model Context Protocol. | ||
| </Card> | ||
| <Card title="Airbnb Search" icon="hotel"> | ||
| Search for accommodations on Airbnb with natural language queries. | ||
| </Card> | ||
| <Card title="Environment Variables" icon="key"> | ||
| Securely pass API keys using environment variables. | ||
| </Card> | ||
| </CardGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| --- | ||
| title: "Gemini MCP Integration" | ||
| sidebarTitle: "Gemini" | ||
| description: "Guide for integrating Google's Gemini models with PraisonAI agents using MCP" | ||
| icon: "google" | ||
| --- | ||
|
|
||
| ## Add Gemini Tool to AI Agent | ||
|
|
||
| ```mermaid | ||
| flowchart LR | ||
| In[In] --> Agent[AI Agent] | ||
| Agent --> Tool[Airbnb MCP] | ||
| Tool --> Agent | ||
| Agent --> Out[Out] | ||
|
|
||
| style In fill:#8B0000,color:#fff | ||
| style Agent fill:#2E8B57,color:#fff | ||
| style Tool fill:#FF5A5F,color:#fff | ||
| style Out fill:#8B0000,color:#fff | ||
| ``` | ||
|
|
||
| ## Quick Start | ||
|
|
||
| <Steps> | ||
| <Step title="Set API Key"> | ||
| Set your Google API key as an environment variable in your terminal: | ||
| ```zsh | ||
| export GOOGLE_API_KEY=your_google_api_key_here | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Create a file"> | ||
| Create a new file `gemini_airbnb.py` with the following code: | ||
| ```python | ||
| from praisonaiagents import Agent, MCP | ||
| import os | ||
|
|
||
| # Get API key from environment variable | ||
| google_api_key = os.environ.get("GOOGLE_API_KEY") | ||
|
|
||
| search_agent = Agent( | ||
| instructions="""You help book apartments on Airbnb.""", | ||
| llm="gemini/gemini-2.5-pro-exp-03-25", | ||
| tools=MCP( | ||
| command="npx", | ||
| args=["-y", "@openbnb/mcp-server-airbnb", "--ignore-robots-txt"], | ||
| env={"GOOGLE_API_KEY": google_api_key} | ||
| ) | ||
| ) | ||
|
|
||
| search_agent.start("MUST USE airbnb_search Tool to Search. Search for Apartments in Paris for 2 nights. 04/28 - 04/30 for 2 adults. All Your Preference") | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Install Dependencies"> | ||
| Make sure you have Node.js installed, as the MCP server requires it: | ||
| ```bash | ||
| pip install "praisonaiagents[llm]" | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Run the Agent"> | ||
| Execute your script: | ||
| ```bash | ||
| python gemini_airbnb.py | ||
| ``` | ||
| </Step> | ||
| </Steps> | ||
|
|
||
| <Note> | ||
| **Requirements** | ||
| - Python 3.10 or higher | ||
| - Node.js installed on your system | ||
| - Google API key for Gemini models | ||
| </Note> | ||
|
|
||
| ## Features | ||
|
|
||
| <CardGroup cols={2}> | ||
| <Card title="Gemini 2.5 Pro" icon="brain"> | ||
| Leverage Google's advanced Gemini 2.5 Pro model. | ||
| </Card> | ||
| <Card title="MCP Integration" icon="plug"> | ||
| Seamless integration with Model Context Protocol. | ||
| </Card> | ||
| <Card title="Airbnb Search" icon="hotel"> | ||
| Search for accommodations on Airbnb with natural language queries. | ||
| </Card> | ||
| <Card title="Environment Variables" icon="key"> | ||
| Securely pass API keys using environment variables. | ||
| </Card> | ||
| </CardGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| --- | ||
| title: "Groq MCP Integration" | ||
| sidebarTitle: "Groq" | ||
| description: "Guide for integrating Groq models with PraisonAI agents using MCP" | ||
| icon: "bolt" | ||
| --- | ||
|
|
||
| ## Add Groq Tool to AI Agent | ||
|
|
||
| ```mermaid | ||
| flowchart LR | ||
| In[In] --> Agent[AI Agent] | ||
| Agent --> Tool[Airbnb MCP] | ||
| Tool --> Agent | ||
| Agent --> Out[Out] | ||
|
|
||
| style In fill:#8B0000,color:#fff | ||
| style Agent fill:#2E8B57,color:#fff | ||
| style Tool fill:#FF5A5F,color:#fff | ||
| style Out fill:#8B0000,color:#fff | ||
| ``` | ||
|
|
||
| ## Quick Start | ||
|
|
||
| <Steps> | ||
| <Step title="Set API Key"> | ||
| Set your Groq API key as an environment variable in your terminal: | ||
| ```bash | ||
| export GROQ_API_KEY=your_groq_api_key_here | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Create a file"> | ||
| Create a new file `groq_airbnb.py` with the following code: | ||
| ```python | ||
| from praisonaiagents import Agent, MCP | ||
|
|
||
| search_agent = Agent( | ||
| instructions="""You help book apartments on Airbnb.""", | ||
| llm="groq/llama-3.2-90b-vision-preview", | ||
| tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt") | ||
| ) | ||
|
|
||
| search_agent.start("MUST USE airbnb_search Tool to Search. Search for Apartments in Paris for 2 nights. 04/28 - 04/30 for 2 adults. All Your Preference") | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Install Dependencies"> | ||
| Make sure you have Node.js installed, as the MCP server requires it: | ||
| ```bash | ||
| pip install "praisonaiagents[llm]" | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Run the Agent"> | ||
| Execute your script: | ||
| ```bash | ||
| python groq_airbnb.py | ||
| ``` | ||
| </Step> | ||
| </Steps> | ||
|
|
||
| <Note> | ||
| **Requirements** | ||
| - Python 3.10 or higher | ||
| - Node.js installed on your system | ||
| - Groq API key | ||
| </Note> | ||
|
|
||
| ## Features | ||
|
|
||
| <CardGroup cols={2}> | ||
| <Card title="Ultra-Fast Inference" icon="bolt"> | ||
| Utilize Groq's high-performance LPU inference for rapid responses. | ||
| </Card> | ||
| <Card title="MCP Integration" icon="plug"> | ||
| Seamless integration with Model Context Protocol. | ||
| </Card> | ||
| <Card title="Airbnb Search" icon="hotel"> | ||
| Search for accommodations on Airbnb with natural language queries. | ||
| </Card> | ||
| <Card title="Advanced Models" icon="brain"> | ||
| Access to Llama 3.2 90B and other powerful models. | ||
| </Card> | ||
| </CardGroup> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| --- | ||
| title: "Mistral MCP Integration" | ||
| sidebarTitle: "Mistral" | ||
| description: "Guide for integrating Mistral models with PraisonAI agents using MCP" | ||
| icon: "wind" | ||
| --- | ||
|
|
||
| ## Add Mistral Tool to AI Agent | ||
|
|
||
| ```mermaid | ||
| flowchart LR | ||
| In[In] --> Agent[AI Agent] | ||
| Agent --> Tool[Airbnb MCP] | ||
| Tool --> Agent | ||
| Agent --> Out[Out] | ||
|
|
||
| style In fill:#8B0000,color:#fff | ||
| style Agent fill:#2E8B57,color:#fff | ||
| style Tool fill:#FF5A5F,color:#fff | ||
| style Out fill:#8B0000,color:#fff | ||
| ``` | ||
|
|
||
| ## Quick Start | ||
|
|
||
| <Steps> | ||
| <Step title="Set API Key"> | ||
| Set your Mistral API key as an environment variable in your terminal: | ||
| ```zsh | ||
| export MISTRAL_API_KEY=your_mistral_api_key_here | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Create a file"> | ||
| Create a new file `mistral_airbnb.py` with the following code: | ||
| ```python | ||
| from praisonaiagents import Agent, MCP | ||
| import os | ||
|
|
||
| # Get API key from environment variable | ||
| mistral_api_key = os.environ.get("MISTRAL_API_KEY") | ||
|
|
||
| search_agent = Agent( | ||
| instructions="""You help book apartments on Airbnb.""", | ||
| llm="mistral/mistral-large-latest", | ||
| tools=MCP( | ||
| command="npx", | ||
| args=["-y", "@openbnb/mcp-server-airbnb", "--ignore-robots-txt"], | ||
| env={"MISTRAL_API_KEY": mistral_api_key} | ||
| ) | ||
| ) | ||
|
|
||
| search_agent.start("MUST USE airbnb_search Tool to Search. Search for Apartments in Paris for 2 nights. 04/28 - 04/30 for 2 adults. All Your Preference") | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Install Dependencies"> | ||
| Make sure you have Node.js installed, as the MCP server requires it: | ||
| ```bash | ||
| pip install "praisonaiagents[llm]" | ||
| ``` | ||
| </Step> | ||
|
|
||
| <Step title="Run the Agent"> | ||
| Execute your script: | ||
| ```bash | ||
| python mistral_airbnb.py | ||
| ``` | ||
| </Step> | ||
| </Steps> | ||
|
|
||
| <Note> | ||
| **Requirements** | ||
| - Python 3.10 or higher | ||
| - Node.js installed on your system | ||
| - Mistral API key | ||
| </Note> | ||
|
|
||
| ## Features | ||
|
|
||
| <CardGroup cols={2}> | ||
| <Card title="Mistral Large" icon="brain"> | ||
| Leverage Mistral's powerful large language model. | ||
| </Card> | ||
| <Card title="MCP Integration" icon="plug"> | ||
| Seamless integration with Model Context Protocol. | ||
| </Card> | ||
| <Card title="Airbnb Search" icon="hotel"> | ||
| Search for accommodations on Airbnb with natural language queries. | ||
| </Card> | ||
| <Card title="Environment Variables" icon="key"> | ||
| Securely pass API keys using environment variables. | ||
| </Card> | ||
| </CardGroup> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Groq API key is not being passed to the MCP server. This is inconsistent with other integrations. You should pass the Groq API key as an environment variable to the MCP server.