@butlerbot/sdk 0.0.14 → 0.0.15
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.
|
@@ -2,6 +2,7 @@ import { EventSource } from "eventsource";
|
|
|
2
2
|
import { CONFIG } from "../config";
|
|
3
3
|
import { RequestResponseV4 } from "../types/type_registry";
|
|
4
4
|
import { ConversationStateResponse } from "../types/state/convo_state_response";
|
|
5
|
+
import { TurnProgressEntry } from "../types/response/v4/turn_registry_v4";
|
|
5
6
|
export type DialogueRequestParams = {
|
|
6
7
|
/** Unique identifier for the chat session */
|
|
7
8
|
chatId?: string;
|
|
@@ -125,7 +126,7 @@ export declare class Conversation {
|
|
|
125
126
|
* Fetches the conversation progress from the server
|
|
126
127
|
* Returns undefined if no active turn progress
|
|
127
128
|
*/
|
|
128
|
-
fetchProgress(): Promise<
|
|
129
|
+
fetchProgress(): Promise<TurnProgressEntry[] | undefined>;
|
|
129
130
|
/** Sends a message into the conversation */
|
|
130
131
|
send(message: string, cb: (chunk: RequestResponse) => any, options?: DialogueRequestOptions): EventSource;
|
|
131
132
|
}
|