File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,10 @@ export async function callAgent(
7878 let content = "" ;
7979 let finishReason = "" ;
8080 let resultAgentId = "" ;
81- const toolResults : { toolCallId : string ; result : { error ?: string ; data ?: unknown } } [ ] = [ ] ;
81+ const toolResults : {
82+ toolCallId : string ;
83+ result : { error ?: string ; data ?: unknown } ;
84+ } [ ] = [ ] ;
8285
8386 for ( const line of lines ) {
8487 const prefix = line . substring ( 0 , 2 ) ;
@@ -123,7 +126,7 @@ export async function callAgent(
123126 toolResults : toolResults . map ( ( toolResult ) =>
124127 toolResult . result . error
125128 ? { error : toolResult . result . error }
126- : { data : toolResult . result . data }
129+ : { data : toolResult . result . data } ,
127130 ) ,
128131 messageId,
129132 finishReason,
You can’t perform that action at this time.
0 commit comments