pub enum BuiltinLlmCodec {
OpenAiChat,
OpenAiResponses,
AnthropicMessages,
OCIGenAI,
GeminiGenerateContent,
}Expand description
Relay’s built-in LLM codec identities.
Variants§
OpenAiChat
OpenAI Chat Completions request and response payloads.
OpenAiResponses
OpenAI Responses request and response payloads.
AnthropicMessages
Anthropic Messages request and response payloads.
OCIGenAI
OCI Generative AI chat request and response payloads.
GeminiGenerateContent
Gemini generateContent request and response payloads.
Implementations§
Source§impl BuiltinLlmCodec
impl BuiltinLlmCodec
Sourcepub const ALL: &'static [BuiltinLlmCodec]
pub const ALL: &'static [BuiltinLlmCodec]
Every built-in codec identity in stable ID order.
Sourcepub const fn id(self) -> &'static str
pub const fn id(self) -> &'static str
Stable identifier used in configuration and SDK transport boundaries.
Sourcepub fn from_id(id: &str) -> Option<BuiltinLlmCodec>
pub fn from_id(id: &str) -> Option<BuiltinLlmCodec>
Resolve a stable built-in codec identifier.
Trait Implementations§
Source§impl Clone for BuiltinLlmCodec
impl Clone for BuiltinLlmCodec
Source§fn clone(&self) -> BuiltinLlmCodec
fn clone(&self) -> BuiltinLlmCodec
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 moreimpl Copy for BuiltinLlmCodec
Source§impl Debug for BuiltinLlmCodec
impl Debug for BuiltinLlmCodec
Source§impl<'de> Deserialize<'de> for BuiltinLlmCodec
impl<'de> Deserialize<'de> for BuiltinLlmCodec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuiltinLlmCodec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuiltinLlmCodec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BuiltinLlmCodec
Source§impl PartialEq for BuiltinLlmCodec
impl PartialEq for BuiltinLlmCodec
Source§impl Serialize for BuiltinLlmCodec
impl Serialize for BuiltinLlmCodec
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 BuiltinLlmCodec
Auto Trait Implementations§
impl Freeze for BuiltinLlmCodec
impl RefUnwindSafe for BuiltinLlmCodec
impl Send for BuiltinLlmCodec
impl Sync for BuiltinLlmCodec
impl Unpin for BuiltinLlmCodec
impl UnsafeUnpin for BuiltinLlmCodec
impl UnwindSafe for BuiltinLlmCodec
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