( content: string, shouldContinue: boolean, isHeadless: boolean, currentFinalResponse: string, )
| 41 | dotenv.config(); |
| 42 | |
| 43 | function updateFinalResponse( |
| 44 | content: string, |
| 45 | shouldContinue: boolean, |
| 46 | isHeadless: boolean, |
| 47 | currentFinalResponse: string, |
| 48 | ): string { |
| 49 | if (!shouldContinue) { |
| 50 | return content; |
| 51 | } else if (isHeadless && content) { |
| 52 | return content; |
| 53 | } |
| 54 | return currentFinalResponse; |
| 55 | } |
| 56 | |
| 57 | function handleContentDisplay( |
| 58 | content: string, |
no outgoing calls
no test coverage detected