@pushwoosh/rpc-gateway-ai-assistant 0.1.464 → 0.1.466

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/data.js CHANGED
@@ -233,6 +233,9 @@ export const data = {
233
233
  },
234
234
  "thinking": {
235
235
  "type": "string"
236
+ },
237
+ "messageId": {
238
+ "type": "string"
236
239
  }
237
240
  }
238
241
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.464",
3
+ "version": "0.1.466",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -133,8 +133,8 @@ export type StreamDelta = {
133
133
  content: string;
134
134
  };
135
135
  /**
136
- * AssistantMessage is the whole model turn, sent once it is complete. Go persists
137
- * this instead of re-accumulating deltas, and records usage against it.
136
+ * AssistantMessage is one SDK assistant message: usually a single content block of a model
137
+ * turn, the SDK splits a response that way. Go persists this instead of re-accumulating deltas.
138
138
  */
139
139
  export type AssistantMessage = {
140
140
  text: string;
@@ -142,6 +142,8 @@ export type AssistantMessage = {
142
142
  usage: Usage;
143
143
  /** mirrored to Mattermost, never persisted, never streamed */
144
144
  thinking: string;
145
+ /** The API response this block belongs to: blocks sharing it are one model turn. */
146
+ messageId: string;
145
147
  };
146
148
  /**
147
149
  * SessionAppend carries transcript lines the SDK wrote during this turn, in write order. A