pub struct ClaudeCodeProvider { /* private fields */ }Expand description
Claude Code provider.
Implementations§
Source§impl ClaudeCodeProvider
impl ClaudeCodeProvider
Sourcepub fn with_binary(self, binary: impl Into<String>) -> Self
pub fn with_binary(self, binary: impl Into<String>) -> Self
Override the binary path (e.g. "C:/Users/x/.claude/local/claude.exe").
Sourcepub fn with_extra_args(self, args: Vec<String>) -> Self
pub fn with_extra_args(self, args: Vec<String>) -> Self
Append extra arguments forwarded to every claude invocation
(e.g. ["--max-turns", "5"]).
Trait Implementations§
Source§impl Clone for ClaudeCodeProvider
impl Clone for ClaudeCodeProvider
Source§fn clone(&self) -> ClaudeCodeProvider
fn clone(&self) -> ClaudeCodeProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ClaudeCodeProvider
impl Default for ClaudeCodeProvider
Source§impl LlmProvider for ClaudeCodeProvider
impl LlmProvider for ClaudeCodeProvider
Source§fn chat_stream<'life0, 'async_trait>(
&'life0 self,
req: ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn chat_stream<'life0, 'async_trait>(
&'life0 self,
req: ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stream a chat completion.
Auto Trait Implementations§
impl Freeze for ClaudeCodeProvider
impl RefUnwindSafe for ClaudeCodeProvider
impl Send for ClaudeCodeProvider
impl Sync for ClaudeCodeProvider
impl Unpin for ClaudeCodeProvider
impl UnsafeUnpin for ClaudeCodeProvider
impl UnwindSafe for ClaudeCodeProvider
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