File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
apps/sim/executor/handlers/agent Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1070,19 +1070,20 @@ export class AgentBlockHandler implements BlockHandler {
10701070 private processStandardResponse ( result : any ) : BlockOutput {
10711071 return {
10721072 content : result . content ,
1073- model : result . model ,
10741073 ...this . createResponseMetadata ( result ) ,
10751074 ...( result . interactionId && { interactionId : result . interactionId } ) ,
10761075 }
10771076 }
10781077
10791078 private createResponseMetadata ( result : {
1079+ model ?: string
10801080 tokens ?: { input ?: number ; output ?: number ; total ?: number }
10811081 toolCalls ?: Array < any >
10821082 timing ?: any
10831083 cost ?: any
10841084 } ) {
10851085 return {
1086+ model : result . model ,
10861087 tokens : result . tokens || {
10871088 input : DEFAULTS . TOKENS . PROMPT ,
10881089 output : DEFAULTS . TOKENS . COMPLETION ,
You can’t perform that action at this time.
0 commit comments