pub struct ClaudeClient { /* private fields */ }Expand description
Claude API client
Implementations§
Source§impl ClaudeClient
impl ClaudeClient
Sourcepub async fn new(config: ClaudeConfig) -> Result<Self>
pub async fn new(config: ClaudeConfig) -> Result<Self>
Create a new Claude client
Sourcepub async fn execute_task(
&self,
agent: &Agent,
task: &Task,
) -> Result<TaskResult>
pub async fn execute_task( &self, agent: &Agent, task: &Task, ) -> Result<TaskResult>
Execute a task using Claude
Auto Trait Implementations§
impl Freeze for ClaudeClient
impl !RefUnwindSafe for ClaudeClient
impl Send for ClaudeClient
impl Sync for ClaudeClient
impl Unpin for ClaudeClient
impl !UnwindSafe for ClaudeClient
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