We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95cc59d commit c8bd2cbCopy full SHA for c8bd2cb
1 file changed
common/src/tools/list.ts
@@ -63,7 +63,7 @@ export const $toolParams = {
63
[K in ToolName]: $ToolParams<K>
64
}
65
66
-// Tool call from LLM
+// Tool call from LLM after parsing
67
export type CodebuffToolCall<T extends ToolName = ToolName> = {
68
[K in ToolName]: {
69
toolName: K
@@ -129,6 +129,10 @@ export const clientToolNames = clientToolCallSchema.def.options.map(
129
130
export type ClientToolCall<T extends ClientToolName = ClientToolName> = z.infer<
131
typeof clientToolCallSchema
132
-> & { toolName: T } & Omit<ToolCallPart, 'type'>
+> &
133
+ Pick<
134
+ ToolCallPart,
135
+ 'toolCallId' | 'toolName' | 'input' | 'providerOptions'
136
+ > & { toolName: T }
137
138
export type PublishedClientToolName = ClientToolName & PublishedToolName
0 commit comments