Skip to main content

AgentAvailabilityProbe

Trait AgentAvailabilityProbe 

Source
pub trait AgentAvailabilityProbe: Send + Sync {
    // Required method
    fn available_agent_kinds(&self) -> Vec<AgentKind>;

    // Provided methods
    fn available_agent_clis(&self) -> Vec<AgentCliInfo> { ... }
    fn native_harness_default_model(&self) -> Option<AgentModel> { ... }
}
Expand description

Detects which provider CLIs are locally runnable on the current machine.

Required Methods§

Source

fn available_agent_kinds(&self) -> Vec<AgentKind>

Returns the agent kinds whose backing CLI executable is available.

Provided Methods§

Source

fn available_agent_clis(&self) -> Vec<AgentCliInfo>

Returns available agent CLI executables and their refreshed versions.

Source

fn native_harness_default_model(&self) -> Option<AgentModel>

Returns the first AgentKind::Harness model whose provider credentials are configured, or None when no provider is. Probes without credential discovery report none.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§