Skip to content

Commit c80daf9

Browse files
committed
enable multiple custom tools
1 parent dae0c9d commit c80daf9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sdk/src/client.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ import {
1515
import { MAX_AGENT_STEPS_DEFAULT } from '../../common/src/constants/agents'
1616
import { API_KEY_ENV_VAR } from '../../common/src/old-constants'
1717
import { toolNames } from '../../common/src/tools/constants'
18-
1918
import {
2019
clientToolCallSchema,
2120
type ClientToolCall,
2221
type ClientToolName,
2322
type CodebuffToolOutput,
23+
PublishedClientToolName,
2424
} from '../../common/src/tools/list'
2525

2626
import type { CustomToolDefinition } from './custom-tool'
@@ -29,7 +29,6 @@ import type {
2929
PublishedToolName,
3030
ToolName,
3131
} from '../../common/src/tools/constants'
32-
import type { PublishedClientToolName } from '../../common/src/tools/list'
3332
import type {
3433
ToolResultOutput,
3534
ToolResultPart,
@@ -144,7 +143,7 @@ export class CodebuffClient {
144143
*
145144
* @returns A Promise that resolves to a RunState JSON object which you can pass to a subsequent run() call to continue the run. Use result.output to get the agent's output.
146145
*/
147-
public async run<A extends string = string, B = any, C = any>({
146+
public async run({
148147
agent,
149148
prompt,
150149
params,
@@ -167,7 +166,7 @@ export class CodebuffClient {
167166
projectFiles?: Record<string, string>
168167
knowledgeFiles?: Record<string, string>
169168
agentDefinitions?: AgentDefinition[]
170-
customToolDefinitions?: CustomToolDefinition<A, B, C>[]
169+
customToolDefinitions?: CustomToolDefinition[]
171170
maxAgentSteps?: number
172171
extraToolResults?: ToolResultPart[]
173172
}): Promise<RunState> {

0 commit comments

Comments
 (0)