#[non_exhaustive]pub struct Composition {
pub turn: AssistantTurn,
pub tasks: Vec<TaskRecord>,
pub budget: BudgetReport,
pub expectation: Option<Expectation>,
}Expand description
A composed turn and the model calls that wrote it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.turn: AssistantTurnThe turn, as it is returned and persisted.
tasks: Vec<TaskRecord>Every narration task call.
budget: BudgetReportWhat those calls spent.
expectation: Option<Expectation>What the reply asked for, for the next turn to expect.
Trait Implementations§
Source§impl Clone for Composition
impl Clone for Composition
Auto Trait Implementations§
impl Freeze for Composition
impl RefUnwindSafe for Composition
impl Send for Composition
impl Sync for Composition
impl Unpin for Composition
impl UnsafeUnpin for Composition
impl UnwindSafe for Composition
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