Skip to content

Commit b4104ac

Browse files
committed
fix types for custom tools
1 parent ab17e33 commit b4104ac

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@codebuff/sdk",
33
"private": false,
44
"access": "public",
5-
"version": "0.2.0",
5+
"version": "0.2.1",
66
"description": "Official SDK for Codebuff — AI coding agent & framework",
77
"license": "Apache-2.0",
88
"type": "module",

sdk/src/custom-tool.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import z from 'zod/v4'
1+
import { z } from 'zod/v4'
22

33
import type { ToolResultOutput } from '../../common/src/types/messages/content-part'
44
import type { JSONSchema } from 'zod/v4/core'
55

66
export type CustomToolDefinition<
77
N extends string = string,
8-
Args extends Record<string, unknown> = Record<string, unknown>,
9-
Input extends Record<string, unknown> = Record<string, unknown>,
8+
Args extends any = any,
9+
Input extends any = any,
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 extends Record<string, unknown>,
37-
Input extends Record<string, unknown>,
36+
Args extends any,
37+
Input extends any,
3838
Output extends ToolResultOutput[],
3939
>({
4040
toolName,

0 commit comments

Comments
 (0)