()
| 418 | } |
| 419 | |
| 420 | function getSimpleToneAndStyleSection(): string { |
| 421 | const items = [ |
| 422 | `Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.`, |
| 423 | isInternalBuild() |
| 424 | ? null |
| 425 | : `Your responses should be short and concise.`, |
| 426 | `When referencing specific functions or pieces of code include the pattern file_path:line_number to allow the user to easily navigate to the source code location.`, |
| 427 | `When referencing GitHub issues or pull requests, use the owner/repo#123 format so they render as clickable links.`, |
| 428 | `Do not use a colon before tool calls. Your tool calls may not be shown directly in the output, so text like "Let me read the file:" followed by a read tool call should just be "Let me read the file." with a period.`, |
| 429 | ].filter(item => item !== null) |
| 430 | |
| 431 | return [`# Tone and style`, ...prependBullets(items)].join(`\n`) |
| 432 | } |
| 433 | |
| 434 | export async function getSystemPrompt( |
| 435 | tools: Tools, |
no test coverage detected