Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

humane_ai-0.2.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

humane_ai-0.2.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file humane_ai-0.2.0.tar.gz.

File metadata

  • Download URL: humane_ai-0.2.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for humane_ai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c300063ce105be21d959005c4b5668b337050461cfcce3b54382ce3fe768e62d
MD5 76c52681422ad3dd33e019ac1bdb729b
BLAKE2b-256 266787273c897f071eaa6a73b9b556e2b01b66fcbe83968cdf5039fd4d905d98

See more details on using hashes here.

Provenance

The following attestation bundles were made for humane_ai-0.2.0.tar.gz:

Publisher: publish.yml on amar-vaarak/humane-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file humane_ai-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: humane_ai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for humane_ai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74be067a60e2c5a617668433f8119c34a17ac6c1afa98182acb83605100228b8
MD5 78a471fc4a8bfa5bb06701cb5d50b742
BLAKE2b-256 cc6be9530beab0f2e3e252ee77ab193a5d7ce2d7fa08fc8cdd9723dc2ac54d2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for humane_ai-0.2.0-py3-none-any.whl:

Publisher: publish.yml on amar-vaarak/humane-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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