ai 7.0.38 → 7.0.39
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/CHANGELOG.md +10 -0
- package/dist/index.d.ts +20 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/internal/index.js +1 -1
- package/docs/03-agents/07-workflow-agent.mdx +3 -2
- package/docs/03-ai-sdk-core/36-translation.mdx +24 -11
- package/docs/03-ai-sdk-harnesses/06-workflow-utilities.mdx +225 -122
- package/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +11 -4
- package/package.json +3 -3
- package/src/generate-object/generate-object.ts +12 -2
- package/src/generate-object/stream-object.ts +14 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 7.0.39
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 09a52cb: Promote the `repairText` option to stable on `generateObject` and `streamObject`, with a deprecated `experimental_repairText` alias for backwards compatibility.
|
|
8
|
+
- Updated dependencies [0c464d9]
|
|
9
|
+
- Updated dependencies [c49380c]
|
|
10
|
+
- @ai-sdk/provider-utils@5.0.14
|
|
11
|
+
- @ai-sdk/gateway@4.0.30
|
|
12
|
+
|
|
3
13
|
## 7.0.38
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -7133,8 +7133,9 @@ type RepairTextFunction = (options: {
|
|
|
7133
7133
|
* - 'enum': The output is an enum.
|
|
7134
7134
|
* - 'no-schema': The output is not a schema.
|
|
7135
7135
|
*
|
|
7136
|
-
* @param
|
|
7136
|
+
* @param repairText - A function that attempts to repair the raw output of the model
|
|
7137
7137
|
* to enable JSON parsing.
|
|
7138
|
+
* @param experimental_repairText - Deprecated alias for `repairText`.
|
|
7138
7139
|
*
|
|
7139
7140
|
* @param telemetry - Optional telemetry configuration.
|
|
7140
7141
|
*
|
|
@@ -7188,6 +7189,13 @@ declare function generateObject<SCHEMA extends FlexibleSchema<unknown> = Flexibl
|
|
|
7188
7189
|
* A function that attempts to repair the raw output of the model
|
|
7189
7190
|
* to enable JSON parsing.
|
|
7190
7191
|
*/
|
|
7192
|
+
repairText?: RepairTextFunction;
|
|
7193
|
+
/**
|
|
7194
|
+
* A function that attempts to repair the raw output of the model
|
|
7195
|
+
* to enable JSON parsing.
|
|
7196
|
+
*
|
|
7197
|
+
* @deprecated Use `repairText` instead.
|
|
7198
|
+
*/
|
|
7191
7199
|
experimental_repairText?: RepairTextFunction;
|
|
7192
7200
|
/**
|
|
7193
7201
|
* Optional telemetry configuration.
|
|
@@ -7540,6 +7548,10 @@ type StreamObjectOnFinishCallback<RESULT> = (event: {
|
|
|
7540
7548
|
* - 'enum': The output is an enum.
|
|
7541
7549
|
* - 'no-schema': The output is not a schema.
|
|
7542
7550
|
*
|
|
7551
|
+
* @param repairText - A function that attempts to repair the raw output of the model
|
|
7552
|
+
* to enable JSON parsing.
|
|
7553
|
+
* @param experimental_repairText - Deprecated alias for `repairText`.
|
|
7554
|
+
*
|
|
7543
7555
|
* @param telemetry - Optional telemetry configuration.
|
|
7544
7556
|
*
|
|
7545
7557
|
* @param providerOptions - Additional provider-specific options. They are passed through
|
|
@@ -7584,6 +7596,13 @@ declare function streamObject<SCHEMA extends FlexibleSchema<unknown> = FlexibleS
|
|
|
7584
7596
|
* A function that attempts to repair the raw output of the model
|
|
7585
7597
|
* to enable JSON parsing.
|
|
7586
7598
|
*/
|
|
7599
|
+
repairText?: RepairTextFunction;
|
|
7600
|
+
/**
|
|
7601
|
+
* A function that attempts to repair the raw output of the model
|
|
7602
|
+
* to enable JSON parsing.
|
|
7603
|
+
*
|
|
7604
|
+
* @deprecated Use `repairText` instead.
|
|
7605
|
+
*/
|
|
7587
7606
|
experimental_repairText?: RepairTextFunction;
|
|
7588
7607
|
/**
|
|
7589
7608
|
* Optional telemetry configuration.
|
package/dist/index.js
CHANGED
|
@@ -1132,7 +1132,7 @@ import {
|
|
|
1132
1132
|
} from "@ai-sdk/provider-utils";
|
|
1133
1133
|
|
|
1134
1134
|
// src/version.ts
|
|
1135
|
-
var VERSION = true ? "7.0.
|
|
1135
|
+
var VERSION = true ? "7.0.39" : "0.0.0-test";
|
|
1136
1136
|
|
|
1137
1137
|
// src/util/download/download.ts
|
|
1138
1138
|
var download = async ({
|
|
@@ -12461,7 +12461,8 @@ async function generateObject(options) {
|
|
|
12461
12461
|
maxRetries: maxRetriesArg,
|
|
12462
12462
|
abortSignal,
|
|
12463
12463
|
headers,
|
|
12464
|
-
experimental_repairText
|
|
12464
|
+
experimental_repairText,
|
|
12465
|
+
repairText = experimental_repairText,
|
|
12465
12466
|
experimental_telemetry,
|
|
12466
12467
|
telemetry = experimental_telemetry,
|
|
12467
12468
|
experimental_download: download2,
|
|
@@ -12846,7 +12847,8 @@ function streamObject(options) {
|
|
|
12846
12847
|
maxRetries,
|
|
12847
12848
|
abortSignal,
|
|
12848
12849
|
headers,
|
|
12849
|
-
experimental_repairText
|
|
12850
|
+
experimental_repairText,
|
|
12851
|
+
repairText = experimental_repairText,
|
|
12850
12852
|
experimental_telemetry,
|
|
12851
12853
|
telemetry = experimental_telemetry,
|
|
12852
12854
|
experimental_download: download2,
|