pub struct PromptOrchestrator { /* private fields */ }Expand description
Prompt orchestrator - manages prompt assembly
Implementations§
Source§impl PromptOrchestrator
impl PromptOrchestrator
Sourcepub fn with_cache(self, cache: Arc<SectionCache>) -> Self
pub fn with_cache(self, cache: Arc<SectionCache>) -> Self
Create with shared cache
Sourcepub fn with_profile(self, profile: PromptProfile) -> Self
pub fn with_profile(self, profile: PromptProfile) -> Self
Set profile
Sourcepub fn with_boundary(self, include: bool) -> Self
pub fn with_boundary(self, include: bool) -> Self
Set whether to include cache boundary
Sourcepub fn with_context_injection(self, inject: bool) -> Self
pub fn with_context_injection(self, inject: bool) -> Self
Set whether to inject context
Sourcepub fn add_section(&mut self, section: PromptSection) -> &mut Self
pub fn add_section(&mut self, section: PromptSection) -> &mut Self
Add a section
Sourcepub fn add_sections(&mut self, sections: Vec<PromptSection>) -> &mut Self
pub fn add_sections(&mut self, sections: Vec<PromptSection>) -> &mut Self
Add multiple sections
Sourcepub fn clear_sections(&mut self) -> &mut Self
pub fn clear_sections(&mut self) -> &mut Self
Clear all sections
Sourcepub fn invalidate_cache(&mut self)
pub fn invalidate_cache(&mut self)
Invalidate cache (e.g., when context changes)
Sourcepub fn assemble(&mut self) -> AssembledPrompt
pub fn assemble(&mut self) -> AssembledPrompt
Assemble the full prompt
Sourcepub fn assemble_for_profile(
&mut self,
profile: PromptProfile,
) -> AssembledPrompt
pub fn assemble_for_profile( &mut self, profile: PromptProfile, ) -> AssembledPrompt
Assemble prompt for specific profile
Sourcepub fn cache_stats(&self) -> CacheStats
pub fn cache_stats(&self) -> CacheStats
Get cache statistics
Sourcepub fn get_user_context(&mut self) -> &UserContext
pub fn get_user_context(&mut self) -> &UserContext
Get user context
Sourcepub fn get_system_context(&mut self) -> &SystemContext
pub fn get_system_context(&mut self) -> &SystemContext
Get system context
Auto Trait Implementations§
impl Freeze for PromptOrchestrator
impl !RefUnwindSafe for PromptOrchestrator
impl Send for PromptOrchestrator
impl Sync for PromptOrchestrator
impl Unpin for PromptOrchestrator
impl UnsafeUnpin for PromptOrchestrator
impl !UnwindSafe for PromptOrchestrator
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