pub struct AgentReply {
pub text: String,
pub backend: String,
pub model: Option<String>,
pub session_id: Option<String>,
pub usage: Option<TokenUsage>,
pub duration: Duration,
}Expand description
The result of a successful turn.
Fields§
§text: StringThe answer in Markdown.
backend: StringWhich backend answered (claude, codex).
model: Option<String>Model, when known.
session_id: Option<String>Native session id, for resuming.
usage: Option<TokenUsage>Token usage, when reported.
duration: DurationWall-clock duration.
Trait Implementations§
Source§impl Clone for AgentReply
impl Clone for AgentReply
Source§impl Debug for AgentReply
impl Debug for AgentReply
impl Eq for AgentReply
Source§impl PartialEq for AgentReply
impl PartialEq for AgentReply
impl StructuralPartialEq for AgentReply
Auto Trait Implementations§
impl Freeze for AgentReply
impl RefUnwindSafe for AgentReply
impl Send for AgentReply
impl Sync for AgentReply
impl Unpin for AgentReply
impl UnsafeUnpin for AgentReply
impl UnwindSafe for AgentReply
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