pub struct AgentModelProviderPresence {
pub openai_key_present: bool,
pub openai_base_present: bool,
pub ollama_host_present: bool,
}Expand description
Safe provider-presence facts for model-default probing.
The probe stores only whether an environment-backed provider is present. It never stores or emits raw environment values.
Fields§
§openai_key_present: boolWhether OPENAI_API_KEY is present.
openai_base_present: boolWhether OPENAI_BASE_URL is present.
ollama_host_present: boolWhether OLLAMA_HOST is present.
Implementations§
Source§impl AgentModelProviderPresence
impl AgentModelProviderPresence
Sourcepub fn from_current_env() -> Self
pub fn from_current_env() -> Self
Captures provider presence from the current process environment.
Trait Implementations§
Source§impl Clone for AgentModelProviderPresence
impl Clone for AgentModelProviderPresence
Source§fn clone(&self) -> AgentModelProviderPresence
fn clone(&self) -> AgentModelProviderPresence
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 moreimpl Copy for AgentModelProviderPresence
Source§impl Debug for AgentModelProviderPresence
impl Debug for AgentModelProviderPresence
Source§impl Default for AgentModelProviderPresence
impl Default for AgentModelProviderPresence
Source§fn default() -> AgentModelProviderPresence
fn default() -> AgentModelProviderPresence
Returns the “default value” for a type. Read more
impl Eq for AgentModelProviderPresence
impl StructuralPartialEq for AgentModelProviderPresence
Auto Trait Implementations§
impl Freeze for AgentModelProviderPresence
impl RefUnwindSafe for AgentModelProviderPresence
impl Send for AgentModelProviderPresence
impl Sync for AgentModelProviderPresence
impl Unpin for AgentModelProviderPresence
impl UnsafeUnpin for AgentModelProviderPresence
impl UnwindSafe for AgentModelProviderPresence
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.