@@ -239,7 +239,7 @@ export class AgentToolExecutorService implements IAgentToolExecutorService {
239239 candidates . push (
240240 nextTimed . then (
241241 ( result ) : ToolExecutionStreamEvent => ( { type : 'timed' , result } ) ,
242- ( error ) : ToolExecutionStreamEvent => ( { type : 'timedRejected' , error } ) ,
242+ ( error ) : ToolExecutionStreamEvent => ( { type : 'timedRejected' , reason : error } ) ,
243243 ) ,
244244 ) ;
245245 }
@@ -269,7 +269,7 @@ export class AgentToolExecutorService implements IAgentToolExecutorService {
269269 options ,
270270 ) . then (
271271 ( value ) : SettledToolExecutionResult => ( { status : 'fulfilled' , value } ) ,
272- ( error ) : SettledToolExecutionResult => ( { status : 'rejected' , error } ) ,
272+ ( error ) : SettledToolExecutionResult => ( { status : 'rejected' , reason : error } ) ,
273273 ) ;
274274 finalizations . add ( finalization ) ;
275275 nextTimed = timedResults . next ( ) ;
@@ -506,7 +506,7 @@ export class AgentToolExecutorService implements IAgentToolExecutorService {
506506 index ,
507507 pendingResult . then (
508508 ( value ) : SettledTimedToolResult => ( { status : 'fulfilled' , value } ) ,
509- ( error ) : SettledTimedToolResult => ( { status : 'rejected' , index, error } ) ,
509+ ( error ) : SettledTimedToolResult => ( { status : 'rejected' , index, reason : error } ) ,
510510 ) ,
511511 ) ;
512512 }
0 commit comments