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§fn release_run<'a>(
&'a self,
run_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'a>>
fn release_run<'a>( &'a self, run_id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'a>>
Stop whatever a previous execution of the run
run_id left running
outside the worker process, before the run executes again. Read moreSource§fn account_kind(&self) -> Option<&'static str>
fn account_kind(&self) -> Option<&'static str>
The Provider Account kind whose credential this provider can inject. Read more
Source§fn account_kind_for(&self, _config: &AgentConfig) -> Option<&'static str>
fn account_kind_for(&self, _config: &AgentConfig) -> Option<&'static str>
The Provider Account kind of the credential this provider would use
for this specific
config. Read moreSource§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