(p: ToolProps<typeof QuestionTool>)
| 416 | } |
| 417 | |
| 418 | function runQuestion(p: ToolProps<typeof QuestionTool>): ToolInline { |
| 419 | const total = list(p.frame.input.questions).length |
| 420 | return { |
| 421 | icon: "→", |
| 422 | title: `Asked ${total} question${total === 1 ? "" : "s"}`, |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | function runInvalid(p: ToolProps<typeof InvalidTool>): ToolInline { |
| 427 | return { |