File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -737,14 +737,13 @@ export class AgentBlockHandler implements BlockHandler {
737737
738738 private formatToolCall ( tc : any ) {
739739 return {
740+ ...tc ,
740741 name : this . stripCustomToolPrefix ( tc . name ) ,
741742 startTime : tc . startTime ,
742743 endTime : tc . endTime ,
743744 duration : tc . duration ,
744- arguments : tc . arguments || tc . input ,
745- result : tc . result || tc . output ,
746- // Don't spread the original object to avoid duplication
747- // Only include the fields we actually need
745+ input : tc . arguments || tc . input ,
746+ output : tc . result || tc . output ,
748747 }
749748 }
750749
Original file line number Diff line number Diff line change @@ -175,8 +175,8 @@ export function buildTraceSpans(result: ExecutionResult): {
175175 startTime : tc . startTime || log . startedAt ,
176176 endTime : tc . endTime || log . endedAt ,
177177 status : tc . error ? 'error' : 'success' ,
178- input : tc . arguments ,
179- output : tc . result ,
178+ input : tc . arguments || tc . input ,
179+ output : tc . result || tc . output ,
180180 error : tc . error ,
181181 }
182182 } catch ( tcError ) {
You can’t perform that action at this time.
0 commit comments