Skip to content

Commit 8070b9a

Browse files
committed
Add tool name to PrintModeToolResult
1 parent 180eb68 commit 8070b9a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

backend/src/tools/tool-executor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
})

common/src/types/print-mode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export type PrintModeToolCall = z.infer<typeof printModeToolCallSchema>
3737
export 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
})

0 commit comments

Comments
 (0)