pub fn require_field<T>( value: Option<T>, field: &str, tool_name: &str, ) -> Result<T>
Extract a required value from an Option<T>, with a consistent error message referencing the field name and tool/operation name.
Option<T>