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 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
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
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.1.8.tar.gz.
File metadata
- Download URL: gotohuman-0.1.8.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9186a2229f12af659f54e9e52628dbdc65bfb3ebeed91dc394a276c8a39ebc7a
|
|
| MD5 |
168e76cd4c74e5deefc966bf775d15c8
|
|
| BLAKE2b-256 |
02806e8a913bc1667a9d7f52a0498e590ec74f4c8a49a0eb55ff592174fd6d33
|
File details
Details for the file gotohuman-0.1.8-py3-none-any.whl.
File metadata
- Download URL: gotohuman-0.1.8-py3-none-any.whl
- Upload date:
- Size: 5.4 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 |
1800c00ba999c5ee702bd1c6ebea248496835dfe4efd87f437a873f9a17093d6
|
|
| MD5 |
b43b817a101753154f5c22144178e6d8
|
|
| BLAKE2b-256 |
0b4b9f423697eb5ce4a86823eb6b62e7f37733b553fe2af39d89ca5b3aef5547
|