Files
openclaw/src/agents/live-model-switch-error.ts
2026-05-01 21:33:13 +01:00

23 lines
690 B
TypeScript

type LiveSessionModelSelection = {
provider: string;
model: string;
authProfileId?: string;
authProfileIdSource?: "auto" | "user";
};
export class LiveSessionModelSwitchError extends Error {
provider: string;
model: string;
authProfileId?: string;
authProfileIdSource?: "auto" | "user";
constructor(selection: LiveSessionModelSelection) {
super(`Live session model switch requested: ${selection.provider}/${selection.model}`);
this.name = "LiveSessionModelSwitchError";
this.provider = selection.provider;
this.model = selection.model;
this.authProfileId = selection.authProfileId;
this.authProfileIdSource = selection.authProfileIdSource;
}
}