Struct llm_api_adapter::models::ResponseMessage
source · pub struct ResponseMessage {
pub id: String,
pub role: String,
pub content: Vec<ContentBlock>,
}
Expand description
Represents the response message received from the Anthropic API.
The ResponseMessage
struct contains the ID of the response, the role of the sender,
and the list of content blocks in the response.
Fields§
§id: String
The ID of the response message.
role: String
The role of the sender, either “user” or “assistant”.
content: Vec<ContentBlock>
The list of content blocks in the response.
Trait Implementations§
source§impl Debug for ResponseMessage
impl Debug for ResponseMessage
source§impl<'de> Deserialize<'de> for ResponseMessage
impl<'de> Deserialize<'de> for ResponseMessage
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 ResponseMessage
impl RefUnwindSafe for ResponseMessage
impl Send for ResponseMessage
impl Sync for ResponseMessage
impl Unpin for ResponseMessage
impl UnwindSafe for ResponseMessage
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