@ai-sdk/provider-utils 5.0.52 → 5.0.54

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 5.0.54
4
+
5
+ ### Patch Changes
6
+
7
+ - 2959d35: feat: rename `evaluate` to `decide`
8
+ - 59116e6: fix(groq,google): use JSON response tool for structured outputs with tool calling
9
+ - Updated dependencies [2959d35]
10
+ - @ai-sdk/provider@4.0.22
11
+
12
+ ## 5.0.53
13
+
14
+ ### Patch Changes
15
+
16
+ - 8c65988: feat(ai): add telemetry to speech generation and transcription, including
17
+ provider usage propagation and experimental streaming lifecycle callbacks
18
+ - 527a163: fix: validate hostname parts using `isValidHostnamePart`
19
+ - Updated dependencies [8c65988]
20
+ - @ai-sdk/provider@4.0.21
21
+
3
22
  ## 5.0.52
4
23
 
5
24
  ### Patch Changes
@@ -0,0 +1,29 @@
1
+ import { Experimental_DecisionModelV4, Experimental_DecisionModelV4CallOptions, Experimental_DecisionModelV4Result, LanguageModelV4 } from "@ai-sdk/provider";
2
+ import { WORKFLOW_DESERIALIZE, WORKFLOW_SERIALIZE } from "@workflow/serde";
3
+ //#region src/decision-language-model.d.ts
4
+ /** Adapts structured language-model output to Choice, Score, and Boolean decisions. */
5
+ declare class DecisionLanguageModel implements Experimental_DecisionModelV4 {
6
+ readonly specificationVersion = "v4";
7
+ readonly supportedQuestionTypes: readonly ["choice", "score", "boolean"];
8
+ readonly provider: string;
9
+ private readonly model;
10
+ constructor({ model, provider }: {
11
+ model: LanguageModelV4;
12
+ provider?: string;
13
+ });
14
+ get modelId(): string;
15
+ static [WORKFLOW_SERIALIZE](model: DecisionLanguageModel): {
16
+ model: LanguageModelV4;
17
+ provider: string;
18
+ };
19
+ static [WORKFLOW_DESERIALIZE](options: {
20
+ model: LanguageModelV4;
21
+ provider: string;
22
+ }): DecisionLanguageModel;
23
+ /** @deprecated Use `doDecide` instead. */
24
+ doEvaluate(options: Parameters<Experimental_DecisionModelV4['doDecide']>[0]): Promise<Experimental_DecisionModelV4Result>;
25
+ doDecide({ state, questions, abortSignal, headers, providerOptions }: Experimental_DecisionModelV4CallOptions): Promise<Experimental_DecisionModelV4Result>;
26
+ }
27
+ //#endregion
28
+ export { DecisionLanguageModel as Experimental_DecisionLanguageModel };
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":["DecisionModelV4","DecisionModelV4Result","DecisionModelV4CallOptions"],"sources":["../../src/decision-language-model.ts"],"mappings":";;;;cAea,iCAAiCA;WACnC;WACA;WACA;mBACQ;EAEL,cACV,OACA;IAEA,OAAO;IACP;;MAYE;UAII,oBAAoB,OAAO;;;;UAK3B,sBAAsB;IAC5B,OAAO;IACP;MACD;;EAKD,WAAW,SAAS,WAAWA,+CAA+B,QAAAC;EAIxD,WACJ,OACA,WACA,aACA,SACA,mBACCC,0CAA6B,QAAQD"}