File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ export async function sendMessage(request: SendMessageRequest): Promise<{
720720
721721 // Extract citations from StreamingExecution if available
722722 let citations : Array < { id : number ; title : string ; url : string ; similarity ?: number } > = [ ]
723-
723+
724724 if ( typeof response === 'object' && response && 'execution' in response ) {
725725 // This is a StreamingExecution - extract citations from tool calls
726726 const execution = ( response as any ) . execution
@@ -729,15 +729,15 @@ export async function sendMessage(request: SendMessageRequest): Promise<{
729729 hasToolResults : ! ! execution ?. toolResults ,
730730 toolResultsLength : execution ?. toolResults ?. length || 0 ,
731731 } )
732-
732+
733733 if ( execution ?. toolResults ) {
734734 for ( const toolResult of execution . toolResults ) {
735735 logger . info ( 'Processing tool result for citations' , {
736736 hasResult : ! ! toolResult ,
737737 resultKeys : toolResult && typeof toolResult === 'object' ? Object . keys ( toolResult ) : [ ] ,
738738 hasResultsArray : ! ! ( toolResult && typeof toolResult === 'object' && toolResult . results ) ,
739739 } )
740-
740+
741741 if ( toolResult && typeof toolResult === 'object' && toolResult . results ) {
742742 // Convert documentation search results to citations
743743 citations = toolResult . results . map ( ( result : any , index : number ) => ( {
You can’t perform that action at this time.
0 commit comments