Skip to main content

Human-powered typed RPC endpoints for building systems before the real implementation exists.

Project description

HumanRPC

HumanRPC is a human-powered RPC server for developing distributed systems before the real implementation exists.

Instead of calling an AI agent, microservice, planner, or capability, your application calls a typed endpoint. A human operator receives the request in a web UI, provides a response, and HumanRPC returns the result to the caller.

The goal is to enable rapid development of orchestration, routing, scheduling, memory, and workflow systems without waiting for every component to be implemented.

Features

  • Pydantic-first API
  • Typed request and response models
  • Async and sync clients
  • Human-powered endpoint implementations
  • Exception simulation
  • Timeout simulation
  • Web UI for handling requests
  • No external infrastructure required

Example

from humanrpc import Client

client = Client()

agent = client.endpoint(
    name="agent",
    input_model=ChatRequest,
    response_model=ChatResponse,
    exceptions=[
        ValueError,
        HTTPException,
    ],
)

result = await agent.aask(
    ChatRequest(...)
)

Status

Early development.

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

humanrpc-0.1.1.tar.gz (390.9 kB view details)

Uploaded Source

Built Distribution

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

humanrpc-0.1.1-py3-none-any.whl (415.9 kB view details)

Uploaded Python 3

File details

Details for the file humanrpc-0.1.1.tar.gz.

File metadata

  • Download URL: humanrpc-0.1.1.tar.gz
  • Upload date:
  • Size: 390.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for humanrpc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d2826671acb61e968c93cef048316b9981c1c85a92f407d78c639524f44535d0
MD5 901eb7d302af8147546d48155b6e4c91
BLAKE2b-256 23e03af2fb0d79c9f4630a2335febc729c32235e078d454782a98a69235f3f80

See more details on using hashes here.

File details

Details for the file humanrpc-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: humanrpc-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 415.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for humanrpc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 249e0ac59ff58880f584aedf5660f08e407897e8f610e6ed46f43c250d4aca81
MD5 9517ae3a860ee5ff555c4a830079a43e
BLAKE2b-256 70f9cde0207764e8dd9d7f0876f18443ee5f148e95698ed79d42c70870239a3e

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