@uptiqai/widgets-sdk 1.162.1 → 1.164.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
@@ -19,6 +19,7 @@ declare type AgentMessage_2 = ConversationElement & {
19
19
  [key: string]: any;
20
20
  documents?: AttachedDocument[];
21
21
  requestedSchema?: any;
22
+ questions?: AgentQuestion[];
22
23
  permissionRequest?: PermissionRequest;
23
24
  credentialRequest?: CredentialsRequest;
24
25
  };
@@ -46,6 +47,23 @@ export declare type AgentMessageContextProps = {
46
47
 
47
48
  declare type AgentMessageProps = AgentMessageAnnotationProps & AgentMessageContextProps;
48
49
 
50
+ /** A structured question (Claude AskUserQuestion-style) attached to a `question` agent message. */
51
+ declare type AgentQuestion = {
52
+ id: string;
53
+ /** Short chip label shown above the question (e.g. "Doc type"). */
54
+ header?: string;
55
+ question: string;
56
+ /** Allow selecting more than one option. */
57
+ multiSelect?: boolean;
58
+ options: AgentQuestionOption[];
59
+ };
60
+
61
+ /** A single selectable choice within a structured agent question. */
62
+ declare type AgentQuestionOption = {
63
+ label: string;
64
+ description?: string;
65
+ };
66
+
49
67
  declare enum AgentResponseFormat {
50
68
  Json = "Json",
51
69
  Markdown = "Markdown"