pub struct AgentResponse {
pub content: Vec<ContentBlock>,
pub usage: Usage,
pub model: String,
}Expand description
Response from a single agent turn.
Fields§
§content: Vec<ContentBlock>Content blocks returned by the model.
usage: UsageToken usage for this turn.
model: StringModel that generated the response.
Implementations§
Auto Trait Implementations§
impl Freeze for AgentResponse
impl RefUnwindSafe for AgentResponse
impl Send for AgentResponse
impl Sync for AgentResponse
impl Unpin for AgentResponse
impl UnsafeUnpin for AgentResponse
impl UnwindSafe for AgentResponse
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