(readonly reason: 'unreachable' | 'http' | 'malformed', message: string)
| 136 | /** A request that did not produce an answer, with the reason a reader can act on. */ |
| 137 | export class ChatError extends Error { |
| 138 | constructor(readonly reason: 'unreachable' | 'http' | 'malformed', message: string) { |
| 139 | super(message); |
| 140 | this.name = 'ChatError'; |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | function asRecord(value: unknown): Record<string, unknown> { |
nothing calls this directly
no outgoing calls
no test coverage detected