varimageToVideo=RunwayModelSchema.Lookup("gen4_turbo");varmultiEndpoint=RunwayModelSchema.Lookup("veo3.1_fast");vargptImage=RunwayModelSchema.Lookup("gpt_image_2");varwithDash=RunwayModelSchema.Lookup("gen4-turbo");varunknown=RunwayModelSchema.Lookup("definitely_not_a_runway_model");varknown=RunwayModelSchema.KnownModelIds().ToList();// EnsureModelSupportsEndpoint catches mismatches against the spec.varrejection=Action(()=>RunwayModelSchema.EnsureModelSupportsEndpoint("gpt_image_2","text_to_video"));// Correct pairing passes silently.Action(()=>RunwayModelSchema.EnsureModelSupportsEndpoint("gpt_image_2","text_to_image"))// Unknown models are allowed through (so brand-new spec entries work without a CLI release).Action(()=>RunwayModelSchema.EnsureModelSupportsEndpoint("future_model_id","text_to_image"))// EnsureRequiredParametersProvided complains when a spec-required param is marked missing,// and translates spec property names to the CLI flag the user should add.varmissingPromptImage=Action(()=>RunwayModelSchema.EnsureRequiredParametersProvided("gen3a_turbo","image_to_video",newDictionary<string,bool>{["promptText"]=true,["promptImage"]=false,["ratio"]=true,}));.WithMessage("*requires promptImage (--image)*");// DescribeRequiredParam annotates known spec params with their CLI flag.// Unknown spec params fall through to bare name.// Spec param the caller didn't list is not enforced (CLI doesn't track every flag).Action(()=>RunwayModelSchema.EnsureRequiredParametersProvided("gen4_image_turbo","text_to_image",newDictionary<string,bool>{["promptText"]=true,// ratio + referenceImages omitted -> not enforced}))// All required flags satisfied -> passes silently.Action(()=>RunwayModelSchema.EnsureRequiredParametersProvided("veo3.1_fast","text_to_video",newDictionary<string,bool>{["promptText"]=true,["ratio"]=true,}))// Unknown model -> passes silently (brand-new spec entries don't break the CLI).Action(()=>RunwayModelSchema.EnsureRequiredParametersProvided("future_unknown_model","text_to_image",newDictionary<string,bool>()))staticActionAction(Actionaction)=>action;