mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
revert
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user