@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iqai/adk
2
2
 
3
+ ## 0.1.19
4
+
5
+ ### Patch Changes
6
+
7
+ - a3956ec: Updates create tool type to make context required in callback param
8
+
3
9
  ## 0.1.18
4
10
 
5
11
  ### Patch Changes
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?: ToolContext) => any;
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?: ToolContext) => any;
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?: ToolContext) => any;
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?: ToolContext) => any;
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iqai/adk",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Agent Development Kit for TypeScript with multi-provider LLM support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",