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.3.0.tar.gz (10.6 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.3.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

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

Hashes for humane_ai-0.3.0.tar.gz
Algorithm Hash digest
SHA256 06de03056640730b05ba97aa95badc11c4ee4a4767d22a448f0184eb796d52b9
MD5 8ffd1956b547fcfe112e061097915db4
BLAKE2b-256 b9a9a62c0c4e84692a9ce5de1e7a90be4a546082e07595754e753e3b4cf53cc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for humane_ai-0.3.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.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

Hashes for humane_ai-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33f12be34d5320b8121a05614821d556f48b0ba20610220f4792df653cdb294f
MD5 bbb74124e078349783fd336965d4d296
BLAKE2b-256 52800b3bb5220122ef8a4cb3a9eb497f5985657f5be069d50cabef7ae2f99a90

See more details on using hashes here.

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

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