internal/

directory
v1.7.0 Latest Latest
Warning

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

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

Directories

Path Synopsis
Package attach holds the files a message carries: images and documents attached with @path, a pasted or dropped path, or Ctrl+V. They go to the server inline, as content parts of the message (see docsgpt.Message), and the server stores them as the conversation's attachments.
Package attach holds the files a message carries: images and documents attached with @path, a pasted or dropped path, or Ctrl+V. They go to the server inline, as content parts of the message (see docsgpt.Message), and the server stores them as the conversation's attachments.
bench
assert
Package assert evaluates a case's expect sections against a target result.
Package assert evaluates a case's expect sections against a target result.
judge
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.
pricing
Package pricing turns token usage into an estimated USD cost.
Package pricing turns token usage into an estimated USD cost.
report
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.
runner
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.
spec
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.
target
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).
Package context describes the user's environment to the agent, as a <context> block put before the first message of a conversation (the server ignores system messages unless the agent allows prompt overrides).
Package context describes the user's environment to the agent, as a <context> block put before the first message of a conversation (the server ignores system messages unless the agent allows prompt overrides).
Package earlytheme fixes lipgloss's background before bubbletea's init asks the terminal for it (an OSC 11 query that stalls every start for 5s in a terminal that never answers).
Package earlytheme fixes lipgloss's background before bubbletea's init asks the terminal for it (an OSC 11 query that stalls every start for 5s in a terminal that never answers).
Package host implements the docsgpt-cli host daemon and pairing flow.
Package host implements the docsgpt-cli host daemon and pairing flow.
Package install places the running binary on the user's PATH, for `docsgpt-cli install` (which the install.sh / install.ps1 scripts call).
Package install places the running binary on the user's PATH, for `docsgpt-cli install` (which the install.sh / install.ps1 scripts call).
Package manage is a small client for the DocsGPT account-level ("management") API: identity, agents (list/export/plan/apply/delete), sources (list/upload/task status/delete), prompts and tools.
Package manage is a small client for the DocsGPT account-level ("management") API: identity, agents (list/export/plan/apply/delete), sources (list/upload/task status/delete), prompts and tools.
Package session saves chats, so they can be resumed: one JSONL file per chat under ~/.docsgpt/sessions/<cwd slug>-<cwd hash>/, a header line and then the messages as they complete (pi's format, without its tree: a fork is a new file starting with a copy of the messages it keeps).
Package session saves chats, so they can be resumed: one JSONL file per chat under ~/.docsgpt/sessions/<cwd slug>-<cwd hash>/, a header line and then the messages as they complete (pi's format, without its tree: a fork is a new file starting with a copy of the messages it keeps).
Package ui holds the interactive components: the small inline prompts (select lists, confirmations, text inputs, a spinner) used wherever the CLI asks the user something, which render inline and collapse to a one-line summary once answered, and the chat's full-screen Screen, which shows the same prompts in a panel.
Package ui holds the interactive components: the small inline prompts (select lists, confirmations, text inputs, a spinner) used wherever the CLI asks the user something, which render inline and collapse to a one-line summary once answered, and the chat's full-screen Screen, which shows the same prompts in a panel.

Jump to

Keyboard shortcuts

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