PostModelSwitchHookInput
Fires after the session's model changes. It carries the same fields as PreModelSwitchHookInput, with two more source values. See PostModelSwitch.
typescript
type PostModelSwitchHookInput = BaseHookInput & {
hook_event_name: "PostModelSwitch";
from_model: string;
to_model: string;
requested_model: string | null;
source: "command" | "picker" | "sdk" | "auto" | "resume";
context_tokens: number;
prompt_cache_warm: boolean;
cache_ttl: "5m" | "1h";
estimated_cache_write_usd: number;
pricing: "configured" | "catalog" | "default";
};