Skip to main content

pushary-crewai

CI PyPI license

Full walkthrough: Human-in-the-loop for CrewAI. Reaching your own end-users on their phones is the Pushary Partner plan.

Human-in-the-loop for CrewAI. Replace the console human_input=True prompt with a tool that reaches a real person on their phone and blocks until they answer, fail-closed.

Requires the Pushary Partner plan.

Install

pip install pushary-crewai

Set PUSHARY_API_KEY (get it in your dashboard).

Connect a phone once

from pushary_crewai import connect

link = connect("user_123")  # show this to your end-user; one tap connects their phone

Give an agent an ask-human tool

from crewai import Agent, Task, Crew
from pushary_crewai import make_ask_human_tool

agent = Agent(
    role="Ops",
    goal="Ship safely",
    backstory="Careful operator.",
    tools=[make_ask_human_tool("user_123")],
)
task = Task(
    description="Draft the release. Before finalizing, call ask_human to get approval.",
    expected_output="approved release notes",
    agent=agent,
)
Crew(agents=[agent], tasks=[task]).kickoff()

The tool blocks until the person answers and returns a fail-closed instruction. The external_id is bound when you build the tool, never taken from the model, so a prompt-injected agent cannot ask the wrong person.

Lower-level helpers

from pushary_crewai import ask_human

d = ask_human("Approve this refund?", external_id="user_123", type="confirm")
if d["approved"]:
    issue_refund()

API

  • connect(external_id, *, api_key=None, base_url=None) — enroll an end-user's phone.
  • make_ask_human_tool(external_id, *, name=..., ...) — a CrewAI BaseTool bound to that user.
  • ask_human(question, *, external_id, type="confirm", ...) — blocking, returns the decision dict.
  • resolve_pushary_callback(raw_body, signature, secret) — verify + parse a callback for a durable path.
  • describe_answer(type, result), is_affirmative(answer), deterministic_key(parts), SIGNATURE_HEADER.

Example

A runnable example is in examples/.

License

MIT

Release files for pushary-crewai 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pushary-crewai 0.3.0
File Size Uploaded
pushary_crewai-0.3.0.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pushary-crewai 0.3.0
File Interpreter ABI Platform
pushary_crewai-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / pushary_crewai-0.3.0.tar.gz

Download URL pushary_crewai-0.3.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8e576a635c8d71093a94319547a568a72b779464a2b712befe0314d107c36d6d
BLAKE2b-256 checksum
How to use checksums
e7c306e26ef58cdad5ad43d967754593b5df3ed78c71f62a0fbe9c04ed93d505
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

Release files / pushary_crewai-0.3.0-py3-none-any.whl

Download URL pushary_crewai-0.3.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a84a47816d91df12b7dbfeacc3c7583d16c55d3baaafb21a0a0367d2841e8ef
BLAKE2b-256 checksum
How to use checksums
96fb1102210cf60c8508c60234fb903a0a4025a6994c90f8fe6af388f2347c9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

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