Skip to content

Commit cf59fe8

Browse files
committed
sdk: await tool result
1 parent 68ea2bc commit cf59fe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import {
1717
import { MAX_AGENT_STEPS_DEFAULT } from '../../common/src/constants/agents'
1818
import { API_KEY_ENV_VAR } from '../../common/src/old-constants'
1919
import { toolNames } from '../../common/src/tools/constants'
20+
import type { PublishedClientToolName } from '../../common/src/tools/list'
2021
import {
2122
clientToolCallSchema,
2223
type ClientToolCall,
2324
type ClientToolName,
2425
type CodebuffToolOutput,
25-
PublishedClientToolName,
2626
} from '../../common/src/tools/list'
2727

2828
import type { CustomToolDefinition } from './custom-tool'
@@ -325,7 +325,7 @@ export class CodebuffClient {
325325
`Custom tool handler not found for user input ID ${action.userInputId}`,
326326
)
327327
}
328-
return customToolHandler(action)
328+
return await customToolHandler(action)
329329
}
330330

331331
try {

0 commit comments

Comments
 (0)