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.

Download files

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

Source Distribution

ppx_crewai-0.1.0a1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

ppx_crewai-0.1.0a1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file ppx_crewai-0.1.0a1.tar.gz.

File metadata

  • Download URL: ppx_crewai-0.1.0a1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for ppx_crewai-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 cfaf482d5c45f421f1552aa3bce9f25366fcacfdf6d877f7f6dce9c3f4db1374
MD5 9970c7e9e91d49f5b51c4b5778deb0b9
BLAKE2b-256 12d28ebb9f6a2da31ccf0a31c19f6c1176254b08c5548aeafa34c81d7b8cdc51

See more details on using hashes here.

File details

Details for the file ppx_crewai-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: ppx_crewai-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for ppx_crewai-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 020a7cc745cdd0f699e1fed6f3d46b9e2b3e220de2ec9c20f295b192a3614d1f
MD5 a8d56cca00332c6012b56f38db247984
BLAKE2b-256 28c4f7c0813e4178173dff6a6bd24b73db65588943b4707599b43884dc79a3a6

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 Sentry Error logging StatusPage Status page