pub struct DefaultPromptManager { /* private fields */ }Expand description
Default prompt manager that delegates to existing runner functions.
Implementations§
Source§impl DefaultPromptManager
impl DefaultPromptManager
pub fn new(tools: Arc<dyn ToolExecutor>) -> Self
Trait Implementations§
Source§impl PromptManager for DefaultPromptManager
impl PromptManager for DefaultPromptManager
Source§fn assemble_prompt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 mut Session,
config: &'life2 AgentLoopConfig,
) -> Pin<Box<dyn Future<Output = PromptAssemblyOutput> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn assemble_prompt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 mut Session,
config: &'life2 AgentLoopConfig,
) -> Pin<Box<dyn Future<Output = PromptAssemblyOutput> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Assemble the full system prompt for the given session and config.
Source§fn refresh_external_memory<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 mut Session,
config: &'life2 AgentLoopConfig,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn refresh_external_memory<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 mut Session,
config: &'life2 AgentLoopConfig,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Refresh external memory injection into an existing system message.
Source§fn refresh_task_list(&self, session: &mut Session)
fn refresh_task_list(&self, session: &mut Session)
Refresh the task list section in the system prompt.
Auto Trait Implementations§
impl Freeze for DefaultPromptManager
impl !RefUnwindSafe for DefaultPromptManager
impl Send for DefaultPromptManager
impl Sync for DefaultPromptManager
impl Unpin for DefaultPromptManager
impl UnsafeUnpin for DefaultPromptManager
impl !UnwindSafe for DefaultPromptManager
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