Skip to content

Commit bf96858

Browse files
committed
fix types
1 parent 31abfc0 commit bf96858

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk/src/custom-tool.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type { JSONSchema } from 'zod/v4/core'
55

66
export type CustomToolDefinition<
77
N extends string = string,
8-
Args = unknown,
9-
Input = unknown,
8+
Args extends Record<string, unknown> = Record<string, unknown>,
9+
Input extends Record<string, unknown> = Record<string, unknown>,
1010
Output extends ToolResultOutput[] = ToolResultOutput[],
1111
> = {
1212
toolName: N
@@ -33,8 +33,8 @@ export type CustomToolDefinition<
3333
*/
3434
export function getCustomToolDefinition<
3535
ToolName extends string,
36-
Args,
37-
Input,
36+
Args extends Record<string, unknown>,
37+
Input extends Record<string, unknown>,
3838
Output extends ToolResultOutput[],
3939
>({
4040
toolName,

0 commit comments

Comments
 (0)