@streamoid/agent 0.6.17 → 0.6.18

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +25 -0
  2. package/dist/index.js +6664 -6570
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -201,3 +201,28 @@ export interface ConversationSearchDialogProps {
201
201
  export declare function ConversationSearchDialog(
202
202
  props: ConversationSearchDialogProps,
203
203
  ): ReactElement;
204
+
205
+ /** Input for {@link startConversation}. */
206
+ export interface StartConversationInput {
207
+ workspaceId: string;
208
+ userId: string;
209
+ email: string;
210
+ /** The user's first message. Trimmed; empty is rejected. */
211
+ prompt: string;
212
+ }
213
+
214
+ /**
215
+ * Start a NEW conversation from a first message and return its id — for a host
216
+ * that has a question but no chat open yet (the dialog's Ask row). Hand the id
217
+ * back to the panel through `adapters.chatId`.
218
+ *
219
+ * Delegates to the same send path the chat itself uses, so `enc_token`,
220
+ * `color_mode` and `host_context` are filled in from inside the bundle; a host
221
+ * cannot see those and should not try to send them itself.
222
+ *
223
+ * Resolves `null` when the inputs are incomplete or the send fails, so a caller
224
+ * can show "could not start this chat" without unpacking an error.
225
+ */
226
+ export declare function startConversation(
227
+ input: StartConversationInput,
228
+ ): Promise<string | null>;