@uptiqai/widgets-sdk 1.71.0 → 1.73.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.
package/dist/index.d.ts CHANGED
@@ -128,6 +128,7 @@ declare interface DoneElement extends ConversationElement {
128
128
  plan?: Plan;
129
129
  content?: string;
130
130
  error?: string;
131
+ usedMemories?: UsedMemories;
131
132
  }
132
133
 
133
134
  declare type ErrorElement = ConversationElement & {
@@ -248,6 +249,22 @@ declare type ToolWidgetMetaData = {
248
249
  toolId: string;
249
250
  };
250
251
 
252
+ /** FAQs and user persona memories that were used during agent execution */
253
+ declare interface UsedMemories {
254
+ faqs?: Array<{
255
+ question: string;
256
+ answer: string;
257
+ similarity?: number;
258
+ }>;
259
+ userPersona?: {
260
+ memories: Array<{
261
+ type: string;
262
+ value: string;
263
+ confidence?: number;
264
+ }>;
265
+ };
266
+ }
267
+
251
268
  declare type WidgetConfig = {
252
269
  serverUrl: string;
253
270
  agentId: string;