pub struct SoakLoadEchoLlmClient { /* private fields */ }Expand description
A deterministic, offline InferenceAdapter driving load-realistic
per-turn payload sizes for the compression-effectiveness follow-up soak
(epic #3866).
Why/What: see module docs. Identical control flow to
super::mock_llm_soak::SoakEchoLlmClient — only the argument sizes
differ.
Test: tests::soak_load_script_ends_in_a_resumable_stop_and_sums_past_the_default_cap.
Implementations§
Trait Implementations§
Source§impl Default for SoakLoadEchoLlmClient
impl Default for SoakLoadEchoLlmClient
Source§impl InferenceAdapter for SoakLoadEchoLlmClient
impl InferenceAdapter for SoakLoadEchoLlmClient
Source§fn capabilities(&self) -> &ProviderCapabilities
fn capabilities(&self) -> &ProviderCapabilities
The capability descriptor for this adapter’s provider. Read more
Source§fn chat<'life0, 'life1, 'async_trait>(
&'life0 self,
_req: &'life1 ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse, InferenceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn chat<'life0, 'life1, 'async_trait>(
&'life0 self,
_req: &'life1 ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse, InferenceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Issue one chat/completions call. Read more
Source§fn capabilities_for(&self, model: &str) -> &ProviderCapabilities
fn capabilities_for(&self, model: &str) -> &ProviderCapabilities
The capability descriptor for the provider that would actually serve
model. Read moreSource§fn chat_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<ChatStreamEvent, InferenceError>> + Send>>, InferenceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn chat_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<ChatStreamEvent, InferenceError>> + Send>>, InferenceError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Issue one chat/completions call as an incremental token stream. Read more
Source§fn map_tool_choice(&self, choice: ToolChoice) -> Value
fn map_tool_choice(&self, choice: ToolChoice) -> Value
Translate a neutral
ToolChoice into this provider’s wire JSON. Read moreSource§fn supports_native_tools(&self) -> bool
fn supports_native_tools(&self) -> bool
Whether the provider supports native function-calling. Read more
Source§fn supports_prompt_caching(&self) -> bool
fn supports_prompt_caching(&self) -> bool
Whether the provider honours Anthropic-style prompt-cache breakpoints. Read more
Source§fn supports_structured_output(&self) -> bool
fn supports_structured_output(&self) -> bool
Whether the provider supports structured / JSON-schema output. Read more
Source§fn wants_detailed_usage(&self) -> bool
fn wants_detailed_usage(&self) -> bool
Whether to request detailed usage accounting (OpenRouter’s
usage: {"include": true} directive). Read moreAuto Trait Implementations§
impl !Freeze for SoakLoadEchoLlmClient
impl RefUnwindSafe for SoakLoadEchoLlmClient
impl Send for SoakLoadEchoLlmClient
impl Sync for SoakLoadEchoLlmClient
impl Unpin for SoakLoadEchoLlmClient
impl UnsafeUnpin for SoakLoadEchoLlmClient
impl UnwindSafe for SoakLoadEchoLlmClient
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> 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 moreCreates a shared type from an unshared type.