Install
Pick one of two starting points based on what you’re doing:httpx + pydantic and nothing else.
Adapters and verifiers compose with either base
Extras stack. Comma-separate them in one bracket to install in a single command:All extras
Python 3.10+ required.
await_human / await_human_sync
The primitive. Async and sync flavors:Parameters
Returns
An instance ofresponse_schema — Pydantic-validated. If validation fails, raises SchemaValidationError.
Raises
All inherit from
AwaitHumansError.
Verifier helpers
VerifierConfig you pass to await_human(verifier=...). The actual LLM call runs server-side. See Verifier.
Adapters
Temporal
LangGraph
CLI
awaithumans dev auto-generates PAYLOAD_KEY, ADMIN_API_TOKEN, and the SQLite DB if missing. Writes ~/.awaithumans-dev.json so the SDK auto-discovers the running server.
Configuration
The SDK reads configuration in this order (first match wins):- Function-call args (
server_url=,api_key=) - Environment variables (
AWAITHUMANS_URL,AWAITHUMANS_ADMIN_API_TOKEN) - Discovery file (
~/.awaithumans-dev.json) - Defaults (
http://localhost:3001, no token)
Type stubs
The package ships withpy.typed. mypy/pyright pick up the types automatically: