This release is a pre-release and may not be stable for production use.
ppx-crewai
CrewAI integration for the Preference Profile Exchange (PPX).
Install
pip install ppx-crewai
Requires Python 3.11+. Published version: 0.1.0a1 (PyPI).
Alpha, tracking a draft specification. Expect breaking changes. The version is
0.1.0a1on PyPI and0.1.0-alpha.1on npm — the same release in each ecosystem's required format.
Give a CrewAI agent access to the user's preferences
from crewai import Agent, Task, Crew
from ppx_client import PpxClient
from ppx_crewai import PpxPreferenceTool, preference_briefing
ppx = PpxClient("https://api.provider.app")
agent = Agent(
role="Fragrance advisor",
goal="Recommend one scent that matches the user's actual preferences.",
backstory=preference_briefing(
ppx, grant_token=my_grant_token,
requested_namespaces=["core", "fragrance"],
context={"climate": "hot_humid"},
),
tools=[PpxPreferenceTool(client=ppx, grant_token=my_grant_token)],
verbose=True,
)
task = Task(
description="Pick one fragrance for a date-night in humid weather.",
agent=agent,
expected_output="A single fragrance pick with a one-sentence justification.",
)
crew = Crew(agents=[agent], tasks=[task])
print(crew.kickoff())
License
Apache-2.0.
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 ppx_crewai-0.1.0a4.tar.gz.
File metadata
- Download URL: ppx_crewai-0.1.0a4.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a3eb6878cd79a94155333853ec59fda66bc4fba468dfcd2d6e50eddeb5c5321
|
|
| MD5 |
c648d87318eb9372f937773da7afe0f3
|
|
| BLAKE2b-256 |
cd6188b9ddae21f80c4aee7ec8bd66e85b3825269eb3507010ca3655c7645466
|
File details
Details for the file ppx_crewai-0.1.0a4-py3-none-any.whl.
File metadata
- Download URL: ppx_crewai-0.1.0a4-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c39c59d103a8af9345f9afdab0c9bd16d055798bdec9ff2587c235200722fae
|
|
| MD5 |
016c9f4d8d6d9d8fdc95f7faa5b1c9c2
|
|
| BLAKE2b-256 |
0f7db29c338b1da622004da93bb446c69c5863a9fbff93c0471ceea79b1421d2
|