File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ export function executeToolCall<T extends ToolName>(
283283 onResponseChunk ( {
284284 type : 'tool_result' ,
285285 toolCallId : toolResult . toolCallId ,
286+ toolName : toolResult . toolName ,
286287 output : toolResult . output ,
287288 } )
288289
@@ -508,6 +509,7 @@ export async function executeCustomToolCall(
508509
509510 onResponseChunk ( {
510511 type : 'tool_result' ,
512+ toolName : toolResult . toolName ,
511513 toolCallId : toolResult . toolCallId ,
512514 output : toolResult . output ,
513515 } )
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export type PrintModeToolCall = z.infer<typeof printModeToolCallSchema>
3737export const printModeToolResultSchema = z . object ( {
3838 type : z . literal ( 'tool_result' ) ,
3939 toolCallId : z . string ( ) ,
40+ toolName : z . string ( ) ,
4041 output : toolResultOutputSchema . array ( ) ,
4142 parentAgentId : z . string ( ) . optional ( ) ,
4243} )
You can’t perform that action at this time.
0 commit comments