pub struct Response {
pub content: Vec<ContentBlock>,
pub stop_reason: Option<StopReason>,
pub error_message: Option<String>,
}Expand description
A canned response.
Fields§
§content: Vec<ContentBlock>Content blocks, streamed in order.
stop_reason: Option<StopReason>Final stop reason. None means toolUse when the content has tool
calls, else stop.
error_message: Option<String>Error message for error and aborted.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Response
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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