Skip to content
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

Closed
wants to merge 43 commits into from

Conversation

apneduniya
Copy link
Contributor

@apneduniya apneduniya commented Jun 30, 2024

PR Type

Enhancement, Documentation, Configuration changes


Description

  • Implemented a Discord bot to manage Google Calendar events.
  • Added tools for creating, finding, updating, and deleting events.
  • Provided utility functions for Google Calendar access.
  • Integrated AI agent for managing events based on user prompts.
  • Added setup script for environment preparation and dependencies installation.
  • Included example environment variables and project dependencies.
  • Added comprehensive README with project details, setup instructions, and contributing guidelines.
  • Licensed the project under MIT License.

Changes walkthrough 📝

Relevant files
Enhancement
4 files
main.py
Implement Discord bot for Google Calendar management         

cookbook/discord-ai-agent/main.py

  • Added Discord bot setup and event handling.
  • Implemented commands for account creation, authentication, and
    calendar management.
  • Integrated Google Calendar API for event management.
  • +153/-0 
    tools.py
    Add tools for Google Calendar event management                     

    cookbook/discord-ai-agent/tools.py

  • Added tools for creating, finding, updating, and deleting Google
    Calendar events.
  • Implemented quick add event and remove attendee functionalities.
  • +409/-0 
    calendar.py
    Add utility for Google Calendar access                                     

    cookbook/discord-ai-agent/utils/calendar.py

  • Added utility to get Google Calendar by connected account ID.
  • Integrated Google OAuth2 credentials.
  • +44/-0   
    manage_events.py
    Implement event management function using AI agent             

    cookbook/discord-ai-agent/utils/manage_events.py

  • Added function to manage Google Calendar events using AI agent.
  • Integrated various event management tools.
  • +68/-0   
    Configuration changes
    3 files
    setup.sh
    Add setup script for environment and dependencies               

    cookbook/discord-ai-agent/setup.sh

  • Added setup script for environment setup and dependencies
    installation.
  • Included steps for Composio login and .env file preparation.
  • +31/-0   
    .env.example
    Provide example environment variables                                       

    cookbook/discord-ai-agent/.env.example

    • Added example environment variables for configuration.
    +4/-0     
    requirements.txt
    List project dependencies                                                               

    cookbook/discord-ai-agent/requirements.txt

    • Added required Python packages for the project.
    +10/-0   
    Documentation
    2 files
    LICENSE
    Add MIT License                                                                                   

    cookbook/discord-ai-agent/LICENSE

    • Added MIT License for the project.
    +21/-0   
    README.md
    Add README with project details and setup instructions     

    cookbook/discord-ai-agent/README.md

  • Added project description and features.
  • Included setup instructions and project structure.
  • Provided contributing guidelines and acknowledgments.
  • +111/-0 

    💡 PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    @codiumai-pr-agent-pro codiumai-pr-agent-pro bot added documentation Improvements or additions to documentation enhancement New feature or request Configuration changes Review effort [1-5]: 4 labels Jun 30, 2024
    Copy link

    PR Reviewer Guide 🔍

    ⏱️ Estimated effort to review [1-5] 4
    🧪 Relevant tests No
    🔒 Security concerns No
    ⚡ Key issues to review Possible Bug:
    The code does not handle exceptions for network requests. It is recommended to add error handling around requests.post and requests.get calls to manage potential network issues or bad responses.
    Security Concern:
    The code exposes sensitive API keys and tokens in environment variables which are good, but ensure these are not logged or exposed through debugging information.
    Performance Concern:
    The bot's event handling could be optimized. Currently, every message received by the bot triggers bot.process_commands(message), which might not be necessary if the message does not contain a command.

    Copy link

    PR Code Suggestions ✨

    CategorySuggestion                                                                                                                                    Score
    Best practice
    Add error handling for API requests to improve robustness

    Add error handling for the HTTP request to manage different HTTP status codes and
    responses appropriately, ensuring more robust interaction with the API.

    cookbook/discord-ai-agent/tools.py [92-93]

     response = requests.post(url, json=payload, headers=headers)
    -response_json = response.json()
    +if response.status_code == 200:
    +    response_json = response.json()
    +else:
    +    return f"Error: {response.status_code} - {response.text}"
     
    • Apply this suggestion
    Suggestion importance[1-10]: 10

    Why: Adding error handling for HTTP requests is crucial for robust and reliable API interactions, ensuring that the application can handle different HTTP status codes and responses appropriately.

    10
    Improve the safety and robustness of environment variable access

    Replace the direct access of environment variables with a safer method that checks for the
    existence of the key and provides a default or error message if not found. This avoids
    runtime errors due to missing keys.

    cookbook/discord-ai-agent/tools.py [9]

    -COMPOSIO_API_KEY = os.environ["COMPOSIO_API_KEY"]
    +COMPOSIO_API_KEY = os.getenv("COMPOSIO_API_KEY", "default_api_key")
     
    • Apply this suggestion
    Suggestion importance[1-10]: 9

    Why: This suggestion improves the robustness of the code by providing a default value for the environment variable, preventing potential runtime errors due to missing keys.

    9
    Possible issue
    Correct the anchor link in the Table of Contents to ensure it matches the section title

    Ensure that the anchor links in the Table of Contents are correctly pointing to the
    corresponding sections in the document. The current anchor for 'Project Structure' is
    incorrect and should be updated to match the section title.

    cookbook/discord-ai-agent/README.md [21]

    -<li><a href="#%EF%B8%8F-project-structure">Project Structure</a></li>
    +<li><a href="#-project-structure">Project Structure</a></li>
     
    • Apply this suggestion
    Suggestion importance[1-10]: 10

    Why: The current anchor link for 'Project Structure' is incorrect and does not match the section title, which can lead to navigation issues. Correcting this ensures that users can navigate the document properly.

    10
    Consolidate duplicate package entries in the requirements file to prevent installation conflicts

    It appears that the package 'crewai' is listed twice with different versions. Consolidate
    these into a single, correct version to avoid potential conflicts during installation.

    cookbook/discord-ai-agent/requirements.txt [1-2]

    -crewai==0.32.2
    -crewai[tools]==0.3.0
    +crewai[tools]==0.32.2
     
    • Apply this suggestion
    Suggestion importance[1-10]: 10

    Why: Having 'crewai' listed twice with different versions can cause conflicts during installation. Consolidating them into a single, correct version prevents these issues and ensures a smooth installation process.

    10
    Possible bug
    Fix the closing tag in the 'Acknowledgments' section to correct the HTML syntax

    The closing tag for the 'Acknowledgments' section is incorrect and should be changed from
    to to ensure proper HTML syntax.

    cookbook/discord-ai-agent/README.md [23]

    -<li><a href="#-acknowledgments">Acknowledgments<a/></li>
    +<li><a href="#-acknowledgments">Acknowledgments</a></li>
     
    • Apply this suggestion
    Suggestion importance[1-10]: 10

    Why: The closing tag for the 'Acknowledgments' section is incorrect. Fixing this ensures proper HTML syntax and prevents potential rendering issues.

    10
    Enhancement
    Replace print statements with logging for better output management

    Implement logging instead of using print statements for better traceability and
    professionalism in the codebase.

    cookbook/discord-ai-agent/tools.py [47]

    -print("\n\nCreating event\n\n")
    +import logging
    +logging.info("Creating event")
     
    • Apply this suggestion
    Suggestion importance[1-10]: 8

    Why: Implementing logging instead of print statements enhances traceability and professionalism in the codebase, which is important for debugging and monitoring in production environments.

    8
    Enhance the description of how Composio is used in the project to provide clearer insights into its benefits and integration

    The description of how Composio was used is vague and could be improved by providing
    specific examples or details on how it integrates with the Google Calendar and enhances
    the bot's functionality.

    cookbook/discord-ai-agent/README.md [41]

    -**Composio** was very _crucial and reliable tool_ for making my project. It helped me to make my agentic tools for the agent **much more faster** and **in an easy way** acting like a **pipeline** between _agent_ and _google calendar_.
    +**Composio** played a crucial role in my project by providing a seamless integration with Google Calendar. It enabled the bot to efficiently manage calendar events through commands, significantly reducing development time and complexity.
     
    • Apply this suggestion
    Suggestion importance[1-10]: 7

    Why: While the current description is somewhat vague, improving it with specific examples and details can provide better insights into how Composio integrates with Google Calendar and enhances the bot's functionality. This is a minor enhancement for better clarity.

    7
    Maintainability
    Refactor the function to improve maintainability and readability

    Refactor the function to reduce complexity by splitting the large create_event function
    into smaller, more manageable functions, each handling a specific part of the event
    creation process.

    cookbook/discord-ai-agent/tools.py [14-85]

    +def create_event_basic_info(start_datetime, end_datetime, title):
    +    return {
    +        "start_datetime": start_datetime,
    +        "end_datetime": end_datetime,
    +        "summary": title
    +    }
    +
     def create_event(connectedAccountId: str, start_datetime: str, end_datetime: str, title: str | None = None, description: str | None = None, eventType: str | None = None, create_meeting_room: bool | None = None, guestsCanSeeOtherGuests: bool | None = None, guestsCanInviteOthers: bool | None = None, location: str | None = None, visibility: str | None = None, attendees: list | None = None, send_updates: bool | None = None, guests_can_modify: bool | None = None, calendar_id: str | None = None) -> str:
    +    input_data = create_event_basic_info(start_datetime, end_datetime, title)
    +    # Additional settings and API call remain here
     
    • Apply this suggestion
    Suggestion importance[1-10]: 7

    Why: Refactoring the function to reduce complexity is a good practice for maintainability and readability, but it is not as critical as error handling or environment variable safety.

    7

    angrybayblade and others added 22 commits July 1, 2024 09:57
    ### **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>&nbsp; &nbsp; &nbsp; &nbsp;
    </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>&nbsp;
    </td>
    
    </tr>                    
    
    <tr>
      <td>
        <details>
    <summary><strong>README.md</strong><dd><code>Add language switch links
    to README</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; </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>&nbsp;
    &nbsp; &nbsp; </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>&nbsp; </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>&nbsp;
    &nbsp; &nbsp; </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>&nbsp;
    &nbsp; &nbsp; </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>&nbsp;
    &nbsp; </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>&nbsp;
    &nbsp; &nbsp; </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
    utkarsh-dixit and others added 17 commits July 9, 2024 13:58
    ### **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>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; </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>&nbsp;
    &nbsp; &nbsp; </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: Karan Vaidya <[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.
    Prathit-tech and others added 2 commits July 10, 2024 19:14
    ### **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>&nbsp; </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>&nbsp;
    &nbsp; </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>&nbsp;
    &nbsp; </td>
    
    </tr>                    
    
    <tr>
      <td>
        <details>
    <summary><strong>requirements.txt</strong><dd><code>Add requirements
    file for dependencies</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; </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>&nbsp;
    &nbsp; &nbsp; </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>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; </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>&nbsp;
    &nbsp; &nbsp; </td>
    
    </tr>                    
    
    <tr>
      <td>
        <details>
    <summary><strong>readme.md</strong><dd><code>Add README guide for Slack
    bot setup and usage</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </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>&nbsp;
    &nbsp; </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
    @apneduniya apneduniya closed this by deleting the head repository Jul 12, 2024
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Configuration changes documentation Improvements or additions to documentation enhancement New feature or request Review effort [1-5]: 4
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.