This commit is contained in:
Vikhyath Mondreti
2025-07-09 20:36:17 -07:00
parent 8aa86e0e9d
commit 717b4dd2ff
2 changed files with 5 additions and 6 deletions
@@ -737,14 +737,13 @@ export class AgentBlockHandler implements BlockHandler {
private formatToolCall(tc: any) {
return {
...tc,
name: this.stripCustomToolPrefix(tc.name),
startTime: tc.startTime,
endTime: tc.endTime,
duration: tc.duration,
arguments: tc.arguments || tc.input,
result: tc.result || tc.output,
// Don't spread the original object to avoid duplication
// Only include the fields we actually need
input: tc.arguments || tc.input,
output: tc.result || tc.output,
}
}
+2 -2
View File
@@ -175,8 +175,8 @@ export function buildTraceSpans(result: ExecutionResult): {
startTime: tc.startTime || log.startedAt,
endTime: tc.endTime || log.endedAt,
status: tc.error ? 'error' : 'success',
input: tc.arguments,
output: tc.result,
input: tc.arguments || tc.input,
output: tc.result || tc.output,
error: tc.error,
}
} catch (tcError) {