deepseek-harness/packages/llm
2026-08-09 12:35:06 +08:00
..
llm docs(i18n): reproofread updated Chinese documentation 2026-08-09 03:20:17 +08:00
llm-deepseek docs(i18n): standardize contract terminology 2026-08-09 11:33:14 +08:00
llm-pi-ai docs(i18n): reproofread updated Chinese documentation 2026-08-09 03:20:17 +08:00
llm-retry docs(config): align environment and credential contracts 2026-08-07 22:04:04 +08:00
token-meter docs(i18n): standardize contract terminology 2026-08-09 11:33:14 +08:00
README.i18n.yaml docs(i18n): address terminology review findings 2026-08-09 12:35:06 +08:00
README.md docs: anchor each subsystem page to its package group; make group READMEs thin tables 2026-08-09 01:32:39 +08:00
README.zh.md docs(i18n): address terminology review findings 2026-08-09 12:35:06 +08:00

llm/ — LLM capability family

English | 中文

The LLM seam and its provider adapters. The interface package (llm) owns the abstract service, the content-block vocabulary, and the stream-chunk assembler; the adapters are concrete implementations that register on ctx.llm. All product packages.

Package Role ctx key
llm/ LLM service and shared streaming vocabulary ctx.llm
token-meter/ Replay-aware token measurement ctx.tokenMeter
llm-retry/ Provider-scoped retry policy listens to agent/request-error
llm-deepseek/ Direct DeepSeek adapter registers on ctx.llm
llm-pi-ai/ Multi-provider pi-ai adapter registers on ctx.llm

Adapters register provider routes on the seam; retry and token measurement remain separate consumers. The child READMEs own routing, metadata, replay, and provider-wire details; the LLM architecture decisions own the rationale.

The subsystem reference — messages and blocks, the model request, the StreamChunk protocol, the adapter contract — is docs/subsystems/llm-streaming.md (token measurement: token-meter.md); see the twin adapters, replay token meter, and routed model context Agent Notes.