Behavioral intelligence for your LLM apps. Every AI should know who it's talking to.
Project description
Humane AI SDK
Behavioral intelligence layer for LLM applications. One line to make your AI emotionally aware, relationally continuous, and safety-gated.
Install
pip install humane-ai
Quick Start
from humane_ai import HumaneClient
client = HumaneClient(api_key="hx_your_key")
# Single message
response = client.process("user_123", "I need help with my order")
print(response.response) # AI response shaped by behavioral context
print(response.user.mood) # 0.35 — frustration detected
print(response.context.empathy) # 0.95 — auto-increased
print(response.timing.delay_ms) # 400 — faster for urgent user
print(response.safety.action) # PROCEED
# Multi-turn (history auto-managed)
client.process("user_123", "My name is Sarah, I work at TechCorp")
r = client.process("user_123", "Do you remember my name?")
# AI responds: "Yes, you're Sarah from TechCorp"
# Check behavioral state
if response.user.is_frustrated:
print("User needs extra care")
# Proactive triggers
if response.proactive:
for event in response.proactive:
print(f"TRIGGER: {event.trigger} — {event.suggested_action}")
# Streaming
for event in client.stream("user_123", "Explain how engines work"):
if event["type"] == "token":
print(event["data"]["content"], end="", flush=True)
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 humane_ai-0.3.0.tar.gz.
File metadata
- Download URL: humane_ai-0.3.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06de03056640730b05ba97aa95badc11c4ee4a4767d22a448f0184eb796d52b9
|
|
| MD5 |
8ffd1956b547fcfe112e061097915db4
|
|
| BLAKE2b-256 |
b9a9a62c0c4e84692a9ce5de1e7a90be4a546082e07595754e753e3b4cf53cc8
|
Provenance
The following attestation bundles were made for humane_ai-0.3.0.tar.gz:
Publisher:
publish.yml on amar-vaarak/humane-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
humane_ai-0.3.0.tar.gz -
Subject digest:
06de03056640730b05ba97aa95badc11c4ee4a4767d22a448f0184eb796d52b9 - Sigstore transparency entry: 1381765045
- Sigstore integration time:
-
Permalink:
amar-vaarak/humane-ai@bd508e720e14114fce857e56eea1abbca2480818 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/amar-vaarak
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bd508e720e14114fce857e56eea1abbca2480818 -
Trigger Event:
push
-
Statement type:
File details
Details for the file humane_ai-0.3.0-py3-none-any.whl.
File metadata
- Download URL: humane_ai-0.3.0-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33f12be34d5320b8121a05614821d556f48b0ba20610220f4792df653cdb294f
|
|
| MD5 |
bbb74124e078349783fd336965d4d296
|
|
| BLAKE2b-256 |
52800b3bb5220122ef8a4cb3a9eb497f5985657f5be069d50cabef7ae2f99a90
|
Provenance
The following attestation bundles were made for humane_ai-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on amar-vaarak/humane-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
humane_ai-0.3.0-py3-none-any.whl -
Subject digest:
33f12be34d5320b8121a05614821d556f48b0ba20610220f4792df653cdb294f - Sigstore transparency entry: 1381765057
- Sigstore integration time:
-
Permalink:
amar-vaarak/humane-ai@bd508e720e14114fce857e56eea1abbca2480818 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/amar-vaarak
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bd508e720e14114fce857e56eea1abbca2480818 -
Trigger Event:
push
-
Statement type: