Skip to content

Commit 4b60bba

Browse files
committed
Lint
1 parent 4aaa68d commit 4b60bba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/sim/lib/copilot/service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) => ({

0 commit comments

Comments
 (0)