@hiper2d/ai-agents 0.31.0 → 0.31.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.d.mts CHANGED
@@ -1665,9 +1665,8 @@ declare class DeepSeekV2Agent extends AbstractAgent {
1665
1665
  * New method using Zod with DeepSeek API
1666
1666
  * This provides better schema handling and runtime validation
1667
1667
  *
1668
- * DeepSeek V4 uses thinking toggle via extra_body. JSON mode (response_format
1669
- * json_object) is supported with or without thinking, so we always request it.
1670
- * Thinking additionally surfaces reasoning via reasoning_content.
1668
+ * DeepSeek V4 uses thinking toggle via extra_body; reasoning comes back in
1669
+ * reasoning_content. No JSON mode (response_format json_object), see below.
1671
1670
  */
1672
1671
  doAskWithZodSchema<T>(zodSchema: z.ZodSchema<T>, messages: AIMessage[]): Promise<[T, string, TokenUsage$1?, string?]>;
1673
1672
  /**
package/dist/index.d.ts CHANGED
@@ -1665,9 +1665,8 @@ declare class DeepSeekV2Agent extends AbstractAgent {
1665
1665
  * New method using Zod with DeepSeek API
1666
1666
  * This provides better schema handling and runtime validation
1667
1667
  *
1668
- * DeepSeek V4 uses thinking toggle via extra_body. JSON mode (response_format
1669
- * json_object) is supported with or without thinking, so we always request it.
1670
- * Thinking additionally surfaces reasoning via reasoning_content.
1668
+ * DeepSeek V4 uses thinking toggle via extra_body; reasoning comes back in
1669
+ * reasoning_content. No JSON mode (response_format json_object), see below.
1671
1670
  */
1672
1671
  doAskWithZodSchema<T>(zodSchema: z.ZodSchema<T>, messages: AIMessage[]): Promise<[T, string, TokenUsage$1?, string?]>;
1673
1672
  /**
package/dist/index.js CHANGED
@@ -4156,9 +4156,8 @@ ${updatedMessages[0].content}`
4156
4156
  * New method using Zod with DeepSeek API
4157
4157
  * This provides better schema handling and runtime validation
4158
4158
  *
4159
- * DeepSeek V4 uses thinking toggle via extra_body. JSON mode (response_format
4160
- * json_object) is supported with or without thinking, so we always request it.
4161
- * Thinking additionally surfaces reasoning via reasoning_content.
4159
+ * DeepSeek V4 uses thinking toggle via extra_body; reasoning comes back in
4160
+ * reasoning_content. No JSON mode (response_format json_object), see below.
4162
4161
  */
4163
4162
  async doAskWithZodSchema(zodSchema, messages) {
4164
4163
  try {
@@ -4184,9 +4183,6 @@ ${schemaDescription}`
4184
4183
  };
4185
4184
  requestParams.messages = this.addSystemInstruction(modifiedInput);
4186
4185
  }
4187
- requestParams.response_format = {
4188
- type: "json_object"
4189
- };
4190
4186
  Object.assign(requestParams, this.thinkingParams());
4191
4187
  let response;
4192
4188
  try {