pub struct ChatCompletionEvent {
pub event_id: String,
pub correlation_id: String,
pub created_at: String,
pub extra_fields: HashMap<String, ExtraFieldsValue>,
pub nb_input_tokens: i32,
pub nb_output_tokens: i32,
pub enabled_tools: Vec<HashMap<String, Value>>,
pub request_messages: Vec<HashMap<String, Value>>,
pub response_messages: Vec<HashMap<String, Value>>,
pub nb_messages: i32,
pub chat_transcription_events: Vec<ChatTranscriptionEvent>,
}Fields§
§event_id: String§correlation_id: String§created_at: String§extra_fields: HashMap<String, ExtraFieldsValue>§nb_input_tokens: i32§nb_output_tokens: i32§enabled_tools: Vec<HashMap<String, Value>>§request_messages: Vec<HashMap<String, Value>>§response_messages: Vec<HashMap<String, Value>>§nb_messages: i32§chat_transcription_events: Vec<ChatTranscriptionEvent>Implementations§
Source§impl ChatCompletionEvent
impl ChatCompletionEvent
pub fn new( event_id: String, correlation_id: String, created_at: String, extra_fields: HashMap<String, ExtraFieldsValue>, nb_input_tokens: i32, nb_output_tokens: i32, enabled_tools: Vec<HashMap<String, Value>>, request_messages: Vec<HashMap<String, Value>>, response_messages: Vec<HashMap<String, Value>>, nb_messages: i32, chat_transcription_events: Vec<ChatTranscriptionEvent>, ) -> ChatCompletionEvent
Trait Implementations§
Source§impl Clone for ChatCompletionEvent
impl Clone for ChatCompletionEvent
Source§fn clone(&self) -> ChatCompletionEvent
fn clone(&self) -> ChatCompletionEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 ChatCompletionEvent
impl Debug for ChatCompletionEvent
Source§impl Default for ChatCompletionEvent
impl Default for ChatCompletionEvent
Source§fn default() -> ChatCompletionEvent
fn default() -> ChatCompletionEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatCompletionEvent
impl<'de> Deserialize<'de> for ChatCompletionEvent
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 ChatCompletionEvent
impl PartialEq for ChatCompletionEvent
Source§impl Serialize for ChatCompletionEvent
impl Serialize for ChatCompletionEvent
impl StructuralPartialEq for ChatCompletionEvent
Auto Trait Implementations§
impl Freeze for ChatCompletionEvent
impl RefUnwindSafe for ChatCompletionEvent
impl Send for ChatCompletionEvent
impl Sync for ChatCompletionEvent
impl Unpin for ChatCompletionEvent
impl UnsafeUnpin for ChatCompletionEvent
impl UnwindSafe for ChatCompletionEvent
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