( toolName: string, classifierModel: string, )
| 286 | * Tells the agent to wait and retry, and suggests working on other tasks. |
| 287 | */ |
| 288 | export function buildClassifierUnavailableMessage( |
| 289 | toolName: string, |
| 290 | classifierModel: string, |
| 291 | ): string { |
| 292 | return ( |
| 293 | `${classifierModel} is temporarily unavailable, so auto mode cannot determine the safety of ${toolName} right now. ` + |
| 294 | `Wait briefly and then try this action again. ` + |
| 295 | `If it keeps failing, continue with other tasks that don't require this action and come back to it later. ` + |
| 296 | `Note: reading files, searching code, and other read-only operations do not require the classifier and can still be used.` |
| 297 | ) |
| 298 | } |
| 299 | |
| 300 | export const SYNTHETIC_MODEL = '<synthetic>' |
| 301 |
no outgoing calls
no test coverage detected