bench/

directory
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: MIT

Directories

Path Synopsis
Package assert evaluates a case's expect sections against a target result.
Package assert evaluates a case's expect sections against a target result.
Package judge grades an answer with a second agent (LLM-as-judge) through the OpenAI-compatible /v1/chat/completions endpoint.
Package judge grades an answer with a second agent (LLM-as-judge) through the OpenAI-compatible /v1/chat/completions endpoint.
Package pricing turns token usage into an estimated USD cost.
Package pricing turns token usage into an estimated USD cost.
Package report renders a runner.SuiteResult in several forms — a colored terminal summary, machine-readable JSON, JUnit XML for CI, an A/B comparison table, and a diff against a saved baseline — plus the run-history store under ~/.docsgpt/bench.
Package report renders a runner.SuiteResult in several forms — a colored terminal summary, machine-readable JSON, JUnit XML for CI, an A/B comparison table, and a diff against a saved baseline — plus the run-history store under ~/.docsgpt/bench.
Package runner executes a filtered set of benchmark cases against DocsGPT agents and collects a structured, JSON-serializable result tree.
Package runner executes a filtered set of benchmark cases against DocsGPT agents and collects a structured, JSON-serializable result tree.
Package spec defines the benchmark suite format: a root directory with an optional bench.yaml (suite defaults) and any number of case directories, each holding a case.yaml plus optional attachment files.
Package spec defines the benchmark suite format: a root directory with an optional bench.yaml (suite defaults) and any number of case directories, each holding a case.yaml plus optional attachment files.
Package target sends one benchmark question to a DocsGPT agent through one of four protocols: the OpenAI-compatible /v1/chat/completions endpoint (single JSON response or SSE), the native /stream SSE endpoint, the native /api/answer JSON endpoint, or an agent incoming webhook (async, with /api/task_status polling).
Package target sends one benchmark question to a DocsGPT agent through one of four protocols: the OpenAI-compatible /v1/chat/completions endpoint (single JSON response or SSE), the native /stream SSE endpoint, the native /api/answer JSON endpoint, or an agent incoming webhook (async, with /api/task_status polling).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL