pub struct StepResponse {
pub id: Option<String>,
pub timestamp: Option<DateTime<Utc>>,
pub model_id: Option<ModelId>,
pub headers: Option<Headers>,
pub body: Option<JsonValue>,
pub messages: Vec<Message>,
}Expand description
Response metadata of a step.
Fields§
§id: Option<String>Provider response id.
timestamp: Option<DateTime<Utc>>Response timestamp.
model_id: Option<ModelId>Model that produced the response.
headers: Option<Headers>Response headers.
body: Option<JsonValue>Raw response body (only when Include::response_body).
messages: Vec<Message>Messages produced by the step (assistant and tool messages).
Trait Implementations§
Source§impl Clone for StepResponse
impl Clone for StepResponse
Source§fn clone(&self) -> StepResponse
fn clone(&self) -> StepResponse
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 StepResponse
impl Debug for StepResponse
Source§impl Default for StepResponse
impl Default for StepResponse
Source§fn default() -> StepResponse
fn default() -> StepResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StepResponse
impl<'de> Deserialize<'de> for StepResponse
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 StepResponse
impl PartialEq for StepResponse
Source§impl Serialize for StepResponse
impl Serialize for StepResponse
impl StructuralPartialEq for StepResponse
Auto Trait Implementations§
impl Freeze for StepResponse
impl RefUnwindSafe for StepResponse
impl Send for StepResponse
impl Sync for StepResponse
impl Unpin for StepResponse
impl UnsafeUnpin for StepResponse
impl UnwindSafe for StepResponse
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