pub struct CopilotProvider { /* private fields */ }Expand description
Provider capable of listing and instantiating Copilot models.
Implementations§
Trait Implementations§
Source§impl Clone for CopilotProvider
impl Clone for CopilotProvider
Source§impl Debug for CopilotProvider
impl Debug for CopilotProvider
Source§impl LanguageModelProvider for CopilotProvider
impl LanguageModelProvider for CopilotProvider
Source§type Error = CopilotError
type Error = CopilotError
The error type returned by this provider.
Source§fn list_models(
&self,
) -> impl Future<Output = Result<Vec<ModelProfile>, Self::Error>> + Send
fn list_models( &self, ) -> impl Future<Output = Result<Vec<ModelProfile>, Self::Error>> + Send
Lists all available models from this provider.
Source§fn get_model(
&self,
name: &str,
) -> impl Future<Output = Result<Self::Model, Self::Error>> + Send
fn get_model( &self, name: &str, ) -> impl Future<Output = Result<Self::Model, Self::Error>> + Send
Gets a specific model by name from this provider.
Source§fn profile() -> ProviderProfile
fn profile() -> ProviderProfile
Returns the provider’s profile information.
Auto Trait Implementations§
impl Freeze for CopilotProvider
impl RefUnwindSafe for CopilotProvider
impl Send for CopilotProvider
impl Sync for CopilotProvider
impl Unpin for CopilotProvider
impl UnsafeUnpin for CopilotProvider
impl UnwindSafe for CopilotProvider
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more