Skip to main content
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.0a1 on PyPI and 0.1.0-alpha.1 on 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)

Source distribution for ppx-crewai 0.1.0a4
File Size Uploaded
ppx_crewai-0.1.0a4.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ppx-crewai 0.1.0a4
File Interpreter ABI Platform
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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page