pub enum LiveModeError {
FlagNotSet,
EnvNotSet,
NoProviderKey,
FeatureNotCompiled,
ProviderConstruction(String),
}Expand description
Why check_live_mode refused to enter live mode, or why
resolve_live_provider (private: the runner’s own internal resolution
step) could not build a real provider once the gate passed (D-35). Never
converted into an implicit fallback to scripted mocks – every variant
here is surfaced to the caller as a refusal.
Variants§
FlagNotSet
--live (or the equivalent RunOptions::live) was not set.
EnvNotSet
PALADIN_EVAL_LIVE_ENV is unset or blank.
NoProviderKey
No provider compiled into this build of paladin-eval has a
configured credential (ADR-0012): paladin_llm::provider_factory:: LlmProviderFactory::get_default_provider() returned None.
FeatureNotCompiled
The gate passed, but this build of paladin-eval was not compiled
with its own live feature (which enables real paladin-llm
provider adapters) – refuses rather than silently falling back to a
scripted mock.
ProviderConstruction(String)
The gate passed and the live feature is compiled in, but
constructing the resolved provider adapter itself failed.
Trait Implementations§
Source§impl Debug for LiveModeError
impl Debug for LiveModeError
Source§impl Display for LiveModeError
impl Display for LiveModeError
Source§impl Error for LiveModeError
impl Error for LiveModeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<LiveModeError> for RunnerError
impl From<LiveModeError> for RunnerError
Source§fn from(source: LiveModeError) -> Self
fn from(source: LiveModeError) -> Self
Auto Trait Implementations§
impl Forget for LiveModeError
impl Freeze for LiveModeError
impl RefUnwindSafe for LiveModeError
impl Send for LiveModeError
impl Sync for LiveModeError
impl Unpin for LiveModeError
impl UnsafeUnpin for LiveModeError
impl UnwindSafe for LiveModeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more