Python SDK for gotoHuman
Project description
gotoHuman - Human in the Loop for AI workflows
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 template in gotoHuman adding fields to capture the content to review and the input and feedback you want to collect.
Setup environment variables with your API key and an agent ID.
GOTOHUMAN_API_KEY=YOUR_API_KEY
GOTOHUMAN_AGENT_ID=YOUR_AGENT_ID
Initialize the SDK:
from gotohuman import GotoHuman
gotoHuman = GotoHuman()
# or: GotoHuman(api_key="...", agent_id="...")
Send request
Request a new review and include the data for your review template's fields.
Read the docs for more details.
Example request:
review = gotoHuman.create_review("YOUR_REVIEW_TEMPLATE_ID")
review.set_review_data({
"ai_social_media_post": ai_text_draft,
"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)
Optionally pass a config object to control review behavior:
review.set_review_config({"someOption": True})
Or send asynchronously:
response = await review.async_send_request()
Example review
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gotohuman-0.2.3.tar.gz.
File metadata
- Download URL: gotohuman-0.2.3.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6e7c99ae491599c128754e5e3997ff3d31d2d2769132aca165bec1cb3da39b5
|
|
| MD5 |
ab2ff785bbb9207c030e5bda2fe4f612
|
|
| BLAKE2b-256 |
0a7dee06fedd47d6f240b4825de528e145c144b291b61374a153c9f8101f9d2d
|
File details
Details for the file gotohuman-0.2.3-py3-none-any.whl.
File metadata
- Download URL: gotohuman-0.2.3-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
304c22a4dcabd104740fbf978561b60dd5c229f92ed348f548d6d7fa1aaa7a05
|
|
| MD5 |
772bf2c638a70485e84106f1371a4446
|
|
| BLAKE2b-256 |
a5afafb7f92135f443b85153f76b3ee935a248f78e8287309ce967a7f1a49c65
|