@dbx-tools/genie 0.3.20 → 0.3.22
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/package.json +4 -4
- package/src/chat.ts +3 -3
package/package.json
CHANGED
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@databricks/sdk-experimental": "^0.17.0",
|
|
19
|
-
"@dbx-tools/
|
|
20
|
-
"@dbx-tools/
|
|
21
|
-
"@dbx-tools/shared-core": "0.3.
|
|
19
|
+
"@dbx-tools/shared-genie": "0.3.22",
|
|
20
|
+
"@dbx-tools/appkit": "0.3.22",
|
|
21
|
+
"@dbx-tools/shared-core": "0.3.22"
|
|
22
22
|
},
|
|
23
23
|
"main": "index.ts",
|
|
24
24
|
"license": "UNLICENSED",
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
|
-
"version": "0.3.
|
|
28
|
+
"version": "0.3.22",
|
|
29
29
|
"types": "index.ts",
|
|
30
30
|
"type": "module",
|
|
31
31
|
"exports": {
|
package/src/chat.ts
CHANGED
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
* @module
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import {
|
|
24
|
+
import { WorkspaceClient } from "@databricks/sdk-experimental";
|
|
25
25
|
import { databricks } from "@dbx-tools/appkit";
|
|
26
|
+
import { async, log, type PollContext } from "@dbx-tools/shared-core";
|
|
26
27
|
import { event, genieModel, type GenieChatEvent, type GenieMessage } from "@dbx-tools/shared-genie";
|
|
27
|
-
import { WorkspaceClient } from "@databricks/sdk-experimental";
|
|
28
28
|
|
|
29
29
|
const logger = log.logger("genie/chat");
|
|
30
30
|
|
|
@@ -159,7 +159,7 @@ export async function* genieChat(
|
|
|
159
159
|
}
|
|
160
160
|
// Subsequent polls: re-fetch the current message until its status becomes
|
|
161
161
|
// terminal.
|
|
162
|
-
return
|
|
162
|
+
return client.genie.getMessage(
|
|
163
163
|
{
|
|
164
164
|
space_id,
|
|
165
165
|
conversation_id: conversationId,
|