@ai-sdk/provider 1.0.4 → 1.0.5
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 +6 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
@@ -936,6 +936,11 @@ type LanguageModelV1 = {
|
|
936
936
|
*/
|
937
937
|
text?: string;
|
938
938
|
/**
|
939
|
+
Reasoning text that the model has generated. Can be undefined if the model
|
940
|
+
has only generated text.
|
941
|
+
*/
|
942
|
+
reasoning?: string;
|
943
|
+
/**
|
939
944
|
Tool calls that the model has generated. Can be undefined if the
|
940
945
|
model has only generated text.
|
941
946
|
*/
|
@@ -1070,6 +1075,9 @@ type LanguageModelV1 = {
|
|
1070
1075
|
type LanguageModelV1StreamPart = {
|
1071
1076
|
type: 'text-delta';
|
1072
1077
|
textDelta: string;
|
1078
|
+
} | {
|
1079
|
+
type: 'reasoning';
|
1080
|
+
textDelta: string;
|
1073
1081
|
} | ({
|
1074
1082
|
type: 'tool-call';
|
1075
1083
|
} & LanguageModelV1FunctionToolCall) | {
|
package/dist/index.d.ts
CHANGED
@@ -936,6 +936,11 @@ type LanguageModelV1 = {
|
|
936
936
|
*/
|
937
937
|
text?: string;
|
938
938
|
/**
|
939
|
+
Reasoning text that the model has generated. Can be undefined if the model
|
940
|
+
has only generated text.
|
941
|
+
*/
|
942
|
+
reasoning?: string;
|
943
|
+
/**
|
939
944
|
Tool calls that the model has generated. Can be undefined if the
|
940
945
|
model has only generated text.
|
941
946
|
*/
|
@@ -1070,6 +1075,9 @@ type LanguageModelV1 = {
|
|
1070
1075
|
type LanguageModelV1StreamPart = {
|
1071
1076
|
type: 'text-delta';
|
1072
1077
|
textDelta: string;
|
1078
|
+
} | {
|
1079
|
+
type: 'reasoning';
|
1080
|
+
textDelta: string;
|
1073
1081
|
} | ({
|
1074
1082
|
type: 'tool-call';
|
1075
1083
|
} & LanguageModelV1FunctionToolCall) | {
|