pub struct BoundToolsChatModel { /* private fields */ }Expand description
A ChatModel wrapper that always includes a set of bound tools in every request.
Created via BoundToolsChatModel::new(model, tools). This is the Rust equivalent
of LangChain’s model.bind_tools(tools).
Implementations§
Trait Implementations§
Source§impl ChatModel for BoundToolsChatModel
impl ChatModel for BoundToolsChatModel
fn chat<'life0, 'async_trait>(
&'life0 self,
request: ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse, SynapticError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_chat(&self, request: ChatRequest) -> ChatStream<'_>
Source§fn profile(&self) -> Option<ModelProfile>
fn profile(&self) -> Option<ModelProfile>
Return the model’s capability profile, if known.
Auto Trait Implementations§
impl Freeze for BoundToolsChatModel
impl !RefUnwindSafe for BoundToolsChatModel
impl Send for BoundToolsChatModel
impl Sync for BoundToolsChatModel
impl Unpin for BoundToolsChatModel
impl UnsafeUnpin for BoundToolsChatModel
impl !UnwindSafe for BoundToolsChatModel
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