pub struct RealAgentAvailabilityProbe;Expand description
Machine-scoped provider discovery through the concrete adapter registry.
Trait Implementations§
Source§impl AgentAvailabilityProbe for RealAgentAvailabilityProbe
impl AgentAvailabilityProbe for RealAgentAvailabilityProbe
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
Self: 'async_trait,
'life0: 'async_trait,
fn native_harness_models<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<HarnessModelOption>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: '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: ChatGptSignInUrlHandler,
) -> Pin<Box<dyn Future<Output = Result<ChatGptSignInOutcome, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sign_in_chatgpt<'life0, 'async_trait>(
&'life0 self,
on_url: ChatGptSignInUrlHandler,
) -> Pin<Box<dyn Future<Output = Result<ChatGptSignInOutcome, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: '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 moreSource§fn save_harness_api_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
provider: &'life1 str,
api_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save_harness_api_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
provider: &'life1 str,
api_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Stores
api_key as the key harness models of provider, such as
kimi, use from now on, replacing a stored one. Probes without
harness discovery do not support it. Read moreAuto Trait Implementations§
impl Forget for RealAgentAvailabilityProbe
impl Freeze for RealAgentAvailabilityProbe
impl Move for RealAgentAvailabilityProbe
impl RefUnwindSafe for RealAgentAvailabilityProbe
impl Send for RealAgentAvailabilityProbe
impl Sync for RealAgentAvailabilityProbe
impl Unpin for RealAgentAvailabilityProbe
impl UnsafeUnpin for RealAgentAvailabilityProbe
impl UnwindSafe for RealAgentAvailabilityProbe
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 more