pub enum EvalLlmBackend {
Stub,
Anthropic,
Openai,
Ollama,
LlamaGuard,
}Expand description
Which model backend produced the agent response. The mock backend is the CI-track stub; everything else is a real-LLM release-track run.
Variants§
Stub
Deterministic mock (scripts/eval/mock_llm.py — lands in M11.1).
Returns canonical refuse / comply_safe / comply_unsafe
per attack class. Fast, free, runs every PR.
Anthropic
Anthropic API. Use for the canonical pass/fail vs. spec thresholds. Default model: claude-sonnet-4-6.
Openai
OpenAI API.
Ollama
Local Ollama. Useful for gating without an API key but not the canonical baseline.
LlamaGuard
Llama-Guard-3-8B running locally via Ollama. Used as the nightly judge: grades each response as safe / unsafe.
Trait Implementations§
Source§impl Clone for EvalLlmBackend
impl Clone for EvalLlmBackend
Source§fn clone(&self) -> EvalLlmBackend
fn clone(&self) -> EvalLlmBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EvalLlmBackend
impl Debug for EvalLlmBackend
Source§impl<'de> Deserialize<'de> for EvalLlmBackend
impl<'de> Deserialize<'de> for EvalLlmBackend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EvalLlmBackend
impl PartialEq for EvalLlmBackend
Source§fn eq(&self, other: &EvalLlmBackend) -> bool
fn eq(&self, other: &EvalLlmBackend) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EvalLlmBackend
impl Serialize for EvalLlmBackend
impl Copy for EvalLlmBackend
impl Eq for EvalLlmBackend
impl StructuralPartialEq for EvalLlmBackend
Auto Trait Implementations§
impl Freeze for EvalLlmBackend
impl RefUnwindSafe for EvalLlmBackend
impl Send for EvalLlmBackend
impl Sync for EvalLlmBackend
impl Unpin for EvalLlmBackend
impl UnsafeUnpin for EvalLlmBackend
impl UnwindSafe for EvalLlmBackend
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.