Pre-release
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.
Metadata
Release files for ppx-crewai 0.1.0a4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ppx_crewai-0.1.0a4.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ppx_crewai-0.1.0a4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / ppx_crewai-0.1.0a4.tar.gz
| Download URL | ppx_crewai-0.1.0a4.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a3eb6878cd79a94155333853ec59fda66bc4fba468dfcd2d6e50eddeb5c5321
|
|
BLAKE2b-256 checksum How to use checksums |
cd6188b9ddae21f80c4aee7ec8bd66e85b3825269eb3507010ca3655c7645466
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / ppx_crewai-0.1.0a4-py3-none-any.whl
| Download URL | ppx_crewai-0.1.0a4-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c39c59d103a8af9345f9afdab0c9bd16d055798bdec9ff2587c235200722fae
|
|
BLAKE2b-256 checksum How to use checksums |
0f7db29c338b1da622004da93bb446c69c5863a9fbff93c0471ceea79b1421d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|