Skip to main content

No project description provided

Project description

CrewAI extensions

Use Pocket Tools

from crewai import Agent
from crewai.project import CrewBase, agent
from hyperpocket_crewai import PocketCrewAI


@CrewBase
class YourCrew:
    """Your Crew"""

    def __init__(self):
        self.pocket = PocketCrewAI(
            tools=[
                "https://github.com/vessl-ai/hyperpocket/tree/main/tools/slack/get-message",
                "https://github.com/vessl-ai/hyperpocket/tree/main/tools/google/get-calendar-events",
                "https://github.com/vessl-ai/hyperpocket/tree/main/tools/google/get-calendar-list",
                "https://github.com/vessl-ai/hyperpocket/tree/main/tools/github/list-pull-requests",
            ]
        )

        # (optional) if you use tools that require authentication.
        self.pocket.init()

    @agent
    def your_agent(self) -> Agent:
        return Agent(
            role=ROLE,
            llm=LLM,
            goal=GOAL,
            backstroy=BACKSTORY,
            tools=self.pocket.get_tools()
        )

if you want to use tools that require authentication, you should call PocketCrewAI.init() during the init phase.

since CrewAI basically works as a batch system, it doesn't allow to interact during execution.

therefore, all necessary authentication processes must be completed before it starts.

And then, you can see all the required authentication urls during the init phase.

[SLACK]
        User needs to authenticate using the following URL: https://slack.com/oauth/v2/authorize?...
[GOOGLE]
        User needs to authenticate using the following URL: https://accounts.google.com/o/oauth2/v2/auth?...
[GITHUB]
        User needs to authenticate using the following URL: https://github.com/login/oauth/authorize?...

after completing all authentication urls, it will proceed to the next step and start the tasks.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyperpocket_crewai-0.4.5.tar.gz (227.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hyperpocket_crewai-0.4.5-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file hyperpocket_crewai-0.4.5.tar.gz.

File metadata

  • Download URL: hyperpocket_crewai-0.4.5.tar.gz
  • Upload date:
  • Size: 227.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for hyperpocket_crewai-0.4.5.tar.gz
Algorithm Hash digest
SHA256 81275020fa3cb3196fd24d9a0fe9768f8ca70d40a6b9285bd29d17e218015ce2
MD5 7f1e702c2bfadc3700f622474591a89a
BLAKE2b-256 6273cfe59ecc8f8a6757b5aeb5cc335a3fad3a3adf35efdb14ab854b13b1c654

See more details on using hashes here.

File details

Details for the file hyperpocket_crewai-0.4.5-py3-none-any.whl.

File metadata

File hashes

Hashes for hyperpocket_crewai-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b434d80278f5ea2285be0121edcaa7e5e187d7f34ec6e3ee1d92c10b52d70004
MD5 883d25f5033d5ef2d36b2d4f4bded14e
BLAKE2b-256 fc6e281734ff5d55195977f18d86660628e3dc88c3e1ff2a7d6d301243baeebc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page