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,
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