Skip to main content

Human-in-the-loop API client for LoopPause. Includes LangGraph and CrewAI integrations.

Project description

looppause

Python client for the LoopPause human-in-the-loop API.

Pause any agent action, route approval to Slack or email, and resume with an HMAC-SHA256 signed proof.

Install

pip install looppause                    # base client
pip install looppause[langgraph]         # + LangGraph integration
pip install looppause[crewai]            # + CrewAI integration
pip install looppause[langgraph,crewai]  # everything

Quick start

from looppause_client import LoopPauseClient

client = LoopPauseClient()  # reads LOOPPAUSE_API_KEY + LOOPPAUSE_SIGNING_SECRET

pause_id = client.create_pause(
    agent_id="billing-agent",
    action={"type": "payment", "description": "Pay Acme Corp $12,450"},
    recipients=[{"channel": "slack", "target": "#finance-approvals"}],
    idempotency_key="idem_abc123",
)

proof = client.wait_for_proof(pause_id)

if proof.human_authorized:
    # proceed
    pass

Early access

LoopPause is in early access. Request access: hello@looppause.com

Project details


Download files

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

Source Distribution

looppause-0.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

looppause-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file looppause-0.1.0.tar.gz.

File metadata

  • Download URL: looppause-0.1.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for looppause-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1967b6262fd967f8031eaca97e03c41a735fe590bbae74f09d92780f6e1d87dc
MD5 e667e608e15e0cd54e420431a3e1f0d9
BLAKE2b-256 8a47f99bcb311e1adbd45114711cc7990ce45399a500673118022077cc443747

See more details on using hashes here.

File details

Details for the file looppause-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: looppause-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for looppause-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef19bfe0a7c0f3330d9175903737cee9421e9dc643218c805b74c49160511adf
MD5 cff1018f2de2280b4eb0baf30b78df7e
BLAKE2b-256 e5bef3983bc1f04e89c633c3bf062ef448c7fc4f06ac65e7331e891a9173e675

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