pub struct GroqAdapter(/* private fields */);Expand description
Model adapter that connects the agentkit agent loop to Groq.
§Example
use agentkit_loop::Agent;
use agentkit_provider_groq::{GroqAdapter, GroqConfig};
let adapter = GroqAdapter::new(GroqConfig::from_env()?)?;
let agent = Agent::builder()
.model(adapter)
.build()?;Implementations§
Source§impl GroqAdapter
impl GroqAdapter
Sourcepub fn new(config: GroqConfig) -> Result<Self, GroqError>
pub fn new(config: GroqConfig) -> Result<Self, GroqError>
Creates a new adapter from the given configuration.
Trait Implementations§
Source§impl Clone for GroqAdapter
impl Clone for GroqAdapter
Source§fn clone(&self) -> GroqAdapter
fn clone(&self) -> GroqAdapter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ModelAdapter for GroqAdapter
impl ModelAdapter for GroqAdapter
Source§type Session = CompletionsSession<GroqProvider>
type Session = CompletionsSession<GroqProvider>
The session type produced by this adapter.
Auto Trait Implementations§
impl !RefUnwindSafe for GroqAdapter
impl !UnwindSafe for GroqAdapter
impl Freeze for GroqAdapter
impl Send for GroqAdapter
impl Sync for GroqAdapter
impl Unpin for GroqAdapter
impl UnsafeUnpin for GroqAdapter
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