pub struct StubProvider;Expand description
A canned LlmProvider for wiring and tests.
Emits two text deltas, a usage tally, and an end-of-turn stop. No network, no credentials.
When STUB_TOOL_CALL_ENV is set, the first complete() of a turn
emits a synthetic tool call (id stub-call-1) for that tool name and
the caller’s function-calling loop drives the rest. Subsequent calls
in the same turn fall back to the EndTurn text path. Used by the
HITL resume loopback verification.
Trait Implementations§
Source§impl Clone for StubProvider
impl Clone for StubProvider
Source§fn clone(&self) -> StubProvider
fn clone(&self) -> StubProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StubProvider
Source§impl Default for StubProvider
impl Default for StubProvider
Source§fn default() -> StubProvider
fn default() -> StubProvider
Returns the “default value” for a type. Read more
Source§impl LlmProvider for StubProvider
impl LlmProvider for StubProvider
Source§type Error = DummyError
type Error = DummyError
The provider’s concrete error type. Bounded by
LlmError
(std::error::Error + Send + Sync + 'static).Auto Trait Implementations§
impl Freeze for StubProvider
impl RefUnwindSafe for StubProvider
impl Send for StubProvider
impl Sync for StubProvider
impl Unpin for StubProvider
impl UnsafeUnpin for StubProvider
impl UnwindSafe for StubProvider
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