@chatbridge/provider 0.1.0 → 0.2.1
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 +5 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,9 +15,12 @@ export interface Provider {
|
|
|
15
15
|
isLoggedIn(page: Page): Promise<boolean>;
|
|
16
16
|
/** Bring the page to a state where a new chat can start. */
|
|
17
17
|
startNewChat(page: Page): Promise<void>;
|
|
18
|
-
/** Submit the prompt.
|
|
18
|
+
/** Submit the prompt. Called once per turn on the same `Page` for a
|
|
19
|
+
* multi-turn conversation. */
|
|
19
20
|
sendMessage(page: Page, prompt: string): Promise<void>;
|
|
20
|
-
/** Wait for response completion and return the response text.
|
|
21
|
+
/** Wait for response completion and return the response text. Must
|
|
22
|
+
* return the response to the most recent `sendMessage` only, never an
|
|
23
|
+
* earlier turn's. */
|
|
21
24
|
waitForResponse(page: Page): Promise<string>;
|
|
22
25
|
}
|
|
23
26
|
/** Identity helper: gives provider authors type inference and a future
|