pub struct AgentHost;Expand description
The host every workspace-side backend probe runs against.
Trait Implementations§
Source§impl ProviderHost for AgentHost
impl ProviderHost for AgentHost
Source§fn http_client(&self, timeout: Duration) -> Result<Client, String>
fn http_client(&self, timeout: Duration) -> Result<Client, String>
A reqwest client with the NODE_EXTRA_CA_CERTS roots applied
and the caller’s timeout baked in.
Source§fn streaming_http_client(
&self,
connect_timeout: Duration,
idle_timeout: Duration,
) -> Result<Client, String>
fn streaming_http_client( &self, connect_timeout: Duration, idle_timeout: Duration, ) -> Result<Client, String>
The same client for a streamed response: the NODE_EXTRA_CA_CERTS
roots applied,
connect_timeout bounding the connect and the TLS
handshake, and idle_timeout bounding each read. The idle bound
covers the wait for the response headers and then resets on every
chunk; a streamed inference response has no known length, so the
total deadline ProviderHost::http_client bakes in would cut a
healthy long turn, while an idle bound still ends one whose
upstream has stopped producing bytes.Source§fn user_agent<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn user_agent<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
claude-code/<version>, resolved by one claude --version
shell-out per process and cached, off the async runtime via
spawn_blocking. Err preserves the probe’s UaProbe failure
class.Auto Trait Implementations§
impl Freeze for AgentHost
impl RefUnwindSafe for AgentHost
impl Send for AgentHost
impl Sync for AgentHost
impl Unpin for AgentHost
impl UnsafeUnpin for AgentHost
impl UnwindSafe for AgentHost
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