pub struct ComposedPrompt {
pub segments: Vec<Segment>,
pub anchored_summary: AnchoredSummary,
pub telemetry: ContextCompilerMetrics,
}Expand description
Result of one compose() call.
Fields§
§segments: Vec<Segment>Segments to assemble into the final LLM input, in target order.
anchored_summary: AnchoredSummaryThe anchored summary state after this compose call (may be is_empty() at Tier 0).
telemetry: ContextCompilerMetricsAggregate + per-segment telemetry.
Trait Implementations§
Source§impl Clone for ComposedPrompt
impl Clone for ComposedPrompt
Source§fn clone(&self) -> ComposedPrompt
fn clone(&self) -> ComposedPrompt
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 ComposedPrompt
impl Debug for ComposedPrompt
Source§impl<'de> Deserialize<'de> for ComposedPrompt
impl<'de> Deserialize<'de> for ComposedPrompt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ComposedPrompt
impl RefUnwindSafe for ComposedPrompt
impl Send for ComposedPrompt
impl Sync for ComposedPrompt
impl Unpin for ComposedPrompt
impl UnsafeUnpin for ComposedPrompt
impl UnwindSafe for ComposedPrompt
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