pub struct MissingAgentProvider;Expand description
The provider a TestEngine uses when no agent
backend was configured.
Every invocation fails with an explanation instead of reaching the Claude
CLI, so a forgotten with_mock_agent is a loud test failure, not a silent
network call.
§Examples
use ironflow_engine::testing::MissingAgentProvider;
// Usable anywhere an `AgentProvider` is expected, including as the inner
// provider of a `RecordReplayProvider` in replay mode.
let provider = MissingAgentProvider;
assert_eq!(format!("{provider:?}"), "MissingAgentProvider");Trait Implementations§
Source§impl AgentProvider for MissingAgentProvider
impl AgentProvider for MissingAgentProvider
Source§fn invoke<'a>(&'a self, _config: &'a AgentConfig) -> InvokeFuture<'a>
fn invoke<'a>(&'a self, _config: &'a AgentConfig) -> InvokeFuture<'a>
Execute a single agent invocation with the given configuration. Read more
Source§fn invoke_with_logs<'a>(
&'a self,
config: &'a AgentConfig,
log_sink: Arc<dyn LogSink>,
) -> Pin<Box<dyn Future<Output = Result<AgentOutput, AgentError>> + Send + 'a>>
fn invoke_with_logs<'a>( &'a self, config: &'a AgentConfig, log_sink: Arc<dyn LogSink>, ) -> Pin<Box<dyn Future<Output = Result<AgentOutput, AgentError>> + Send + 'a>>
Execute an agent invocation with real-time log streaming. Read more
Source§impl Clone for MissingAgentProvider
impl Clone for MissingAgentProvider
impl Copy for MissingAgentProvider
Source§impl Debug for MissingAgentProvider
impl Debug for MissingAgentProvider
Auto Trait Implementations§
impl Freeze for MissingAgentProvider
impl RefUnwindSafe for MissingAgentProvider
impl Send for MissingAgentProvider
impl Sync for MissingAgentProvider
impl Unpin for MissingAgentProvider
impl UnsafeUnpin for MissingAgentProvider
impl UnwindSafe for MissingAgentProvider
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