MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / from

Method from

atomic-core/src/change/provenance/mod.rs:214–227  ·  view source on GitHub ↗
(value: AIVendorV0)

Source from the content-addressed store, hash-verified

212
213impl From<AIVendorV0> for AIVendor {
214 fn from(value: AIVendorV0) -> Self {
215 match value {
216 AIVendorV0::Anthropic => Self::Anthropic,
217 AIVendorV0::OpenAI => Self::OpenAI,
218 AIVendorV0::Google => Self::Google,
219 AIVendorV0::Meta => Self::Meta,
220 AIVendorV0::Mistral => Self::Mistral,
221 AIVendorV0::Cohere => Self::Cohere,
222 AIVendorV0::AmazonBedrock => Self::AmazonBedrock,
223 AIVendorV0::AzureOpenAI => Self::AzureOpenAI,
224 AIVendorV0::Local => Self::Local,
225 AIVendorV0::Other(name) => Self::Other(name),
226 }
227 }
228}
229
230#[derive(Serialize, Deserialize)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected