/** * Output Schema Extension Utility * * Extends tool output schemas to include the elicitation fallback response type. * This allows tools to return either their normal output OR an elicitation pending * response when the client doesn't support the standard elicitation protocol. */ /** * Extend a tool's output schema to include the elicitation fallback response type. * * When elicitation is enabled, tools may return an elicitation pending response * instead of their normal output. This function wraps the original schema in a * `oneOf` union to allow either response type. * * @param originalSchema - The tool's original output schema (may be undefined) * @returns Extended schema that allows either the original output or elicitation fallback * * @example * // Original schema: * { type: 'object', properties: { result: { type: 'string' } } } * * // Extended schema: * { * oneOf: [ * { type: 'object', properties: { result: { type: 'string' } } }, * { type: 'object', properties: { elicitationPending: { ... } }, required: ['elicitationPending'] } * ] * } */ export declare function extendOutputSchemaForElicitation(originalSchema: Record | undefined): Record; //# sourceMappingURL=extend-output-schema.d.ts.map