pub struct AnthropicEngine {
pub endpoint: String,
pub model: String,
pub api_key: String,
pub client: Client,
}Fields§
§endpoint: String§model: String§api_key: String§client: ClientTrait Implementations§
Source§impl InferenceEngine for AnthropicEngine
impl InferenceEngine for AnthropicEngine
fn generate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
system_prompt: &'life1 str,
prompt_payload: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for AnthropicEngine
impl !UnwindSafe for AnthropicEngine
impl Freeze for AnthropicEngine
impl Send for AnthropicEngine
impl Sync for AnthropicEngine
impl Unpin for AnthropicEngine
impl UnsafeUnpin for AnthropicEngine
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