@iqai/adk 0.1.18 → 0.1.19
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 +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -870,7 +870,7 @@ interface CreateToolConfig<T extends Record<string, any> = Record<string, never>
|
|
|
870
870
|
/** Zod schema for validating tool arguments (optional) */
|
|
871
871
|
schema?: z.ZodSchema<T>;
|
|
872
872
|
/** The function to execute (can be sync or async) */
|
|
873
|
-
fn: (args: T, context
|
|
873
|
+
fn: (args: T, context: ToolContext) => any;
|
|
874
874
|
/** Whether the tool is a long running operation */
|
|
875
875
|
isLongRunning?: boolean;
|
|
876
876
|
/** Whether the tool execution should be retried on failure */
|
|
@@ -889,7 +889,7 @@ interface CreateToolConfigWithSchema<T extends Record<string, any>> {
|
|
|
889
889
|
/** Zod schema for validating tool arguments */
|
|
890
890
|
schema: z.ZodSchema<T>;
|
|
891
891
|
/** The function to execute (can be sync or async) */
|
|
892
|
-
fn: (args: T, context
|
|
892
|
+
fn: (args: T, context: ToolContext) => any;
|
|
893
893
|
/** Whether the tool is a long running operation */
|
|
894
894
|
isLongRunning?: boolean;
|
|
895
895
|
/** Whether the tool execution should be retried on failure */
|
package/dist/index.d.ts
CHANGED
|
@@ -870,7 +870,7 @@ interface CreateToolConfig<T extends Record<string, any> = Record<string, never>
|
|
|
870
870
|
/** Zod schema for validating tool arguments (optional) */
|
|
871
871
|
schema?: z.ZodSchema<T>;
|
|
872
872
|
/** The function to execute (can be sync or async) */
|
|
873
|
-
fn: (args: T, context
|
|
873
|
+
fn: (args: T, context: ToolContext) => any;
|
|
874
874
|
/** Whether the tool is a long running operation */
|
|
875
875
|
isLongRunning?: boolean;
|
|
876
876
|
/** Whether the tool execution should be retried on failure */
|
|
@@ -889,7 +889,7 @@ interface CreateToolConfigWithSchema<T extends Record<string, any>> {
|
|
|
889
889
|
/** Zod schema for validating tool arguments */
|
|
890
890
|
schema: z.ZodSchema<T>;
|
|
891
891
|
/** The function to execute (can be sync or async) */
|
|
892
|
-
fn: (args: T, context
|
|
892
|
+
fn: (args: T, context: ToolContext) => any;
|
|
893
893
|
/** Whether the tool is a long running operation */
|
|
894
894
|
isLongRunning?: boolean;
|
|
895
895
|
/** Whether the tool execution should be retried on failure */
|