pub struct ResponseOutput {
pub role: Role,
pub content: Vec<ContentBlock>,
pub stop_reason: Option<StopReason>,
}Expand description
One assistant output item in a normalized response.
Fields§
§role: RoleActor that produced the output, normally Role::Assistant.
content: Vec<ContentBlock>Ordered output content.
stop_reason: Option<StopReason>Why this output stopped, when known.
Trait Implementations§
Source§impl Clone for ResponseOutput
impl Clone for ResponseOutput
Source§fn clone(&self) -> ResponseOutput
fn clone(&self) -> ResponseOutput
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 ResponseOutput
impl Debug for ResponseOutput
Source§impl<'de> Deserialize<'de> for ResponseOutput
impl<'de> Deserialize<'de> for ResponseOutput
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 ResponseOutput
impl PartialEq for ResponseOutput
Source§impl Serialize for ResponseOutput
impl Serialize for ResponseOutput
impl StructuralPartialEq for ResponseOutput
Auto Trait Implementations§
impl Freeze for ResponseOutput
impl RefUnwindSafe for ResponseOutput
impl Send for ResponseOutput
impl Sync for ResponseOutput
impl Unpin for ResponseOutput
impl UnsafeUnpin for ResponseOutput
impl UnwindSafe for ResponseOutput
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