-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
feat: added discord-ai-agent to cookbook #242
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
### **PR Type** Enhancement, Bug fix ___ Refactor workspace ### **Description** - Added `execute` command to `actions` group for executing actions with parameters. - Replaced `_get_enum_key` with `get_enum_key` from `composio.utils.enums` across multiple files. - Added `ExecutionEnvironment` and `Env` classes to handle different execution environments. - Modified `LocalToolHandler` to initialize and execute actions based on the execution environment. - Simplified tools initialization by removing old toolset code and importing `ComposioToolSet`. - Added `execute_action` method to `DockerWorkspace` and abstract method in `base_workspace`. - Modified `create_workspace` in `workspace_factory` to return `Workspace` object instead of ID.
- building docker images from the -- git clone required version -- pip install requirements -- pip install composio core - to run composio tools docker images are public and hosted on `techcomposio` namespace --------- Co-authored-by: Karan Vaidya <[email protected]> Co-authored-by: angrybayblade <[email protected]> Co-authored-by: Viraj <[email protected]>
### **PR Type** Enhancement, Tests ___ ### **Description** - Refactored `ComposioToolSet` to improve workspace handling and logging. - Introduced `run_and_get_scores` function for running agents and retrieving scores. - Updated `run` function in `run_evaluation.py` to accept an `agent_func` parameter. - Enhanced logging setup and error handling in `run_evaluation.py`. - Removed obsolete `benchmark.template` file. - Added new `run_benchmark.template` for running benchmark evaluations.
### **PR Type** Documentation ___ ### **Description** - Added a new README file in Chinese (`README-CN.md`) with comprehensive details about the project, including features, quick start guides for Python and JavaScript, examples, and contribution guidelines. - Updated the main README (`README.md`) to include links for switching between English and Chinese versions. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>README-CN.md</strong><dd><code>Add Chinese README with comprehensive project details</code> </dd></summary> <hr> README-CN.md <li>Added a new README file in Chinese.<br> <li> Included sections for features, quick start guides, examples, and <br>contribution guidelines.<br> <li> Provided installation instructions for Python and JavaScript.<br> <li> Added links to social media, documentation, and contribution <br>resources.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/249/files#diff-3b6459f9330e366b00c2c21b99b2b154ed014c619559a4ed6d3328585d5995db">+281/-0</a> </td> </tr> <tr> <td> <details> <summary><strong>README.md</strong><dd><code>Add language switch links to README</code> </dd></summary> <hr> README.md <li>Added links to switch between English and Chinese versions of the <br>README.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/249/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5">+4/-0</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions --------- Co-authored-by: karthikeya-meesala <[email protected]> Co-authored-by: Soham <[email protected]>
Added Cloudflare integration in the sdk --------- Co-authored-by: Himanshu Dixit <[email protected]>
### **User description** minor fix ___ ### **PR Type** Documentation ___ ### **Description** - Fixed a minor typographical error in the Twitter integration documentation by removing a duplicated word. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Documentation </strong></td><td><table> <tr> <td> <details> <summary><strong>twitter.mdx</strong><dd><code>Fix minor typographical error in Twitter integration doc</code> </dd></summary> <hr> docs/apps/twitter.mdx - Fixed a minor typographical error by removing a duplicated word. </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/210/files#diff-dde3e749bbcdc04973e8b135e6321dd7748ce32e47e3eb8683c3d94511cef949">+1/-1</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions
- added evaluation manager - added better command line arguments --------- Co-authored-by: Viraj <[email protected]>
Added documentation for Cloudflare worker AI integration --------- Co-authored-by: Himanshu Dixit <[email protected]>
### **PR Type** Bug fix, Enhancement ___ ### **Description** - Added `appNames` query parameter to the `listAllConnections` function in `services.gen.ts`. - Added `appNames` and `status` fields to `ListAllConnectionsData` type in `types.gen.ts`. - Updated `Entity.execute` method to include `appNames` and `status` filters when listing connected accounts in `index.ts`. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>services.gen.ts</strong><dd><code>Add `appNames` query parameter to listAllConnections function</code></dd></summary> <hr> js/src/sdk/client/services.gen.ts <li>Added <code>appNames</code> query parameter to the <code>listAllConnections</code> function.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/269/files#diff-7943597be0769230c63ff83ba74782cdb97a074709e51fb46c262c49b53c3541">+1/-0</a> </td> </tr> <tr> <td> <details> <summary><strong>types.gen.ts</strong><dd><code>Add `appNames` and `status` fields to ListAllConnectionsData type</code></dd></summary> <hr> js/src/sdk/client/types.gen.ts <li>Added <code>appNames</code> and <code>status</code> fields to <code>ListAllConnectionsData</code> type.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/269/files#diff-3ab01407d70ffe2309b373f8828a40883c35a389afdb0122fb626dafaf39b56d">+10/-0</a> </td> </tr> </table></td></tr><tr><td><strong>Bug fix</strong></td><td><table> <tr> <td> <details> <summary><strong>index.ts</strong><dd><code>Update Entity.execute to filter connected accounts by appNames and </code><br><code>status</code></dd></summary> <hr> js/src/sdk/index.ts <li>Updated <code>Entity.execute</code> method to include <code>appNames</code> and <code>status</code> filters <br>when listing connected accounts.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/269/files#diff-de82114af414fc4b45690c3f12d436b62d6270bd11e7b985bc37de196609651e">+3/-1</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions
### **PR Type** enhancement ___ ### **Description** - Bumped the version of the JavaScript SDK from 0.1.4 to 0.1.5 in `package.json`. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>package.json</strong><dd><code>Update SDK version to 0.1.5</code> </dd></summary> <hr> js/package.json - Bumped the version from 0.1.4 to 0.1.5. </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/270/files#diff-e51a40ac250c9696142466f114f754161e7e5102c0cdb5354548b757deb272f6">+1/-1</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions
changes regarding techcomposio/Dockerfile.swe_agent 1. checking dockerfile 2. code changes: if COMPOSIO_SWE_ENV=dev --> mount current composio repo path to container /opt/composio-core and install from that path, else start container normally 3. docker image build is yet to do --------- Co-authored-by: Karan Vaidya <[email protected]>
- added $COMPOSIO_DEV_MODE for adding code from current context in container
### **User description** Update to new flows ___ ### **PR Type** Documentation ___ ### **Description** - Updated the README to provide a comprehensive overview of the Composio-swe framework. - Revised the dependencies and installation steps for clarity. - Added a new "Getting started" section to guide users on scaffolding a new agent. - Included instructions for adding new local tools and shell tools.
Co-authored-by: angrybayblade <[email protected]>
### **User description** I created Japanese translated README. ___ ### **PR Type** Documentation ___ ### **Description** - Added a new Japanese README file (`README-JP.md`) with comprehensive documentation including introduction, features, getting started guides for Python and JavaScript, examples, and contribution guidelines. - Updated the language selection section in `README.md` and `README-CN.md` to include a link to the new Japanese README.
Co-authored-by: Karan Vaidya <[email protected]> Co-authored-by: shubhra <[email protected]>
### **User description** Add [Spider](https://spider.cloud/), the [fastest](https://github.com/spider-rs/spider/blob/main/benches/BENCHMARKS.md#benchmark-results) open source scraper & crawler that returns LLM-ready data. Twitter: [@WilliamEspegren](https://x.com/WilliamEspegren) ___ ### **PR Type** Enhancement ___ ### **Description** - Added `SPIDERTOOL_CRAWL` and `SPIDERTOOL_SCRAPE` actions to the `Action` enum. - Added `SPIDERTOOL` to the `App` enum. - Imported and initialized `SpiderTool` in the local tools initializer. - Implemented `Crawl` and `Scrape` actions for SpiderTool with request and response schemas. - Defined `SpiderTool` class with `actions` and `triggers` methods, registering `Scrape` and `Crawl` actions.
### **PR Type** Enhancement, Documentation ___ ### **Description** - Added a new Slack bot agent using Ollama and Composio toolset, integrated with LangChain and OpenAI for message processing. - Implemented a setup script to create a virtual environment, install dependencies, and configure Composio Slackbot triggers. - Provided an example environment variables file for necessary API keys and bot ID. - Added a comprehensive README guide for setting up, configuring, and running the Slack bot agent. - Included a requirements file listing the necessary Python libraries. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>main.py</strong><dd><code>Add Slack bot agent with Ollama and Composio integration</code> </dd></summary> <hr> python/examples/slack_bot_agent/slack_agent_ollama/main.py <li>Added a new Slack bot agent using Ollama and Composio toolset.<br> <li> Integrated LangChain and OpenAI for message processing.<br> <li> Implemented a callback function to handle Slack messages.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/286/files#diff-4529a6f3b7a14df5c15acccc95baa89bed844b4a2899bd23134282aa3670a0e1">+78/-0</a> </td> </tr> <tr> <td> <details> <summary><strong>setup.sh</strong><dd><code>Add setup script for Slack bot environment and dependencies</code></dd></summary> <hr> python/examples/slack_bot_agent/slack_agent_ollama/setup.sh <li>Added setup script to create virtual environment and install <br>dependencies.<br> <li> Included steps to login to Composio and enable Slackbot triggers.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/286/files#diff-98d0e94ef30d4aab8ef8d0c5c066e06587959e28376d88ee47125d645c1e4ba7">+40/-0</a> </td> </tr> <tr> <td> <details> <summary><strong>requirements.txt</strong><dd><code>Add requirements file for dependencies</code> </dd></summary> <hr> python/examples/slack_bot_agent/slack_agent_ollama/requirements.txt - Added required Python libraries for the Slack bot agent. </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/286/files#diff-97fe30a1b7803cb13bc38839ae2013d99d9601a8fa4495460fe4be30f86a9088">+4/-0</a> </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>.env.example</strong><dd><code>Add example environment variables file</code> </dd></summary> <hr> python/examples/slack_bot_agent/slack_agent_ollama/.env.example <li>Added example environment variables for OpenAI, Composio API keys, and <br>Slack bot ID.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/286/files#diff-243e715fd038b7e2506bbdb2f5b32fadd9e0e253c5dd45a2f27dd475c9661333">+3/-0</a> </td> </tr> <tr> <td> <details> <summary><strong>readme.md</strong><dd><code>Add README guide for Slack bot setup and usage</code> </dd></summary> <hr> python/examples/slack_bot_agent/slack_agent_ollama/readme.md <li>Added guide for setting up and running the Slack bot agent.<br> <li> Included installation instructions for Ollama.<br> <li> Provided steps to enable triggers and run the bot.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/286/files#diff-426f47b3d1bafee1edc587e49b6f577bb0e703ee164835df823626e9e5184947">+57/-0</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions
PR Type
Enhancement, Documentation, Configuration changes
Description
Changes walkthrough 📝
4 files
main.py
Implement Discord bot for Google Calendar management
cookbook/discord-ai-agent/main.py
calendar management.
tools.py
Add tools for Google Calendar event management
cookbook/discord-ai-agent/tools.py
Calendar events.
calendar.py
Add utility for Google Calendar access
cookbook/discord-ai-agent/utils/calendar.py
manage_events.py
Implement event management function using AI agent
cookbook/discord-ai-agent/utils/manage_events.py
3 files
setup.sh
Add setup script for environment and dependencies
cookbook/discord-ai-agent/setup.sh
installation.
.env.example
Provide example environment variables
cookbook/discord-ai-agent/.env.example
requirements.txt
List project dependencies
cookbook/discord-ai-agent/requirements.txt
2 files
LICENSE
Add MIT License
cookbook/discord-ai-agent/LICENSE
README.md
Add README with project details and setup instructions
cookbook/discord-ai-agent/README.md