agents 0.2.3 → 0.2.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.
@@ -526,7 +526,7 @@ function handleFetchError({
526
526
  }
527
527
  return error;
528
528
  }
529
- var VERSION = true ? "3.0.9" : "0.0.0-test";
529
+ var VERSION = true ? "3.0.10" : "0.0.0-test";
530
530
  function loadApiKey({
531
531
  apiKey,
532
532
  environmentVariableName,
@@ -4815,7 +4815,7 @@ var openaiTranscriptionResponseSchema = z18.object({
4815
4815
  })
4816
4816
  ).nullish()
4817
4817
  });
4818
- var VERSION2 = true ? "2.0.35" : "0.0.0-test";
4818
+ var VERSION2 = true ? "2.0.36" : "0.0.0-test";
4819
4819
  function createOpenAI(options = {}) {
4820
4820
  var _a15, _b;
4821
4821
  const baseURL = (_a15 = withoutTrailingSlash(options.baseURL)) != null ? _a15 : "https://api.openai.com/v1";
@@ -4938,7 +4938,6 @@ async function experimental_codemode(options) {
4938
4938
  If the user asks to do anything that be achieveable by the codemode tool, then simply pass over control to it by giving it a simple function description. Don't be too verbose.
4939
4939
 
4940
4940
  `;
4941
- console.log("prompt", prompt);
4942
4941
  const codemodeTool = tool2({
4943
4942
  description: "codemode: a tool that can generate code to achieve a goal",
4944
4943
  inputSchema: z19.object({
@@ -4950,7 +4949,6 @@ async function experimental_codemode(options) {
4950
4949
  }),
4951
4950
  execute: async ({ functionDescription }) => {
4952
4951
  try {
4953
- console.log("codemode", functionDescription);
4954
4952
  const response = await generateObject({
4955
4953
  model: openai("gpt-4.1"),
4956
4954
  schema: z19.object({
@@ -4969,7 +4967,6 @@ async function experimental_codemode(options) {
4969
4967
  Here is user input: ${functionDescription}`
4970
4968
  // insert ts types for the tools here
4971
4969
  });
4972
- console.log("code", response.object.code);
4973
4970
  const evaluator = createEvaluator(response.object.code, {
4974
4971
  proxy: options.proxy,
4975
4972
  loader: options.loader