Skip to main content

Python SDK for gotoHuman

Project description

gotoHuman Logo

gotoHuman - Human in the Loop for AI workflows

MIT License PyPI Version GitHub Repo stars Discord

gotoHuman is a web app where you can approve actions of your AI agents. Keep a human in the loop to review AI‑generated content, approve critical actions or provide input.

Install

pip install gotohuman

Init

Create a review form in gotoHuman adding fields to capture the content to review and the input and feedback you want to collect.

Setup an environment variable with your API key.

GOTOHUMAN_API_KEY=YOUR_API_KEY

Initialize the SDK:

from gotohuman import GotoHuman

gotoHuman = GotoHuman()

Send request

Request a new review and include the data for your form's content fields.
Read the docs for more details.

Example request:

review = gotoHuman.create_review("YOUR_FORM_ID")
review.add_field_data("ai_social_media_post", ai_text_draft)
review.add_field_data("ai_image", ai_image_url)
review.add_meta_data("threadId", threadId)
review.assign_to_users(["jess@acme.org"])
try:
    response = review.send_request()
    print("Review sent successfully:", response)
except Exception as e:
    print("An error occurred:", e)

Or asynchronously:

response = await review.async_send_request()

Example review

gotoHuman - Human approval example

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

gotohuman-0.1.7.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

gotohuman-0.1.7-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file gotohuman-0.1.7.tar.gz.

File metadata

  • Download URL: gotohuman-0.1.7.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for gotohuman-0.1.7.tar.gz
Algorithm Hash digest
SHA256 69a6da1737bed5b5df32694576b5b77eaabee32b42cb6239fc6e3cbf5a3e61ca
MD5 034b6debbdc6775c66121b90ca4f8185
BLAKE2b-256 ddce8b10c391ecad2194c25d1bd39c18af377fec360398f40217487d6019f9eb

See more details on using hashes here.

File details

Details for the file gotohuman-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: gotohuman-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for gotohuman-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ae00ef7eecee9ff747d125d70477ab1d36dc2a09c9ae23314872ff2aac903aae
MD5 d3f38c7d7c8d18b8ce267b5e5e88ef28
BLAKE2b-256 d28ae4cc46b60ad4cf116baff726fe9b36ada94c0c565d2812ca58e6c98f26dd

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