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.textresponse.traceresponse.trace.summaryresponse.trace.stepswhenenable_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.Clientexamples are obsolete
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nees_ai-2.0.0.tar.gz | 23.0 kB | Without provenance | Details for nees_ai-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nees_ai-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for nees_ai-2.0.0-py3-none-any.whl |
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
|
Security for nees-ai 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.