/** * Responses ingress tool collection (spec §16.3, D16-B). Validates * top-level and `additional_tools` tool declarations — flat function * tools, namespace-wrapped function tools and custom/freeform tools — * into canonical definitions plus a native carrier, with globally unique * bare names. Shared with the content and assembly modules. */ import type { ExecutionFeature, ResponsesCustomTool, ResponsesFunctionToolRef, ToolDefinition } from '@sentropic/llm-mesh'; export type ResponsesIngressErrorCode = 'bad_request' | 'unsupported_parameter'; /** Typed validation failure with a safe, gateway-built field path. */ export declare class ResponsesIngressError extends Error { readonly fieldPath: string; readonly errorCode: ResponsesIngressErrorCode; constructor(fieldPath: string, errorCode: ResponsesIngressErrorCode, detail: string); } export type JsonRecord = Record; export declare const asRecord: (value: unknown) => JsonRecord | undefined; export declare const asArray: (value: unknown) => unknown[] | undefined; export declare const fail: (fieldPath: string, code: ResponsesIngressErrorCode, detail: string) => never; export declare const isFiniteNumber: (value: unknown) => value is number; export declare const isPositiveInt: (value: unknown) => value is number; export declare const EFFORTS: Set; export declare const SUMMARIES: Set; export declare const IMAGE_DETAILS: Set; export declare const INCLUDED: Set; export declare const boundedRecord: (value: unknown, fieldPath: string) => JsonRecord; export declare const boundedId: (value: unknown, fieldPath: string) => string | undefined; export interface CollectedTools { readonly definitions: ToolDefinition[]; readonly refs: ResponsesFunctionToolRef[]; readonly customTools: ResponsesCustomTool[]; readonly features: Set; /** Bare name -> namespace (undefined for top-level). */ readonly namespaces: Map; } export declare const collectTools: (tools: unknown, fieldPath: string, namespace: string | undefined, collected: CollectedTools) => void; /** Resolve a call/choice name to its unique bare definition name. */ export declare const resolveToolName: (name: string, fieldPath: string, collected: CollectedTools) => string; //# sourceMappingURL=responses-ingress-tools.d.ts.map