pub struct LLMClient { /* private fields */ }Implementations§
Source§impl LLMClient
impl LLMClient
pub fn new() -> Result<Self>
pub fn new_with_project_root(project_root: PathBuf) -> Result<Self>
pub async fn complete(&self, prompt: &str) -> Result<String>
pub async fn complete_with_model( &self, prompt: &str, model_override: Option<&str>, ) -> Result<String>
pub async fn complete_json<T>(&self, prompt: &str) -> Result<T>where
T: DeserializeOwned,
Sourcepub fn is_claude_cli(&self) -> bool
pub fn is_claude_cli(&self) -> bool
Check if the current provider is claude-cli
Sourcepub async fn complete_with_tools(
&self,
prompt: &str,
tools: &ToolConfig,
) -> Result<String>
pub async fn complete_with_tools( &self, prompt: &str, tools: &ToolConfig, ) -> Result<String>
Complete with Claude Code tool access (only works with claude-cli provider)
Sourcepub async fn complete_json_with_tools<T>(
&self,
prompt: &str,
tools: &ToolConfig,
) -> Result<T>where
T: DeserializeOwned,
pub async fn complete_json_with_tools<T>(
&self,
prompt: &str,
tools: &ToolConfig,
) -> Result<T>where
T: DeserializeOwned,
Complete and parse JSON with Claude Code tool access
Auto Trait Implementations§
impl Freeze for LLMClient
impl !RefUnwindSafe for LLMClient
impl Send for LLMClient
impl Sync for LLMClient
impl Unpin for LLMClient
impl !UnwindSafe for LLMClient
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