pub enum ApiSpecificResponse {
OpenAIChat {
logprobs: Option<Json>,
system_fingerprint: Option<String>,
service_tier: Option<String>,
},
OpenAIResponses {
output_items: Option<Vec<Json>>,
status: Option<String>,
incomplete_details: Option<Json>,
previous_response_id: Option<String>,
store: Option<bool>,
service_tier: Option<String>,
truncation: Option<Json>,
reasoning: Option<Json>,
input_tokens_details: Option<Json>,
output_tokens_details: Option<Json>,
},
AnthropicMessages {
object_type: Option<String>,
role: Option<String>,
stop_reason: Option<String>,
stop_sequence: Option<String>,
service_tier: Option<String>,
container: Option<Json>,
content_blocks: Option<Vec<Json>>,
},
Custom {
api_name: String,
data: Json,
},
}Expand description
API-specific response data that cannot be normalized across providers.
Each variant captures fields unique to a particular LLM API, stored via
internal tagging on the "api" key.
Variants§
OpenAIChat
OpenAI Chat Completions-specific fields.
Fields
OpenAIResponses
OpenAI Responses API-specific fields.
Fields
AnthropicMessages
Anthropic Messages API-specific fields.
Fields
Custom
Custom/unknown API – catch-all for user-implemented codecs.
Trait Implementations§
Source§impl Clone for ApiSpecificResponse
impl Clone for ApiSpecificResponse
Source§fn clone(&self) -> ApiSpecificResponse
fn clone(&self) -> ApiSpecificResponse
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 moreSource§impl Debug for ApiSpecificResponse
impl Debug for ApiSpecificResponse
Source§impl<'de> Deserialize<'de> for ApiSpecificResponse
impl<'de> Deserialize<'de> for ApiSpecificResponse
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
Source§impl PartialEq for ApiSpecificResponse
impl PartialEq for ApiSpecificResponse
Source§fn eq(&self, other: &ApiSpecificResponse) -> bool
fn eq(&self, other: &ApiSpecificResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ApiSpecificResponse
impl Serialize for ApiSpecificResponse
impl StructuralPartialEq for ApiSpecificResponse
Auto Trait Implementations§
impl Freeze for ApiSpecificResponse
impl RefUnwindSafe for ApiSpecificResponse
impl Send for ApiSpecificResponse
impl Sync for ApiSpecificResponse
impl Unpin for ApiSpecificResponse
impl UnsafeUnpin for ApiSpecificResponse
impl UnwindSafe for ApiSpecificResponse
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<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request