Skip to content

Commit b2eee58

Browse files
committed
Add JSDoc to RouterDecisionError
1 parent 6615f66 commit b2eee58

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extensions/copilot/src/platform/endpoint/node/routerDecisionFetcher.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ export interface RoutingContextSignals {
3838
prompt_char_count?: number;
3939
}
4040

41+
/**
42+
* Thrown when the router API returns a non-OK HTTP response.
43+
* Carries the parsed `errorCode` from the response body (e.g. `no_vision_models`)
44+
* so callers can classify the failure without string-matching the message.
45+
*/
4146
export class RouterDecisionError extends Error {
4247
override readonly name = 'RouterDecisionError';
4348
constructor(message: string, public readonly errorCode?: string) {

0 commit comments

Comments
 (0)