Skip to main content

NEES — AI Behavior Control SDK with intent, emotion, and decision orchestration

Project description

NEES SDK v2

NEES is a developer-facing SDK for behavior-oriented AI orchestration.

It now exposes a real NEES class, runs a full local pipeline, supports optional remote execution, and includes trace and validation tooling.

Installation

pip install .

Quickstart

from nees import NEES

nees = NEES(mode="local")

response = nees.process(Quick Start
from nees import NEES

# Initialize NEES (local mode by default)
nees = NEES()

response = nees.process(
    {
        "message": "I am stuck with this problem",
        "history": [],
        "session_id": "123"
    },
    enable_trace=True
)

print(response.text)
print(response.trace.summary)
🔄 Local vs Remote Mode

NEES supports two execution modes:

🟢 Local Mode (Default)
nees = NEES()
Runs full NEES pipeline locally
No external dependency
Maximum control and transparency
🌐 Remote Mode (Hosted NEES)
nees = NEES(mode="remote", api_key="your-api-key")
Uses hosted NEES backend
Useful for scaling and centralized control
Minimal local compute required
🧠 Architecture Overview

NEES acts as a control layer between user input and LLM.

Execution Flow:
User Input
   
Intent Extraction
   
Emotion Detection
   
Memory Selection
   
Behavior Mapping
   
Decision Engine
   
Structured LLM Input
   
LLM
   
Response + Trace
🔍 Trace & Explainability

Enable trace to inspect how NEES makes decisions:

response = nees.process(request, enable_trace=True)

print(response.trace)

Example trace:

{
  "intent": "problem_solving",
  "emotion": "frustration",
  "decision": {
    "mode": "solve",
    "tone": "direct",
    "verbosity": "short"
  }
}
🧪 Built-in Validation Demo

Run comparison between raw LLM and NEES-controlled output:

python -m nees.validation.runner

This demonstrates:

Behavior differences
Decision logic
Structured trace output
⚠️ Breaking Changes (v2.0.0)
# Old (v1)
from nees_gp_sdk import Client

# New (v2)
from nees import NEES
💡 What is NEES?

NEES (Neural Adaptive Intent Navigator) is an AI Behavior Control SDK that:

Understands user intent before generating responses
Adapts behavior based on emotional context
Uses decision logic instead of raw LLM prompting
Provides full traceability of AI reasoning
    {
        "message": "Hello",
        "history": [],
        "session_id": "123",
    },
    enable_trace=True,
)

print(response.text)
print(response.trace.summary)

Modes

Local mode

Runs the NEES pipeline inside the SDK:

  • intent extraction
  • emotion modulation
  • memory selection
  • decision engine
  • behavior mapping
  • local LLM adapter
  • trace recording
from nees import NEES

sdk = NEES(mode="local", llm="default")
response = sdk.process({"message": "I feel confused", "history": [], "session_id": "a1"}, enable_trace=True)

Remote mode

Uses the migrated remote transport under nees/client/transport.py.

from nees import NEES

sdk = NEES(mode="remote", api_key="your-api-key")
response = sdk.process({"message": "Hello", "history": [], "session_id": "r1"}, enable_trace=True)

Validation Demo

from nees.validation import run_demo

results = run_demo()

CLI:

python -m nees.validation.runner

Response Shape

Every call returns an object with:

  • response.text
  • response.trace
  • response.trace.summary
  • response.trace.steps when enable_trace=True

Architecture

Package layout:

nees/
  __init__.py
  core.py
  orchestrator.py
  types.py
  intent/
  emotion/
  memory/
  decision/
  behavior/
  llm/
  trace/
  validation/
  client/

Breaking Changes

  • Main import is now from nees import NEES
  • Main entry point is now NEES.process(...)
  • Local orchestration is the default mode
  • Remote transport is no longer the package identity
  • Old nees_gp_sdk.Client examples are obsolete

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

nees_ai-2.0.0.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

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

nees_ai-2.0.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file nees_ai-2.0.0.tar.gz.

File metadata

  • Download URL: nees_ai-2.0.0.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for nees_ai-2.0.0.tar.gz
Algorithm Hash digest
SHA256 35e09d377bc0daeee1e96df74bd283e90670e101395d86375d91d4517a2ed991
MD5 970f8afc603e1c5bffc0b6ee28f624a1
BLAKE2b-256 1be5600a9415e6bf747f8816bc4f763a6d6f5d65201c5ed4c69833a0fe15b800

See more details on using hashes here.

File details

Details for the file nees_ai-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: nees_ai-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for nees_ai-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33ff75c25e319258fdfb06d2e40470830e7b1a02203b094405125c1f950f4370
MD5 4da866e2a103c2640b629fe9b0648b46
BLAKE2b-256 d93ee0acb3c5ca92ea188b8dfcdfe49e3957c2d641b7000ce0a9e282787d5d2b

See more details on using hashes here.

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