/** * Cordis plugin entry for `cortiq-dsh-llm-router`. * * Registers one provider route (`cortiq-router`) in the DSH LLM seam: * - installs the settings section (`llm-cortiq-router`), * - resolves the router API key through the credentials service, * - resolves each candidate model id to a live provider route, * - delegates the call to that route through `ctx.llm.stream`. * * The plugin routes to models other adapters own, so at least one other LLM * provider must be registered (e.g. `@deepseek-ai/dsh-llm-deepseek` or * `@deepseek-ai/dsh-llm-pi-ai`); with none, every call fails as * `MODEL_NOT_FOUND` naming the candidates it looked for. */ import type { Context } from '@deepseek-ai/cordis'; import { Config, PROVIDER, DISPLAY_NAME, SETTINGS_NS, type ConfigType } from './config.js'; import { type ResolvedRouterOptions } from './adapter.js'; export { Config, PROVIDER, DISPLAY_NAME, SETTINGS_NS }; export { RoutingTable, createRoutingTable, parseTaskRule, resolveTier } from './routing-table.js'; export { RouterApiClient, RouterError, RouterErrorKind } from './router-client.js'; export { CortiqRouterAdapter, extractText } from './adapter.js'; export * from './i18n.js'; export type { CortiqRoutingMeta, ResolvedRouterOptions, RoutedTarget } from './adapter.js'; export declare const name = "llm-cortiq-router"; export declare const inject: string[]; export declare const NS: import("@deepseek-ai/dsh-settings").SettingsNamespace; /** * The one explicit step from raw config to validated routing facts, re-judged * for the composition entry at load (fail loud) and for each settings snapshot * at its first use. * @param config - raw plugin config or resolved settings snapshot. * @returns validated routing facts plus the credential reference. */ export declare function resolveAdapterOptions(config: ConfigType): ResolvedRouterOptions; export declare function apply(ctx: Context, config: ConfigType): void;