pub struct AnthropicAdapter;Implementations§
Trait Implementations§
Source§impl Default for AnthropicAdapter
impl Default for AnthropicAdapter
Source§impl ProviderAdapter for AnthropicAdapter
impl ProviderAdapter for AnthropicAdapter
fn name(&self) -> &'static str
fn capabilities(&self) -> Capabilities
fn encode_request( &self, surface: Surface, request: ProviderRequest, ) -> Result<Value, ProviderError>
fn decode_response( &self, surface: Surface, response: Value, ) -> Result<ProviderResponse, ProviderError>
fn stream_decoder( &self, surface: Surface, ) -> Result<Box<dyn ProviderStreamDecoder>, ProviderError>
Auto Trait Implementations§
impl Freeze for AnthropicAdapter
impl RefUnwindSafe for AnthropicAdapter
impl Send for AnthropicAdapter
impl Sync for AnthropicAdapter
impl Unpin for AnthropicAdapter
impl UnsafeUnpin for AnthropicAdapter
impl UnwindSafe for AnthropicAdapter
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