pub struct StaticAgentAvailabilityProbe {
pub available_agent_kinds: Vec<AgentKind>,
}Expand description
Availability probe that returns one caller-provided snapshot.
Fields§
§available_agent_kinds: Vec<AgentKind>Agent kinds reported as available by the static probe.
Trait Implementations§
Source§impl AgentAvailabilityProbe for StaticAgentAvailabilityProbe
impl AgentAvailabilityProbe for StaticAgentAvailabilityProbe
Source§fn available_agent_kinds(&self) -> Vec<AgentKind>
fn available_agent_kinds(&self) -> Vec<AgentKind>
Returns the agent kinds whose backing CLI executable is available.
Source§fn available_agent_clis(&self) -> Vec<AgentCliInfo>
fn available_agent_clis(&self) -> Vec<AgentCliInfo>
Returns available agent CLI executables and their refreshed versions.
Source§fn native_harness_models<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<HarnessModelOption>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn native_harness_models<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<HarnessModelOption>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns the
AgentKind::Harness models a user can choose: models
the local OpenAI-compatible server serves, then the hosted catalog
models with their configuration status. Implementations bound every
network probe with short timeouts. Probes without harness discovery
report none.Source§fn sign_in_chatgpt<'life0, 'async_trait>(
&'life0 self,
_on_url: Box<dyn FnOnce(String) + Send>,
) -> Pin<Box<dyn Future<Output = Result<ChatGptSignInOutcome, String>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn sign_in_chatgpt<'life0, 'async_trait>(
&'life0 self,
_on_url: Box<dyn FnOnce(String) + Send>,
) -> Pin<Box<dyn Future<Output = Result<ChatGptSignInOutcome, String>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Runs the browser sign-in that lets
chatgpt/… harness models use
the user’s ChatGPT plan, passing its URL to on_url before
waiting for the browser callback. Probes without harness discovery
do not support it. Read moreAuto Trait Implementations§
impl Forget for StaticAgentAvailabilityProbe
impl Freeze for StaticAgentAvailabilityProbe
impl RefUnwindSafe for StaticAgentAvailabilityProbe
impl Send for StaticAgentAvailabilityProbe
impl Sync for StaticAgentAvailabilityProbe
impl Unpin for StaticAgentAvailabilityProbe
impl UnsafeUnpin for StaticAgentAvailabilityProbe
impl UnwindSafe for StaticAgentAvailabilityProbe
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.