refactor(agents): remove outputFile from tool result events

Remove unused outputFile property from AgentToolResultEvent and its
associated test case. This property is not needed for agent tool
result handling.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
tanzhenxin 2026-03-17 14:29:02 +08:00
parent edd8388b27
commit 12293033b4
2 changed files with 0 additions and 19 deletions

View file

@ -331,24 +331,6 @@ describe('agentMessagesToHistoryItems — tool metadata', () => {
expect(group.tools[0]!.resultDisplay).toBe('file contents');
});
it('forwards outputFile from tool_result', () => {
const items = agentMessagesToHistoryItems(
[
toolCallMsg('c1', 'shell'),
toolResultMsg('c1', 'shell', {
success: true,
outputFile: '/tmp/output.txt',
}),
],
noApprovals,
);
const group = items[0] as Extract<
(typeof items)[0],
{ type: 'tool_group' }
>;
expect(group.tools[0]!.outputFile).toBe('/tmp/output.txt');
});
it('forwards renderOutputAsMarkdown from tool_call', () => {
const items = agentMessagesToHistoryItems(
[