File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/ai/src/tool-sets Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11import { z } from "zod" ;
22import { configurablePropsToZod } from "../configurablePropsToZod" ;
33import { pd } from "../lib/pd-client" ;
4- import { Account , V1Component } from "@pipedream/sdk" ;
4+ import {
5+ Account , V1Component ,
6+ } from "@pipedream/sdk" ;
57import { componentAppKey } from "../lib/componentAppKey" ;
68
79type Tool = {
810 name : string ;
911 description ?: string ;
1012 schema : z . ZodObject < z . ZodRawShape > ;
11- execute : ( args : any ) => Promise < any > ;
13+ execute : ( args : Record < string , unknown > ) => Promise < unknown > ;
1214} ;
1315
1416export class CoreTools {
@@ -41,7 +43,7 @@ export class CoreTools {
4143 return this . tools . find ( ( tool ) => tool . name === name ) ;
4244 }
4345
44- async executeTool ( component : V1Component , args : any ) {
46+ async executeTool ( component : V1Component , args : Record < string , unknown > ) {
4547 const appKey = componentAppKey ( component . configurable_props ) ;
4648
4749 if ( ! appKey ) {
You can’t perform that action at this time.
0 commit comments