@uptiqai/widgets-sdk 1.189.0 → 1.190.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
@@ -22,6 +22,12 @@ declare type AgentMessage_2 = ConversationElement & {
22
22
  questions?: AgentQuestion[];
23
23
  permissionRequest?: PermissionRequest;
24
24
  credentialRequest?: CredentialsRequest;
25
+ /** Display info of the model that generated this message (incl. a fallback used on outage). */
26
+ modelInfo?: ModelDisplayInfo;
27
+ /** Role the model played for this message: planning the work vs executing/answering. */
28
+ modelRole?: ModelRole;
29
+ /** Reasoning mode the message was produced under (e.g. balanced, advanced). */
30
+ mode?: string;
25
31
  };
26
32
  parentMessageId?: string;
27
33
  };
@@ -282,6 +288,18 @@ declare type IntegrationServiceId = 'twilio-whatsapp' | 'resend' | 'stripe' | 'r
282
288
 
283
289
  export declare type IntermediateAgentMessage = Omit<SdkAgentMessage, 'intermediateMessages'>;
284
290
 
291
+ /** Display info for the model that generated a message, resolved on the backend. */
292
+ declare type ModelDisplayInfo = {
293
+ id: string;
294
+ name?: string;
295
+ modelName?: string;
296
+ provider?: string;
297
+ providerModelId?: string;
298
+ };
299
+
300
+ /** The role a model played for a message: planning the work vs executing/answering. */
301
+ declare type ModelRole = 'planning' | 'execution';
302
+
285
303
  declare type PausedElement = ConversationElement & {
286
304
  type: ConversationElementType.PAUSED;
287
305
  resumeInfo: any;