diff options
| author | Tommaso Sciortino <[email protected]> | 2025-07-07 23:48:44 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-08 06:48:44 +0000 |
| commit | 4dab31f1c8f0f4025c5d6a81c1b64f711e066756 (patch) | |
| tree | 3db882e191862e4c24e5653167a756145b567759 /packages/core/src/tools/tools.ts | |
| parent | 137ffec3f6fe035b7edcb478e6c44e66fa593839 (diff) | |
Improve Function Call argument validation and typing (#2881)
Co-authored-by: N. Taylor Mullen <[email protected]>
Diffstat (limited to 'packages/core/src/tools/tools.ts')
| -rw-r--r-- | packages/core/src/tools/tools.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/core/src/tools/tools.ts b/packages/core/src/tools/tools.ts index cff969f8..5347caa0 100644 --- a/packages/core/src/tools/tools.ts +++ b/packages/core/src/tools/tools.ts @@ -103,7 +103,7 @@ export abstract class BaseTool< readonly name: string, readonly displayName: string, readonly description: string, - readonly parameterSchema: Record<string, unknown>, + readonly parameterSchema: Schema, readonly isOutputMarkdown: boolean = true, readonly canUpdateOutput: boolean = false, ) {} @@ -115,7 +115,7 @@ export abstract class BaseTool< return { name: this.name, description: this.description, - parameters: this.parameterSchema as Schema, + parameters: this.parameterSchema, }; } |
