deepseek-harness/packages/llm
2026-08-19 14:52:29 +08:00
..
llm fix(llm): address multimodal review findings 2026-08-19 12:47:24 +08:00
llm-deepseek fix(llm): address multimodal review findings 2026-08-19 12:47:24 +08:00
llm-pi-ai Merge remote-tracking branch 'origin/master' into HEAD 2026-08-19 14:39:44 +08:00
llm-retry refactor(llm): use one five-retry default 2026-08-18 16:33:22 +08:00
token-meter fix(session-projection): keep host state off wire 2026-08-19 14:32:48 +08:00
README.i18n.yaml docs(i18n): include complete proofreading corpus 2026-08-12 12:30:19 +08:00
README.md docs: reserve seam for complete capabilities 2026-08-09 17:26:57 +08:00
README.zh.md docs(i18n): include complete proofreading corpus 2026-08-12 12:30:19 +08:00

llm/ — LLM capability family

English | 中文

The LLM seam and its provider adapters. The llm package owns both the Service Definition and Consumer roles: the abstract service, content-block vocabulary, and stream-chunk assembler. Provider adapters 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.