pub struct ClaudeHarness { /* private fields */ }Implementations§
Source§impl ClaudeHarness
impl ClaudeHarness
pub fn new( config: ClaudeConfig, binding_store: Arc<dyn SessionBindingStore>, workspace_manager: Arc<WorkspaceManager>, bin_path: PathBuf, socket_path: PathBuf, ) -> Self
pub fn with_acceptance(self, ae: Arc<dyn AcceptanceEvaluator>) -> Self
Trait Implementations§
Source§impl AgentHarness for ClaudeHarness
impl AgentHarness for ClaudeHarness
Source§fn supports(&self, ctx: &SupportContext) -> Support
fn supports(&self, ctx: &SupportContext) -> Support
Cheap, sync support check. Selector calls this before
dispatching. Implementors return
Support::Unsupported { .. }
instead of panicking on unfamiliar input.Source§fn run_attempt<'life0, 'async_trait>(
&'life0 self,
params: AttemptParams,
) -> Pin<Box<dyn Future<Output = Result<AttemptResult, HarnessError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run_attempt<'life0, 'async_trait>(
&'life0 self,
params: AttemptParams,
) -> Pin<Box<dyn Future<Output = Result<AttemptResult, HarnessError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Drive one attempt to completion. Long-running. Implementors
MUST poll
params.cancel.is_cancelled() between events and
honour params.goal.budget.Source§fn plugin_id(&self) -> Option<&str>
fn plugin_id(&self) -> Option<&str>
Some(plugin_id) when the harness is registered by a plugin.
None for in-tree harnesses.Source§fn compact<'life0, 'async_trait>(
&'life0 self,
_params: CompactParams,
) -> Pin<Box<dyn Future<Output = Result<CompactResult, HarnessError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn compact<'life0, 'async_trait>(
&'life0 self,
_params: CompactParams,
) -> Pin<Box<dyn Future<Output = Result<CompactResult, HarnessError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Optional context-compaction hook.
Auto Trait Implementations§
impl Freeze for ClaudeHarness
impl !RefUnwindSafe for ClaudeHarness
impl Send for ClaudeHarness
impl Sync for ClaudeHarness
impl Unpin for ClaudeHarness
impl UnsafeUnpin for ClaudeHarness
impl !UnwindSafe for ClaudeHarness
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 more