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 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 must publish a completed boundary and one terminal completion.
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