pub struct SearchEchoLlmClient { /* private fields */ }Expand description
A deterministic, scripted InferenceAdapter exercising the engineer’s
search_code tool (DOC-39 Slice B’s mandatory real-wire e2e proof that
Event::SearchPerformed.hits carries real per-hit path/score data, not
just a count).
Why: EchoLlmClient’s script only ever calls bash, so it cannot drive
search_code at all. This client’s fixed script is otherwise identical
in shape (delegate once, one tool call, two stops) so it composes with
the same daemon-driving harness tests/task_e2e.rs already uses.
What: an atomic cursor over a fixed 4-response script:
- PM calls
delegate_to_agent(python-engineer, ...). - Engineer calls
search_code(query="where does auth live", mode="semantic"). - Engineer stops with final text.
- PM stops with final text.
Running past the script’s end returns an InferenceError rather than
panicking, mirroring EchoLlmClient.
Test: task::mock_llm::tests::search_script_drives_full_delegation_flow;
exercised end-to-end (as a real subprocess, against a fake trusty-search
MCP binary) by tests/search_hits_e2e.rs.
Implementations§
Trait Implementations§
Source§impl Default for SearchEchoLlmClient
impl Default for SearchEchoLlmClient
Source§impl InferenceAdapter for SearchEchoLlmClient
impl InferenceAdapter for SearchEchoLlmClient
Source§fn capabilities(&self) -> &ProviderCapabilities
fn capabilities(&self) -> &ProviderCapabilities
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,
Source§fn capabilities_for(&self, model: &str) -> &ProviderCapabilities
fn capabilities_for(&self, model: &str) -> &ProviderCapabilities
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,
Source§fn map_tool_choice(&self, choice: ToolChoice) -> Value
fn map_tool_choice(&self, choice: ToolChoice) -> Value
ToolChoice into this provider’s wire JSON. Read moreSource§fn supports_native_tools(&self) -> bool
fn supports_native_tools(&self) -> bool
Source§fn supports_prompt_caching(&self) -> bool
fn supports_prompt_caching(&self) -> bool
Source§fn supports_structured_output(&self) -> bool
fn supports_structured_output(&self) -> bool
Source§fn wants_detailed_usage(&self) -> bool
fn wants_detailed_usage(&self) -> bool
usage: {"include": true} directive). Read moreAuto Trait Implementations§
impl !Freeze for SearchEchoLlmClient
impl RefUnwindSafe for SearchEchoLlmClient
impl Send for SearchEchoLlmClient
impl Sync for SearchEchoLlmClient
impl Unpin for SearchEchoLlmClient
impl UnsafeUnpin for SearchEchoLlmClient
impl UnwindSafe for SearchEchoLlmClient
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
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> ⓘ
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> ⓘ
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