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.1.1

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.1.1
File Size Uploaded
pushary_crewai-0.1.1.tar.gz 7.5 kB Details

Built distribution (wheel)

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

Total release size: 13.3 kB

Release files / pushary_crewai-0.1.1.tar.gz

Download URL pushary_crewai-0.1.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2ed1be6d1ba362606b02f6dfa3e3209fa0eb3e53b1f96d12d946dc2d2c7ca43e
BLAKE2b-256 checksum
How to use checksums
334457fc49e442fad04b138f6edd5d7a2b14354813b59f4e78b01f5e83fb8c75
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 Aug 2, 2026.

Transparency log

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

Download URL pushary_crewai-0.1.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
428c32aff0e6cc6e7e1d70ef714b914f44480473b49f755294559f84c1f275d8
BLAKE2b-256 checksum
How to use checksums
63756960e43ae0fb8b367aebc907458d77425de62712066a10895c3bf79cb23e
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 Aug 2, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

0.2.0

2 release files

This release

0.1.1 This release

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