@hiper2d/ai-agents 0.1.4 → 0.1.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/dist/index.mjs CHANGED
@@ -1765,7 +1765,6 @@ ${msg.content}` };
1765
1765
 
1766
1766
  // src/agents/gpt-5-agent.ts
1767
1767
  import OpenAI from "openai";
1768
- import { z as z2 } from "zod";
1769
1768
  import { zodTextFormat } from "openai/helpers/zod";
1770
1769
  var Gpt5Agent = class extends AbstractAgent {
1771
1770
  client;
@@ -1799,12 +1798,7 @@ var Gpt5Agent = class extends AbstractAgent {
1799
1798
  `System: ${this.instruction}`,
1800
1799
  ...this.prepareMessages(messages).map((msg) => `${msg.role === "user" ? "User" : "Assistant"}: ${msg.content}`)
1801
1800
  ].join("\n\n");
1802
- let schemaToSend = zodSchema;
1803
- if (this.enableThinking && zodSchema instanceof z2.ZodObject) {
1804
- schemaToSend = zodSchema.extend({
1805
- thinking: z2.string().describe("Your internal chain-of-thought reasoning process used to arrive at the final answer.")
1806
- });
1807
- }
1801
+ const schemaToSend = zodSchema;
1808
1802
  let response;
1809
1803
  try {
1810
1804
  response = await this.client.responses.parse({