(tools: Tools)
| 1272 | } |
| 1273 | |
| 1274 | function hasActionableTools(tools: Tools): boolean { |
| 1275 | return tools.some(tool => |
| 1276 | [ |
| 1277 | 'Bash', |
| 1278 | 'Read', |
| 1279 | 'Grep', |
| 1280 | 'Glob', |
| 1281 | 'LS', |
| 1282 | 'Edit', |
| 1283 | 'Write', |
| 1284 | 'NotebookRead', |
| 1285 | ].some(name => toolMatchesName(tool, name)), |
| 1286 | ) |
| 1287 | } |
| 1288 | |
| 1289 | export function inferInitialToolChoiceFromPrompt( |
| 1290 | prompt: string | Array<ContentBlockParam>, |
no test coverage detected