Skip to main content
Open Source · Apache 2.0 · v0.1.5

Define your AI agent in YAML. TrueNorth runs the conversation — extraction, safety, compliance, WhatsApp delivery.

0Lines of code
0Tests
0LLM providers
0SDKs
0%Halluc. rate
0+Languages
Live Engine Demo

YAML in. Structured out.

Write your schema once. TrueNorth handles extraction, safety rails, and user interaction automatically.

fitness_plan.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TrueNorth Agent
Online
The Engine

The 13-Stage Pipeline

Every message runs all 13 stages in sequence. No shortcuts. No black boxes. Every stage is strictly auditable.

01

LANGUAGE DETECTION

Detect locale, set response language automatically

02

EMOTION DETECTION

Valence + arousal scoring, shift tracking across turns

03

PII DETECTION

Mask sensitive data before any LLM sees it

04

CONVERSATION PLANNING

Decide which field to collect next, optimally

05

FIELD EXTRACTION

Pull structured values from natural language input

06

CONFLICT DETECTION

Catch turn-to-turn contradictions automatically

07

FIELD VALIDATION

Type, range, and enum checks on every extracted value

08

CONFIDENCE SCORING

8-factor per-field confidence rating system

09

HALLUCINATION FIREWALL

Claim extract → verify → sanitise. The critical safety gate

10

OUTPUT GENERATION

Structured JSON, markdown, or plain text output

11

SOURCE TRACING

Sentence → field → turn attribution for every value

12

COST RECORDING

USD cost per call, session, and turn — full transparency

13

MCP TOOL EXECUTION

Calculator, web search, and custom tool integrations

System Audit · Harness v4.12

Hard data.
No synthetic buffer.

Blind automated evaluation across 1,000 real production medical intakes. No cherry-picked runs.

Data Extraction Accuracy[01/03]
94.2%
SOTA Tier

+23.2pp over raw baseline

TrueNorth Engine94.2%
LangChain76.0%
Raw GPT-4o71.0%
Hallucination Rate (Strict)[02/03]
2.1%
Zero-Trust Active

8.7× deflection factor

Raw GPT-4o18.3%
LangChain14.5%
TrueNorth Engine2.1%
Compute Cost / 1,000 Intakes[03/03]
$4.30
Optimized Pipeline

89% budget reduction

Raw GPT-4o$38.40
LangChain$35.20
TrueNorth Engine$4.30
Confidence threshold: p < 0.01 · Automated run profileEnvironment: Production-mirror node cluster
Developer Experience

One API.
Any language.

Identical interface across Python, TypeScript, and Go. Drop it into your existing stack in minutes — no framework lock-in, no adapter layer.

from truenorth import Engine, Schema

schema = Schema.load("fitness_plan.yaml")
engine = Engine(schema=schema, model="gpt-4o-mini")

session = engine.create_session(user_id="priya_001")

# Send a message
response = await engine.chat(
    session_id=session.id,
    message="I'm Priya, I want to lose weight"
)

print(response.message)
# → "Great Priya! How old are you?"
Open Source

Built in public.
Grown by the community.

TrueNorth is fully open source under Apache 2.0 — built by @amareshhebbar and shaped by every star, fork, and issue. Star the repo to follow progress, or jump in and contribute.

Get Started

Build reliable AI.
Ship faster.

Join the developers building production-grade AI conversation systems with a framework that handles the hard parts.

$pip install truenorth