pub struct ClaudeCodeEngine { /* private fields */ }Implementations§
Source§impl ClaudeCodeEngine
impl ClaudeCodeEngine
pub fn new(config: ClaudeCodeConfig) -> Self
pub fn new_with_runner( config: ClaudeCodeConfig, runner: Arc<dyn ClaudeCodeRunner>, ) -> Self
Trait Implementations§
Source§impl InferenceEngine for ClaudeCodeEngine
impl InferenceEngine for ClaudeCodeEngine
fn id(&self) -> InferenceEngineId
fn capabilities(&self) -> InferenceCapabilities
fn metadata(&self) -> InferenceProviderMetadata
fn list_models<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: InferenceProviderContext<'life1>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ModelDescriptor>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stream_turn<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: InferenceTurnContext<'life1>,
request: AgentInferenceRequest,
) -> Pin<Box<dyn Future<Output = Result<InferenceEventStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn tool_result_image_input(&self, _model: &str) -> bool
fn tool_result_image_input(&self, _model: &str) -> bool
Whether this engine puts the image a tool result carries under
crate::transcript::VIEW_IMAGE_DISPLAY_KEY in front of model. Read moreSource§fn requires_native_compaction(&self) -> bool
fn requires_native_compaction(&self) -> bool
Whether compaction must remain provider-owned, without local pruning or
text-summary fallback. Native failures propagate to the caller.
Source§fn compact_turn<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: InferenceTurnContext<'life1>,
_request: AgentInferenceRequest,
) -> Pin<Box<dyn Future<Output = Result<Option<Pin<Box<dyn Stream<Item = Result<InferenceEvent, Error>> + Send>>>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn compact_turn<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: InferenceTurnContext<'life1>,
_request: AgentInferenceRequest,
) -> Pin<Box<dyn Future<Output = Result<Option<Pin<Box<dyn Stream<Item = Result<InferenceEvent, Error>> + Send>>>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Native, opaque provider compaction. Unsupported engines return None.
The stream publishes a candidate boundary and one terminal completion.
Hosts must stage candidates until successful terminal completion; failed
attempts may report billable usage but must not replace replay history.
Auto Trait Implementations§
impl !RefUnwindSafe for ClaudeCodeEngine
impl !UnwindSafe for ClaudeCodeEngine
impl Freeze for ClaudeCodeEngine
impl Send for ClaudeCodeEngine
impl Sync for ClaudeCodeEngine
impl Unpin for ClaudeCodeEngine
impl UnsafeUnpin for ClaudeCodeEngine
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