@webless/agent 0.6.10 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -222,7 +222,9 @@ type VisitorHiddenToolResultPresentation = {
222
222
  kind: "hidden";
223
223
  };
224
224
  type ResolvedVisitorToolResultPresentation = VisitorToolResultPresentation | VisitorEntityResultPresentation | VisitorCollectionResultPresentation | VisitorSignatureResultPresentation | VisitorBookingResultPresentation | VisitorToolInputResultPresentation | VisitorHiddenToolResultPresentation;
225
- type VisitorToolResultPresenterOutput = Omit<VisitorToolResultPresentation, "id" | "toolName" | "status"> | Omit<VisitorEntityResultPresentation, "id" | "toolName" | "status"> | Omit<VisitorCollectionResultPresentation, "id" | "toolName" | "status"> | Omit<VisitorSignatureResultPresentation, "id" | "toolName" | "status"> | {
225
+ type VisitorToolResultPresenterOutput = (Omit<VisitorToolResultPresentation, "id" | "toolName" | "status"> & {
226
+ status?: AgentToolResult["status"];
227
+ }) | Omit<VisitorEntityResultPresentation, "id" | "toolName" | "status"> | Omit<VisitorCollectionResultPresentation, "id" | "toolName" | "status"> | Omit<VisitorSignatureResultPresentation, "id" | "toolName" | "status"> | {
226
228
  kind: "booking";
227
229
  card: ToolCard;
228
230
  };
@@ -239,6 +241,7 @@ declare const builtInVisitorToolResultRegistry: VisitorToolResultRegistry;
239
241
  declare function presentVisitorToolResult(result: AgentToolResult, registry?: VisitorToolResultRegistry): ResolvedVisitorToolResultPresentation;
240
242
 
241
243
  type ToolStepState = "completed" | "active" | "pending" | "error";
244
+ type AgentMessageFeedback = "positive" | "negative";
242
245
  type ToolStep = {
243
246
  id: string;
244
247
  kind: "planning" | "search" | "specialist";
@@ -355,6 +358,9 @@ type AgentBrandingConfig = {
355
358
  greeting?: string;
356
359
  composerPlaceholder?: string;
357
360
  poweredByLabel?: string;
361
+ disclaimer?: string | null;
362
+ answerReceipt?: boolean;
363
+ readAloud?: boolean;
358
364
  fontFamily?: string;
359
365
  colors?: {
360
366
  primary?: string;
@@ -367,6 +373,11 @@ type AgentBrandingConfig = {
367
373
  border?: string;
368
374
  };
369
375
  };
376
+ type AgentAnalyticsConfig = {
377
+ companyIndex: string;
378
+ eventUrl: string;
379
+ trackingConsent: boolean;
380
+ };
370
381
  type AgentTagManifest = {
371
382
  customerId: string;
372
383
  indexId: string;
@@ -380,9 +391,11 @@ type AgentTagManifest = {
380
391
  pageShift?: boolean;
381
392
  colorScheme?: AgentColorScheme;
382
393
  branding?: AgentBrandingConfig;
394
+ analytics?: AgentAnalyticsConfig;
383
395
  };
384
396
 
385
397
  declare function normalizeAgentTagManifest(manifest: AgentTagManifest): {
398
+ analytics?: AgentAnalyticsConfig | undefined;
386
399
  branding?: AgentBrandingConfig | undefined;
387
400
  customerId: string;
388
401
  indexId: string;
@@ -398,4 +411,4 @@ declare function normalizeAgentTagManifest(manifest: AgentTagManifest): {
398
411
  };
399
412
  type NormalizedAgentTagManifest = ReturnType<typeof normalizeAgentTagManifest>;
400
413
 
401
- export { AGENT_STRUCTURED_TOOL_INPUT_HEADER as A, type AssistTabVariant as B, type Citation as C, type ConversationMessage as D, DEFAULT_AGENT_PLACEMENT as E, type FollowUpSuggestion as F, type ToolStepState as G, type VisitorBookingResultPresentation as H, type VisitorToolInputResultPresentation as I, type JourneyContext as J, type VisitorToolResultLink as K, type VisitorToolResultPresentation as L, type VisitorToolResultPresenter as M, type NormalizedAgentTagManifest as N, type VisitorToolResultPresenterOutput as O, type VisitorToolResultRegistry as P, builtInVisitorToolResultRegistry as Q, type ResolvedVisitorToolResultPresentation as R, defaultAgentRailTheme as S, type ToolStep as T, defaultDarkAgentRailTheme as U, type VisitorBooking as V, formatAgentStructuredToolInput as W, normalizeAgentPlacement as X, normalizeAgentTagManifest as Y, presentVisitorToolResult as Z, AGENT_STRUCTURED_TOOL_INPUT_SCHEMA_VERSION as a, type AgentBrandingConfig as b, type AgentColorScheme as c, type AgentIndexVersion as d, type AgentInputOption as e, type AgentInputRequest as f, type AgentInputResponse as g, type AgentMountStrategy as h, type AgentPlacementConfig as i, type AgentRailPhase as j, type AgentRailState as k, type AgentRailTheme as l, type AgentStructuredToolInput as m, type AgentTabSide as n, type AgentTabVariant as o, type AgentTagManifest as p, type AgentToolResult as q, type AgentToolResultJsonValue as r, type AgentToolUiAction as s, type AgentToolUiField as t, type AgentToolUiFieldKind as u, type AgentToolUiOption as v, type AgentToolUiStep as w, type AgentToolUiSurface as x, AssistEdgeTab as y, type AssistTabSide as z };
414
+ export { presentVisitorToolResult as $, AGENT_STRUCTURED_TOOL_INPUT_HEADER as A, AssistEdgeTab as B, type AssistTabSide as C, type AssistTabVariant as D, type Citation as E, type ConversationMessage as F, DEFAULT_AGENT_PLACEMENT as G, type FollowUpSuggestion as H, type ToolStepState as I, type JourneyContext as J, type VisitorBookingResultPresentation as K, type VisitorToolInputResultPresentation as L, type VisitorToolResultLink as M, type NormalizedAgentTagManifest as N, type VisitorToolResultPresentation as O, type VisitorToolResultPresenter as P, type VisitorToolResultPresenterOutput as Q, type ResolvedVisitorToolResultPresentation as R, type VisitorToolResultRegistry as S, type ToolStep as T, builtInVisitorToolResultRegistry as U, type VisitorBooking as V, defaultAgentRailTheme as W, defaultDarkAgentRailTheme as X, formatAgentStructuredToolInput as Y, normalizeAgentPlacement as Z, normalizeAgentTagManifest as _, AGENT_STRUCTURED_TOOL_INPUT_SCHEMA_VERSION as a, type AgentAnalyticsConfig as b, type AgentBrandingConfig as c, type AgentColorScheme as d, type AgentIndexVersion as e, type AgentInputOption as f, type AgentInputRequest as g, type AgentInputResponse as h, type AgentMessageFeedback as i, type AgentMountStrategy as j, type AgentPlacementConfig as k, type AgentRailPhase as l, type AgentRailState as m, type AgentRailTheme as n, type AgentStructuredToolInput as o, type AgentTabSide as p, type AgentTabVariant as q, type AgentTagManifest as r, type AgentToolResult as s, type AgentToolResultJsonValue as t, type AgentToolUiAction as u, type AgentToolUiField as v, type AgentToolUiFieldKind as w, type AgentToolUiOption as x, type AgentToolUiStep as y, type AgentToolUiSurface as z };