Files
deepseek-harness/packages/llm
Yichen Jiang 6a6195ac28 test(llm): pin pi-ai leading-status classification through the Anthropic route
Add a composition test that sends a gateway 500 relaying an upstream 401
through the real Anthropic SDK, so a change in the SDK's rendering fails
here instead of reaching the classifier unnoticed. Label the unit matrix,
assert the preserved message, and pin a 400 that quotes a retryable 429.
Document the remaining text-classification gaps in the README.

Refs #8182
2026-11-09 17:28:49 +08:00
..
2026-11-05 11:27:26 +08:00

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/ Shared Messages protocol, request configuration, and model capabilities —
llm-deepseek-api-key/ API-key authentication and discovery for the official route ctx.llm
llm-deepseek-account/ Account-token authentication, invalidation, and discovery 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.