pub struct LLMFilter {
pub llm_uuid: Option<Uuid>,
pub llm_id: Option<String>,
pub family_id: Option<String>,
pub local: Option<bool>,
pub minimum_capabilities: Option<Vec<CapabilityFilter>>,
}
Expand description
Filter for calls that allow flexible choice of LLMs.
Filter qualification are match-or-fail, meaning if a filter cannot be satisfied, the function will return a 404.
An empty filter structure will allow any LLM to be used.
Fields§
§llm_uuid: Option<Uuid>
UUID. This specifies a single LLM, making the rest of the options unnecessary.
llm_id: Option<String>
§family_id: Option<String>
§local: Option<bool>
§minimum_capabilities: Option<Vec<CapabilityFilter>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LLMFilter
impl<'de> Deserialize<'de> for LLMFilter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LLMFilter
impl RefUnwindSafe for LLMFilter
impl Send for LLMFilter
impl Sync for LLMFilter
impl Unpin for LLMFilter
impl UnwindSafe for LLMFilter
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