artifactize-core 0.27.0

The library behind artifactize: Artifacts, evals, reviews, the monitor and review models, and the shared operations every interface calls.
Documentation
//! Translation from the harness into the engine's saved failure code.

pub use artifactize_harness::error::{Code, Failure};

/// An Agent failure's code as its saved `errorCode`.
impl From<Code> for crate::types::FailureCode {
    fn from(code: Code) -> Self {
        match code {
            Code::Authentication => Self::Authentication,
            Code::Quota => Self::Quota,
            Code::RateLimit => Self::RateLimit,
            Code::Transient => Self::Transient,
            Code::Timeout => Self::Timeout,
            Code::Cancelled => Self::Cancelled,
            Code::ProviderBudgetExceeded => Self::ProviderBudgetExceeded,
            Code::InvalidResult => Self::InvalidResult,
            Code::DegenerateOutput => Self::DegenerateOutput,
            Code::ProviderError => Self::ProviderError,
            Code::AgentError => Self::AgentError,
        }
    }
}