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.0a2.tar.gz (7.0 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.0a2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ppx_crewai-0.1.0a2.tar.gz
  • Upload date:
  • Size: 7.0 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.0a2.tar.gz
Algorithm Hash digest
SHA256 9cda017d089ed6e59851998cac235983f7031f3303c2c04aca60fcd361e2c694
MD5 b959ad05f7b68d376b2f9b05014551cb
BLAKE2b-256 f1e1a8d92949513a2dd83722fe2e635b2d78eb096302e170d3f9dae846037c71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ppx_crewai-0.1.0a2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a7b06994b044f0fa4794495082ca5c49888f08d22e3fbb4f0544c50a5c427f4
MD5 412ce7c5635281b8ff2734e47bfe712d
BLAKE2b-256 72ff7e5769c687d4007f3f035cf15e2a051070dd0af2c0aff91e08e09f9d614a

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