pub struct PromptCache { /* private fields */ }Implementations§
Source§impl PromptCache
impl PromptCache
pub fn new() -> Self
pub fn read_file(&self, path: &Path) -> Result<String>
pub fn render_tool_manifest(&self, tools: &[ToolDefinition]) -> String
pub fn disk_read_count(&self) -> usize
Trait Implementations§
Source§impl Debug for PromptCache
impl Debug for PromptCache
Source§impl Default for PromptCache
impl Default for PromptCache
Source§fn default() -> PromptCache
fn default() -> PromptCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for PromptCache
impl RefUnwindSafe for PromptCache
impl Send for PromptCache
impl Sync for PromptCache
impl Unpin for PromptCache
impl UnsafeUnpin for PromptCache
impl UnwindSafe for PromptCache
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