pub struct AgentResponse {
pub content: String,
pub usage: Option<TokenUsage>,
pub metadata: Option<ExecutionMetadata>,
}Expand description
Response from agent execution, including content and optional token usage
Fields§
§content: StringThe generated text response
usage: Option<TokenUsage>Token usage from the LLM provider (None if unavailable)
metadata: Option<ExecutionMetadata>Metadata about the execution (model, provider, etc.)
Trait Implementations§
Source§impl Clone for AgentResponse
impl Clone for AgentResponse
Source§fn clone(&self) -> AgentResponse
fn clone(&self) -> AgentResponse
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 AgentResponse
impl Debug for AgentResponse
Source§impl Default for AgentResponse
impl Default for AgentResponse
Source§fn default() -> AgentResponse
fn default() -> AgentResponse
Returns the “default value” for a type. Read more
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