pub struct ChildOutcome {
pub route: String,
pub session_id: String,
pub answer: Result<String, String>,
pub prompt_tokens: Option<u64>,
pub completion_tokens: Option<u64>,
pub iterations: usize,
}Expand description
What a child cost and what it said — the one shape both surfaces report (#171).
A failure is a value rather than an Err, because delegate turns it into a tool result and a
flare run turns it into one line of its table: neither wants to lose the cost of a child that
tried.
Fields§
§route: String§session_id: String§answer: Result<String, String>§prompt_tokens: Option<u64>§completion_tokens: Option<u64>§iterations: usizeImplementations§
Auto Trait Implementations§
impl Forget for ChildOutcome
impl Freeze for ChildOutcome
impl Move for ChildOutcome
impl RefUnwindSafe for ChildOutcome
impl Send for ChildOutcomewhere
RawVecInner: Send,
impl Sync for ChildOutcomewhere
RawVecInner: Sync,
impl Unpin for ChildOutcome
impl UnsafeUnpin for ChildOutcome
impl UnwindSafe for ChildOutcomewhere
RawVecInner: UnwindSafe,
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