JSPM

  • Created
  • Published
  • Downloads 10621
  • Score
    100M100P100Q150457F
  • License MIT

Trace-first evaluation framework for Tangle agents. Core (spans, pipelines, sandbox harness, OTLP export), trust (dataset, red-team, calibration, behavior DSL), builder-of-builders (three-layer eval, resumable sessions, meta-runtime correlation), and frontier (meta-eval correlation study, Process Reward Modeling, bisector).

Package Exports

  • @tangle-network/agent-eval

Readme

@tangle-network/agent-eval

Domain-agnostic evaluation framework for Tangle agent apps. Multi-turn scenario execution, multi-judge scoring, agent-driver meta-testing, convergence tracking. Every agent (tax, legal, film, gtm) imports this to get a reproducible quality harness.

Install

npm install @tangle-network/agent-eval

Usage

import { BenchmarkRunner, ProductClient, defaultJudges } from '@tangle-network/agent-eval'

const client = new ProductClient({
  baseUrl: 'https://my-agent.tangle.tools',
  routes: {
    signup: '/api/auth/sign-up/email',
    chat: '/api/chat',
    // ...
  },
})

const runner = new BenchmarkRunner(client, {
  scenarios: myScenarios,
  judges: defaultJudges('film production'),
  systemPrompt: MY_SYSTEM_PROMPT,
})

const report = await runner.run()

What's in the box

  • ProductClient — configurable HTTP client (routes are config, not code)
  • ScenarioRegistry — auto-discovery + filtering
  • executeScenario — multi-turn executor with artifact collection
  • BenchmarkRunner — orchestrates scenarios + judges + scoring
  • AgentDriver — meta-agent that plays personas against a real product
  • MetricsCollector — per-turn product state metrics
  • ConvergenceTracker — completion% over turns
  • Reporter — markdown + console output
  • Judges — 4 built-in (domain expert, code execution, coherence, adversarial) + createCustomJudge factory

Tier

Marketplace tier of the agent-builder three-tier architecture. Uses @tangle-network/tcloud for judge LLM calls.

License

MIT