Skip to content

Commit 66e6b6f

Browse files
committed
fix: types
1 parent 70172e0 commit 66e6b6f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/ai/src/tool-sets/core.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import { z } from "zod";
22
import { configurablePropsToZod } from "../configurablePropsToZod";
33
import { pd } from "../lib/pd-client";
4-
import { Account, V1Component } from "@pipedream/sdk";
4+
import {
5+
Account, V1Component,
6+
} from "@pipedream/sdk";
57
import { componentAppKey } from "../lib/componentAppKey";
68

79
type 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

1416
export 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) {

0 commit comments

Comments
 (0)