Skip to main content

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

Release files for nees-ai 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nees-ai 2.0.0
File Size Uploaded
nees_ai-2.0.0.tar.gz 23.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nees-ai 2.0.0
File Interpreter ABI Platform
nees_ai-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.8 kB

Release files / nees_ai-2.0.0.tar.gz

Download URL nees_ai-2.0.0.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
35e09d377bc0daeee1e96df74bd283e90670e101395d86375d91d4517a2ed991
BLAKE2b-256 checksum
How to use checksums
1be5600a9415e6bf747f8816bc4f763a6d6f5d65201c5ed4c69833a0fe15b800
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / nees_ai-2.0.0-py3-none-any.whl

Download URL nees_ai-2.0.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33ff75c25e319258fdfb06d2e40470830e7b1a02203b094405125c1f950f4370
BLAKE2b-256 checksum
How to use checksums
d93ee0acb3c5ca92ea188b8dfcdfe49e3957c2d641b7000ce0a9e282787d5d2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page