pub struct CompiledPrompt { /* private fields */ }Expand description
Byte-identical compiled system prompt and explainability data.
Implementations§
Source§impl CompiledPrompt
impl CompiledPrompt
Sourcepub const fn estimated_tokens(&self) -> usize
pub const fn estimated_tokens(&self) -> usize
Returns conservative token estimate for the complete output.
Sourcepub fn diagnostics(&self) -> &[PromptDiagnostic]
pub fn diagnostics(&self) -> &[PromptDiagnostic]
Returns stable ordered diagnostics.
Sourcepub fn inspection(&self) -> &[PromptInspectionEntry]
pub fn inspection(&self) -> &[PromptInspectionEntry]
Returns one explainability row per unique input segment.
Trait Implementations§
Source§impl Clone for CompiledPrompt
impl Clone for CompiledPrompt
Source§fn clone(&self) -> CompiledPrompt
fn clone(&self) -> CompiledPrompt
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 CompiledPrompt
impl Debug for CompiledPrompt
impl Eq for CompiledPrompt
Source§impl PartialEq for CompiledPrompt
impl PartialEq for CompiledPrompt
impl StructuralPartialEq for CompiledPrompt
Auto Trait Implementations§
impl Freeze for CompiledPrompt
impl RefUnwindSafe for CompiledPrompt
impl Send for CompiledPrompt
impl Sync for CompiledPrompt
impl Unpin for CompiledPrompt
impl UnsafeUnpin for CompiledPrompt
impl UnwindSafe for CompiledPrompt
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