#[non_exhaustive]pub struct AiModel {
pub ai_provider: Option<String>,
pub name: Option<String>,
pub uid: Option<String>,
pub version: Option<String>,
}Expand description
AI Model
The AI Model object describes the characteristics of an AI/ML model. Examples include language models like GPT-4, embedding models like text-embedding-ada-002, and computer vision models like CLIP.
[] Category: | Name: ai_model
Constraints:
- at_least_one:
[name,uid]
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ai_provider: Option<String>AI Provider
AI service provider or organization name. For example: OpenAI, Anthropic, Google, or Internal.
required
name: Option<String>Name
Human-readable model name. For example: gpt-4o, claude-3-sonnet, or text-embedding-ada-002.
required
uid: Option<String>Unique ID
The unique identifier of the AI model.
recommended
version: Option<String>Version
Model version identifier. For example: 2024-05-13, v2.1.0, or beta.
recommended
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AiModel
impl<'de> Deserialize<'de> for AiModel
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
impl StructuralPartialEq for AiModel
Auto Trait Implementations§
impl Freeze for AiModel
impl RefUnwindSafe for AiModel
impl Send for AiModel
impl Sync for AiModel
impl Unpin for AiModel
impl UnwindSafe for AiModel
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