pub struct ChatRequest {Show 15 fields
pub timestamp: Option<i64>,
pub message: Option<ChatMessage>,
pub response: Option<Value>,
pub variable_data: Option<Value>,
pub request_id: Option<String>,
pub response_id: Option<String>,
pub model_id: Option<String>,
pub agent: Option<Value>,
pub result: Option<Value>,
pub followups: Option<Vec<Value>>,
pub is_canceled: Option<bool>,
pub content_references: Option<Vec<Value>>,
pub code_citations: Option<Vec<Value>>,
pub response_markdown_info: Option<Vec<Value>>,
pub source_session: Option<String>,
}Expand description
A single chat request (message + response)
Fields§
§timestamp: Option<i64>Request timestamp (milliseconds)
message: Option<ChatMessage>The user’s message
response: Option<Value>The AI’s response (complex structure - use Value for flexibility)
variable_data: Option<Value>Variable data (context, files, etc.)
request_id: Option<String>Request ID
response_id: Option<String>Response ID
model_id: Option<String>Model ID
agent: Option<Value>Agent information
result: Option<Value>Result metadata
followups: Option<Vec<Value>>Follow-up suggestions
is_canceled: Option<bool>Whether canceled
content_references: Option<Vec<Value>>Content references
code_citations: Option<Vec<Value>>Code citations
response_markdown_info: Option<Vec<Value>>Response markdown info
source_session: Option<String>Source session for merged requests
Trait Implementations§
Source§impl Clone for ChatRequest
impl Clone for ChatRequest
Source§fn clone(&self) -> ChatRequest
fn clone(&self) -> ChatRequest
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 ChatRequest
impl Debug for ChatRequest
Source§impl<'de> Deserialize<'de> for ChatRequest
impl<'de> Deserialize<'de> for ChatRequest
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
Auto Trait Implementations§
impl Freeze for ChatRequest
impl RefUnwindSafe for ChatRequest
impl Send for ChatRequest
impl Sync for ChatRequest
impl Unpin for ChatRequest
impl UnwindSafe for ChatRequest
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more