UNPKG

histoire

Version:

A fast story book powered by Vite

14 lines • 914 B
import type { CreateElicitationRequest } from '@agentclientprotocol/sdk'; import type { UiAgentElicitationForm, UiAgentElicitationUrl } from '@histoire/shared'; /** Card content projected from one agent request, before broker identity is added. */ export type ProjectedElicitation = Pick<UiAgentElicitationForm, 'mode' | 'message' | 'title' | 'description' | 'fields'> | (Pick<UiAgentElicitationUrl, 'mode' | 'message' | 'url' | 'host'> & { elicitationId: string; }); /** * Projects an ACP elicitation into safe card content. * Returns undefined when the request cannot be shown faithfully, so the agent gets a decline. * @param request Agent elicitation request. * @param sanitize Redacts known secrets. */ export declare function projectElicitation(request: CreateElicitationRequest, sanitize: (text: string) => string): ProjectedElicitation | undefined; //# sourceMappingURL=elicitation-schema.d.ts.map