@agentfield/sdk 0.1.64-rc.9 → 0.1.65-rc.1

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/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import express from 'express';
7
7
  import rateLimit from 'express-rate-limit';
8
8
  import crypto2, { randomUUID, createHash } from 'crypto';
9
9
  import { AsyncLocalStorage } from 'async_hooks';
10
- import { tool, jsonSchema, generateText, stepCountIs, generateObject, streamText, embed, embedMany } from 'ai';
10
+ import { tool, jsonSchema, generateText, stepCountIs, streamText, embed, embedMany, generateObject } from 'ai';
11
11
  import { createOpenAI } from '@ai-sdk/openai';
12
12
  import { createAnthropic } from '@ai-sdk/anthropic';
13
13
  import { createGoogleGenerativeAI } from '@ai-sdk/google';
@@ -1592,12 +1592,10 @@ var AIClient = class {
1592
1592
  const model = this.buildModel(options);
1593
1593
  if (options.schema) {
1594
1594
  const schema = options.schema;
1595
- const mode = options.mode ?? "json";
1596
1595
  const call2 = async () => generateObject({
1597
1596
  model,
1598
1597
  prompt,
1599
1598
  output: "object",
1600
- mode,
1601
1599
  system: options.system,
1602
1600
  temperature: options.temperature ?? this.config.temperature,
1603
1601
  maxOutputTokens: options.maxTokens ?? this.config.maxTokens,