pub struct ChatBuilder<CP: CompletionProvider, Output = Unstructured> { /* private fields */ }Implementations§
Source§impl<CP: CompletionProvider> ChatBuilder<CP, Unstructured>
impl<CP: CompletionProvider> ChatBuilder<CP, Unstructured>
pub fn new() -> Self
pub fn with_structured_output<T>(self) -> ChatBuilder<CP, Structured<T>>where
T: JsonSchema + DeserializeOwned,
pub fn with_embeddings(self) -> ChatBuilder<CP, Embedded>
Source§impl<CP: CompletionProvider, Output> ChatBuilder<CP, Output>
impl<CP: CompletionProvider, Output> ChatBuilder<CP, Output>
pub fn with_max_steps(self, max_steps: u16) -> Self
pub fn with_max_retries(self, max_retries: u16) -> Self
pub fn with_tools(self, tools: ToolCollection) -> Self
pub fn with_retry_strategy(self, retry_strategy: RetryStrategy) -> Self
pub fn with_model(self, model: CP) -> Self
pub fn with_options(self, options: ChatOptions) -> Self
pub fn build(self) -> Chat<CP, Output>
Trait Implementations§
Source§impl<CP: CompletionProvider> Default for ChatBuilder<CP, Unstructured>
impl<CP: CompletionProvider> Default for ChatBuilder<CP, Unstructured>
Auto Trait Implementations§
impl<CP, Output> Freeze for ChatBuilder<CP, Output>where
CP: Freeze,
impl<CP, Output = Unstructured> !RefUnwindSafe for ChatBuilder<CP, Output>
impl<CP, Output> Send for ChatBuilder<CP, Output>where
Output: Send,
impl<CP, Output> Sync for ChatBuilder<CP, Output>where
Output: Sync,
impl<CP, Output> Unpin for ChatBuilder<CP, Output>
impl<CP, Output> UnsafeUnpin for ChatBuilder<CP, Output>where
CP: UnsafeUnpin,
impl<CP, Output = Unstructured> !UnwindSafe for ChatBuilder<CP, Output>
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