pub enum Protocol {
OpenAiChat,
OpenAiResponses,
AnthropicMessages,
GeminiGenerateContent,
}Expand description
The provider-facing protocol we are preparing a request for.
Variants§
OpenAiChat
The OpenAI Chat Completions API.
OpenAiResponses
The OpenAI Responses API.
AnthropicMessages
The Anthropic Messages API.
GeminiGenerateContent
The Google Gemini generateContent API.
Implementations§
Source§impl Protocol
impl Protocol
Sourcepub fn provider_state_format(self) -> ProviderStateFormat
pub fn provider_state_format(self) -> ProviderStateFormat
The provider state format used to tag reasoning and other opaque state carried by this protocol.
Trait Implementations§
impl Copy for Protocol
impl Eq for Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnsafeUnpin for Protocol
impl UnwindSafe for Protocol
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.