/** * qilin-llm's owned branded ids: tool-call correlation and provider request * diagnostics. * * The `Branded` primitive and stateless constructor live in * `@qilin-agent/brand` so every owner of a cross-boundary id can brand it * without depending on qilin-llm; see that package's README for the * nominal-typing policy. * * @module @qilin-agent/llm/brand */ import { type Branded } from '@qilin-agent/brand'; /** Stable identity carried by one message across inbox, log, and model-request boundaries. */ export type MessageId = Branded<'MessageId'>; /** * Brand a message identifier. * @param id - the opaque message identifier. * @returns the same string with the message-id brand. */ export declare function MessageId(id: string): MessageId; /** * Correlates a model-issued tool call with its result. Provider-issued for * real adapters; synthesized by mocks/assembler fallbacks. */ export type ToolCallId = Branded<'ToolCallId'>; /** * Brand a string as a {@link ToolCallId}. * @param id - the provider-issued or synthesized call id. * @returns the same string with the tool-call-id brand. */ export declare function ToolCallId(id: string): ToolCallId; /** Provider-issued request identifier retained for diagnostics across package boundaries. */ export type ProviderRequestId = Branded<'ProviderRequestId'>; /** * Brand a provider-issued request identifier. * @param id - the opaque provider-issued string. * @returns the same string, branded; no validation is performed. */ export declare function ProviderRequestId(id: string): ProviderRequestId; /** Identity of one model streaming attempt, unique within one Agent lifecycle. */ export type LlmAttemptId = Branded<'LlmAttemptId'>; /** * Brand one loop-owned streaming attempt identifier. * @param id - the opaque Agent-lifecycle-local identifier. * @returns the same string with the attempt-id brand. */ export declare function LlmAttemptId(id: string): LlmAttemptId; /** Adapter-owned identifier for one model's selectable reasoning effort. */ export type ReasoningEffortId = Branded<'ReasoningEffortId'>; /** * Brand an adapter-owned reasoning-effort identifier. * @param id - the opaque identifier exposed by one model capability. * @returns the same string, branded; no validation is performed. */ export declare function ReasoningEffortId(id: string): ReasoningEffortId; //# sourceMappingURL=brand.d.ts.map