Install
Quickstart
h.flush() before exit in scripts or workers to ensure delivery.
Constructor options
| Argument | Default | Description |
|---|---|---|
api_key | $HISTEERIA_API_KEY | Workspace API key |
base_url | https://api.histeeria.com | API base URL |
timeout | 5.0 | HTTP timeout seconds |
max_queue_size | 10000 | Backpressure limit |
enabled | True | Disable for local dev |
debug | False | Log transport errors |
observe() parameters
| Parameter | Type | Description |
|---|---|---|
input | any | Prompt, messages, or structured input |
output | str | Agent response |
agent_id | str | Agent identifier |
session_id | str | Conversation / run ID |
domain | str | Evaluation context |
metadata | dict | Custom tags and flags |
input_tokens | int | Optional token count |
output_tokens | int | Optional token count |

