pub fn validate_opencode_agents(
resolved: &ResolvedDrainConfig,
catalog: &ApiCatalog,
) -> Result<(), OpenCodeValidationError>Expand description
Validate all OpenCode agent references in resolved drain bindings.
This function checks that all opencode/provider/model references in the
configured drain bindings have valid providers and models in the API catalog.
Returns Ok(()) if all references are valid, or Err(String) with a
user-friendly error message if any validation fails.
ยงErrors
Returns error if the operation fails.