( options: Pick<ResolveSlashCommandInput, 'isStreaming' | 'isCompacting'>, )
| 133 | } |
| 134 | |
| 135 | export function slashCommandBusyReason( |
| 136 | options: Pick<ResolveSlashCommandInput, 'isStreaming' | 'isCompacting'>, |
| 137 | ): SlashCommandBusyReason | undefined { |
| 138 | if (options.isStreaming) return 'streaming'; |
| 139 | if (options.isCompacting) return 'compacting'; |
| 140 | return undefined; |
| 141 | } |
| 142 | |
| 143 | export function slashBusyMessage( |
| 144 | commandName: string, |
no outgoing calls
no test coverage detected