Files
deepseek-harness/packages/llm/README.md
T
Tianyi Cui a7a5be1703 docs(notes): archive low-future-value Agent Notes
Run the dsh-archive-agent-notes audit over every active Agent Note on
current master, judging each record by whether its rationale still guides
work rather than by size or age.

- Archive 453 implemented bilingual triplets (417,882 English words):
  completed UI chrome, narrow adapters, closed bug fixes, implementation
  walkthroughs whose package READMEs, docs pages, generators, or successor
  notes now carry the useful behavior, and 51 records fully superseded by
  a later active note. Keep 201 implemented notes whose ownership rules,
  negative guarantees, durable or wire semantics, security rules,
  reintroduction conditions, or still-tempting rejected alternatives
  remain useful.
- Reject 7 proposals whose premise is gone or whose work shipped in
  amended form under other records; delete 2 rejected notes that no
  longer prevent a plausible mistake.
- Retarget every remaining inbound link to the archived path, and repair
  active prose that named an archived record as the owner of a live fact:
  parenthetical citations drop, ownership sentences redirect to the
  README, docs page, or active note that states the fact, and history
  citations say so. Chinese files link the English archived path because
  the pairing gate treats the frozen tree as outside the bilingual corpus.
- Seal 1,359 new frozen artifacts; existing seals are unchanged and
  outbound links from archived notes are neither inspected nor repaired.
- Regenerate docs/config-catalog.md after the hook-bridge comment edits
  shifted two source line numbers.
2026-09-05 14:37:32 +08:00

3.2 KiB

description, kind
description kind
The LLM capability group: a provider-neutral model-call service, the DeepSeek and pi-ai provider adapters, request-retry execution, and replay-aware token measurement. package-group

llm/ — LLM capability family

English | 中文

Summary

The llm group provides the harness's model-call capability: one provider-neutral service through which any composition streams requests to a model provider, plus adapters, provider-specific request metadata, retry execution, and measurement. The core llm package defines the message, content-block, and stream-chunk vocabulary every plugin and the session log use; provider adapters translate a provider's wire format into that vocabulary; DeepSeek request-extension plugins contribute lifecycle-owned metadata outside model input; llm-retry re-runs failed requests at durable agent-step boundaries; and token-meter measures request and context pressure from the durable log. This page maps the group; each package README owns its per-package contract.

Table of Contents


Packages

Package Role ctx key
llm/ Streams one model call through a registered provider adapter and shares the harness message, block, and chunk vocabulary ctx.llm
llm-deepseek/ Serves the deepseek-official route with direct DeepSeek chat-completions, thinking, and image input registers on ctx.llm
llm-pi-ai/ Serves configured provider routes through pi-ai catalogs and wire protocols, including hand-declared gateways registers on ctx.llm
deepseek-llm-api-extensions/ Registers lifecycle-owned top-level fields on official DeepSeek requests ctx.deepseekLlmApiExtensions
plugin-package-inventory-deepseek/ Contributes the active Loader package inventory to official DeepSeek requests contributes dsh_plugin_packages
llm-retry/ Retries failed model requests under each provider's policy at durable agent-step boundaries listens to agent/request-error
token-meter/ Measures request and context pressure from the durable session log with a fixed heuristic ctx.tokenMeter

Dev Note

None.