pub struct ComposedPrompt {
pub prompt: String,
pub citations: Vec<Citation>,
pub audit: CompositionAudit,
}Expand description
A prompt composed from a frame set: the rendered text, the citation map, and
the audit — the full return of compose_for_prompt.
Fields§
§prompt: StringThe preamble followed by the value-ordered, fenced frames.
citations: Vec<Citation>label -> (frame id, provenance), in render order.
audit: CompositionAuditWhat was included, what was excluded, and why.
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 moreAuto 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