@useago/sdk 0.4.5 → 0.4.7

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/react.d.cts CHANGED
@@ -218,6 +218,11 @@ declare interface AgoClientEvents {
218
218
  conversationId: string;
219
219
  messageId: string;
220
220
  };
221
+ /**
222
+ * The main answer text is done (backend emitted `status: "DONE"`), but follow-up
223
+ * replies may still be pending. Fires once, before `message:complete`.
224
+ */
225
+ "message:answer-complete": AgoMessage;
221
226
  "message:complete": AgoMessage;
222
227
  "message:error": {
223
228
  error: string;
@@ -697,6 +702,17 @@ export declare interface MessageProps {
697
702
  className?: string;
698
703
  /** Show the agent name above assistant messages. Defaults to `false`. */
699
704
  showAgentName?: boolean;
705
+ /**
706
+ * Whether this is the last message in the list. Follow-up suggestions only
707
+ * render on the last message. Defaults to `false`.
708
+ */
709
+ isLast?: boolean;
710
+ /**
711
+ * The main answer is done but its follow-up replies are still being generated.
712
+ * On the last message this renders the "..." indicator in the follow-up slot
713
+ * until the suggestions arrive. Defaults to `false`.
714
+ */
715
+ isAwaitingFollowUps?: boolean;
700
716
  /**
701
717
  * Called when the user clicks a suggested follow-up reply. When omitted the
702
718
  * follow-up buttons render but are not interactive (backwards-compatible).
package/dist/react.d.ts CHANGED
@@ -218,6 +218,11 @@ declare interface AgoClientEvents {
218
218
  conversationId: string;
219
219
  messageId: string;
220
220
  };
221
+ /**
222
+ * The main answer text is done (backend emitted `status: "DONE"`), but follow-up
223
+ * replies may still be pending. Fires once, before `message:complete`.
224
+ */
225
+ "message:answer-complete": AgoMessage;
221
226
  "message:complete": AgoMessage;
222
227
  "message:error": {
223
228
  error: string;
@@ -697,6 +702,17 @@ export declare interface MessageProps {
697
702
  className?: string;
698
703
  /** Show the agent name above assistant messages. Defaults to `false`. */
699
704
  showAgentName?: boolean;
705
+ /**
706
+ * Whether this is the last message in the list. Follow-up suggestions only
707
+ * render on the last message. Defaults to `false`.
708
+ */
709
+ isLast?: boolean;
710
+ /**
711
+ * The main answer is done but its follow-up replies are still being generated.
712
+ * On the last message this renders the "..." indicator in the follow-up slot
713
+ * until the suggestions arrive. Defaults to `false`.
714
+ */
715
+ isAwaitingFollowUps?: boolean;
700
716
  /**
701
717
  * Called when the user clicks a suggested follow-up reply. When omitted the
702
718
  * follow-up buttons render but are not interactive (backwards-compatible).