Skip to content

Commit 717b4dd

Browse files
Vikhyath MondretiVikhyath Mondreti
authored andcommitted
revert
1 parent 8aa86e0 commit 717b4dd

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

apps/sim/executor/handlers/agent/agent-handler.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

apps/sim/lib/logs/trace-spans.ts

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

0 commit comments

Comments
 (0)