pub struct AssembledPrompt {
pub prompt: String,
pub cached_sections: usize,
pub dynamic_sections: usize,
pub cached_tokens: usize,
pub dynamic_tokens: usize,
pub total_tokens: usize,
pub cache_hit_rate: f64,
pub profile: PromptProfile,
}Expand description
Assembled prompt with metadata
Fields§
§prompt: StringThe full prompt text
cached_sections: usizeNumber of cached sections
dynamic_sections: usizeNumber of dynamic sections
cached_tokens: usizeEstimated cached tokens
dynamic_tokens: usizeEstimated dynamic tokens
total_tokens: usizeTotal estimated tokens
cache_hit_rate: f64Cache hit rate
profile: PromptProfileProfile used
Implementations§
Trait Implementations§
Source§impl Clone for AssembledPrompt
impl Clone for AssembledPrompt
Source§fn clone(&self) -> AssembledPrompt
fn clone(&self) -> AssembledPrompt
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 AssembledPrompt
impl RefUnwindSafe for AssembledPrompt
impl Send for AssembledPrompt
impl Sync for AssembledPrompt
impl Unpin for AssembledPrompt
impl UnsafeUnpin for AssembledPrompt
impl UnwindSafe for AssembledPrompt
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