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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hyperpocket_crewai-0.4.4.tar.gz.
File metadata
- Download URL: hyperpocket_crewai-0.4.4.tar.gz
- Upload date:
- Size: 227.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30ea17a36bc7dc32a16cc4b373a71c3dfea682a923d7e3fdeb7889860d57133b
|
|
| MD5 |
373c5fc5439827bfdd4b0830d5547c88
|
|
| BLAKE2b-256 |
1c0d99ade8b30fc090e383cfc41d3771026070af65490dd9b423675d8447b8cc
|
File details
Details for the file hyperpocket_crewai-0.4.4-py3-none-any.whl.
File metadata
- Download URL: hyperpocket_crewai-0.4.4-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4c1aba2243dad5c28776c23ccb914e8a22b5873e7bf9d509511d7d5c2af7860
|
|
| MD5 |
9046bbfa741c2a25b9f1c86f748e8ed3
|
|
| BLAKE2b-256 |
7aa85d05d223b9faa25c20838dda7248b3decf442da843f9785c61cb31796fd2
|