@iqai/adk 0.8.0 → 0.8.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/CHANGELOG.md +8 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @iqai/adk
|
|
2
2
|
|
|
3
|
+
## 0.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 58eeac4: fix: handle null `answer` from Tavily API in WebSearchTool
|
|
8
|
+
|
|
9
|
+
Tavily returns `"answer": null` by default when `include_answer` is not set, but the Zod schema typed `answer` as `z.string().optional()` which rejects `null`. Changed to `z.string().nullish()` to accept both `null` and `undefined`.
|
|
10
|
+
|
|
3
11
|
## 0.8.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -3915,7 +3915,7 @@ declare const tavilySearchResponseSchema: z$1.ZodObject<{
|
|
|
3915
3915
|
favicon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
3916
3916
|
score: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3917
3917
|
}, z$1.core.$strip>>;
|
|
3918
|
-
answer: z$1.ZodOptional<z$1.ZodString
|
|
3918
|
+
answer: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
3919
3919
|
images: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3920
3920
|
url: z$1.ZodString;
|
|
3921
3921
|
description: z$1.ZodOptional<z$1.ZodString>;
|
package/dist/index.d.ts
CHANGED
|
@@ -3915,7 +3915,7 @@ declare const tavilySearchResponseSchema: z$1.ZodObject<{
|
|
|
3915
3915
|
favicon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
3916
3916
|
score: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3917
3917
|
}, z$1.core.$strip>>;
|
|
3918
|
-
answer: z$1.ZodOptional<z$1.ZodString
|
|
3918
|
+
answer: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
3919
3919
|
images: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3920
3920
|
url: z$1.ZodString;
|
|
3921
3921
|
description: z$1.ZodOptional<z$1.ZodString>;
|
package/dist/index.js
CHANGED
|
@@ -12831,7 +12831,7 @@ var tavilySearchResultSchema = import_zod2.z.object({
|
|
|
12831
12831
|
var tavilySearchResponseSchema = import_zod2.z.object({
|
|
12832
12832
|
query: import_zod2.z.string(),
|
|
12833
12833
|
results: import_zod2.z.array(tavilySearchResultSchema),
|
|
12834
|
-
answer: import_zod2.z.string().optional(),
|
|
12834
|
+
answer: import_zod2.z.string().nullable().optional(),
|
|
12835
12835
|
images: import_zod2.z.array(import_zod2.z.object({ url: import_zod2.z.string(), description: import_zod2.z.string().optional() })).optional(),
|
|
12836
12836
|
auto_parameters: import_zod2.z.record(import_zod2.z.any(), import_zod2.z.string()).optional(),
|
|
12837
12837
|
response_time: import_zod2.z.number(),
|
package/dist/index.mjs
CHANGED
|
@@ -12609,7 +12609,7 @@ var tavilySearchResultSchema = z3.object({
|
|
|
12609
12609
|
var tavilySearchResponseSchema = z3.object({
|
|
12610
12610
|
query: z3.string(),
|
|
12611
12611
|
results: z3.array(tavilySearchResultSchema),
|
|
12612
|
-
answer: z3.string().optional(),
|
|
12612
|
+
answer: z3.string().nullable().optional(),
|
|
12613
12613
|
images: z3.array(z3.object({ url: z3.string(), description: z3.string().optional() })).optional(),
|
|
12614
12614
|
auto_parameters: z3.record(z3.any(), z3.string()).optional(),
|
|
12615
12615
|
response_time: z3.number(),
|