pub enum ToolCallingSupport {
Supported,
Unsupported,
Unknown,
}Expand description
Whether the loaded model can reliably produce structured tool calls.
Unknown is used for custom model repositories that Onde does not ship in
its built-in catalogue. Callers may choose to try those models, but should
surface that the capability has not been verified.
Variants§
Trait Implementations§
Source§impl Clone for ToolCallingSupport
impl Clone for ToolCallingSupport
Source§fn clone(&self) -> ToolCallingSupport
fn clone(&self) -> ToolCallingSupport
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<UT> ConvertError<UT> for ToolCallingSupport
impl<UT> ConvertError<UT> for ToolCallingSupport
impl Copy for ToolCallingSupport
Source§impl Debug for ToolCallingSupport
impl Debug for ToolCallingSupport
Source§impl<'de> Deserialize<'de> for ToolCallingSupport
impl<'de> Deserialize<'de> for ToolCallingSupport
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallingSupport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallingSupport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolCallingSupport
Source§impl<UT> FfiConverter<UT> for ToolCallingSupport
impl<UT> FfiConverter<UT> for ToolCallingSupport
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Type ID metadata, serialized into a MetadataBuffer.
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
The low-level type used for passing values of this type over the FFI. Read more
Source§fn lower(v: ToolCallingSupport) -> RustBuffer
fn lower(v: ToolCallingSupport) -> RustBuffer
Lower a rust value of the target type, into an FFI value of type Self::FfiType. Read more
Source§fn try_lift(buf: RustBuffer) -> Result<ToolCallingSupport, Error>
fn try_lift(buf: RustBuffer) -> Result<ToolCallingSupport, Error>
Lift a rust value of the target type, from an FFI value of type Self::FfiType. Read more
Source§impl<UT> Lift<UT> for ToolCallingSupport
impl<UT> Lift<UT> for ToolCallingSupport
type FfiType = <ToolCallingSupport as FfiConverter<UT>>::FfiType
fn try_lift( v: <ToolCallingSupport as Lift<UT>>::FfiType, ) -> Result<ToolCallingSupport, Error>
fn try_read(buf: &mut &[u8]) -> Result<ToolCallingSupport, Error>
Source§fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
Convenience method
Source§impl<UT> LiftRef<UT> for ToolCallingSupport
impl<UT> LiftRef<UT> for ToolCallingSupport
Source§impl<UT> LiftReturn<UT> for ToolCallingSupport
impl<UT> LiftReturn<UT> for ToolCallingSupport
Source§type ReturnType = <ToolCallingSupport as Lift<UT>>::FfiType
type ReturnType = <ToolCallingSupport as Lift<UT>>::FfiType
FFI return type for trait interfaces
Source§fn try_lift_successful_return(
v: <ToolCallingSupport as LiftReturn<UT>>::ReturnType,
) -> Result<ToolCallingSupport, Error>
fn try_lift_successful_return( v: <ToolCallingSupport as LiftReturn<UT>>::ReturnType, ) -> Result<ToolCallingSupport, Error>
Lift a successfully returned value from a trait interface
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Lift a foreign returned value from a trait interface Read more
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Lift a Rust value for a callback interface method error result Read more
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Lift a Rust value for an unexpected callback interface error Read more
Source§impl<UT> Lower<UT> for ToolCallingSupport
impl<UT> Lower<UT> for ToolCallingSupport
type FfiType = <ToolCallingSupport as FfiConverter<UT>>::FfiType
fn lower(obj: ToolCallingSupport) -> <ToolCallingSupport as Lower<UT>>::FfiType
fn write(obj: ToolCallingSupport, buf: &mut Vec<u8>)
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Convenience method
Source§impl<UT> LowerError<UT> for ToolCallingSupport
impl<UT> LowerError<UT> for ToolCallingSupport
Source§fn lower_error(obj: ToolCallingSupport) -> RustBuffer
fn lower_error(obj: ToolCallingSupport) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for ToolCallingSupport
impl<UT> LowerReturn<UT> for ToolCallingSupport
Source§type ReturnType = <ToolCallingSupport as Lower<UT>>::FfiType
type ReturnType = <ToolCallingSupport as Lower<UT>>::FfiType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(
v: ToolCallingSupport,
) -> Result<<ToolCallingSupport as LowerReturn<UT>>::ReturnType, RustCallError>
fn lower_return( v: ToolCallingSupport, ) -> Result<<ToolCallingSupport as LowerReturn<UT>>::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl PartialEq for ToolCallingSupport
impl PartialEq for ToolCallingSupport
Source§impl Serialize for ToolCallingSupport
impl Serialize for ToolCallingSupport
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ToolCallingSupport
Source§impl<UT> TypeId<UT> for ToolCallingSupport
impl<UT> TypeId<UT> for ToolCallingSupport
Auto Trait Implementations§
impl Forget for ToolCallingSupport
impl Freeze for ToolCallingSupport
impl Move for ToolCallingSupport
impl RefUnwindSafe for ToolCallingSupport
impl Send for ToolCallingSupport
impl Sync for ToolCallingSupport
impl Unpin for ToolCallingSupport
impl UnsafeUnpin for ToolCallingSupport
impl UnwindSafe for ToolCallingSupport
Blanket Implementations§
impl<T> Boilerplate for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for T
impl<T> Downcast for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
impl<T> MaybeSend for T
impl<T> MaybeSync for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<T> SpeculativeProposePreparation for T
impl<T> SpeculativeProposePreparation for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.