@ai-sdk/provider-utils 5.0.41 → 5.0.43

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,27 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 5.0.43
4
+
5
+ ### Patch Changes
6
+
7
+ - 215b25e: Default language-model evaluation adapters to `reasoning: 'none'`, using each provider's existing reasoning mapping. Explicit reasoning settings in `providerOptions` continue to override the default.
8
+ - d4d96bf: Add experimental Choice, Score, and Boolean evaluations through `openai.evaluationModel()` and a shared structured language-model evaluation adapter in `@ai-sdk/provider-utils/experimental-evaluation`. Preserve exact labels and metadata, validate score bounds, and return prompted Boolean P(true) estimates validated to be in [0, 1]. Boolean estimates are not guaranteed to be calibrated; application code chooses thresholds.
9
+ - 3456e2c: feat(ai): support tool search with direct tool calling
10
+ - c4e76de: feat(ai): add native tool search tool
11
+ - Updated dependencies [a7dd893]
12
+ - @ai-sdk/provider@4.0.17
13
+
14
+ ## 5.0.42
15
+
16
+ ### Patch Changes
17
+
18
+ - 91c2128: feat(ai): add mid conversation tool discovery/updates for code-mode
19
+ - 2cd80b3: Keep default Node.js downloads protected by DNS validation and connection pinning when frameworks or instrumentation wrap global fetch before or after the SDK loads.
20
+ - 2fa5e0e: fix(provider-utils): avoid crashing when DOMException is not a global constructor
21
+ - Updated dependencies [d06bb2a]
22
+ - Updated dependencies [123d71f]
23
+ - @ai-sdk/provider@4.0.16
24
+
3
25
  ## 5.0.41
4
26
 
5
27
  ### Patch Changes
@@ -0,0 +1,26 @@
1
+ import { Experimental_EvaluationModelV4, LanguageModelV4, Experimental_EvaluationModelV4CallOptions, Experimental_EvaluationModelV4Result } from '@ai-sdk/provider';
2
+ import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';
3
+
4
+ /** Adapts structured language-model output to Choice, Score, and Boolean evaluations. */
5
+ declare class EvaluationLanguageModel implements Experimental_EvaluationModelV4 {
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: EvaluationLanguageModel): {
16
+ model: LanguageModelV4;
17
+ provider: string;
18
+ };
19
+ static [WORKFLOW_DESERIALIZE](options: {
20
+ model: LanguageModelV4;
21
+ provider: string;
22
+ }): EvaluationLanguageModel;
23
+ doEvaluate({ state, questions, abortSignal, headers, providerOptions, }: Experimental_EvaluationModelV4CallOptions): Promise<Experimental_EvaluationModelV4Result>;
24
+ }
25
+
26
+ export { EvaluationLanguageModel as Experimental_EvaluationLanguageModel };