pub enum ProviderChoice {
Fireworks,
Anthropic,
}Expand description
The LLM backend used to grade a submission.
A closed enum, not a string, so an unknown provider is unrepresentable (§1.2).
Fireworks is the default, mirroring the R package.
Variants§
Fireworks
Fireworks (OpenAI-compatible chat completions). Reads FIREWORKS_API_KEY.
Anthropic
Anthropic (native messages API). Reads ANTHROPIC_API_KEY.
Implementations§
Source§impl ProviderChoice
impl ProviderChoice
Sourcepub fn key_var(self) -> &'static str
pub fn key_var(self) -> &'static str
The environment variable holding this provider’s API key.
The single source of truth for the key var, so the boundary guard and any “set your key” message name the same variable.
Sourcepub fn default_base_url(self) -> &'static str
pub fn default_base_url(self) -> &'static str
The provider’s default API base URL.
Fireworks is OpenAI-compatible, reached at its inference root; rig appends
the /chat/completions path. Overridable per request to point at a mock
server in tests (ADR-0006).
Sourcepub fn default_model(self) -> &'static str
pub fn default_model(self) -> &'static str
The default model id for this provider.
Fireworks matches the browser BYOK fallback (deepseek-v4-flash-0731 in
_extensions/blendtutor/assets/exercise-feedback.js / ADR-0016); the
legacy crates path (assets/shared/feedback.js) is known drift, migrated
separately. Anthropic uses a current Claude model. Model selection is not
yet configurable — a later slice can lift
these to a setting. This value is the single source for the smevals
config template (smevals_gen), so the runtime model and the generated
eval config cannot drift.
Trait Implementations§
Source§impl Clone for ProviderChoice
impl Clone for ProviderChoice
Source§fn clone(&self) -> ProviderChoice
fn clone(&self) -> ProviderChoice
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProviderChoice
impl Debug for ProviderChoice
Source§impl Default for ProviderChoice
impl Default for ProviderChoice
Source§fn default() -> ProviderChoice
fn default() -> ProviderChoice
Source§impl PartialEq for ProviderChoice
impl PartialEq for ProviderChoice
impl Copy for ProviderChoice
impl Eq for ProviderChoice
impl StructuralPartialEq for ProviderChoice
Auto Trait Implementations§
impl Freeze for ProviderChoice
impl RefUnwindSafe for ProviderChoice
impl Send for ProviderChoice
impl Sync for ProviderChoice
impl Unpin for ProviderChoice
impl UnwindSafe for ProviderChoice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.