pub struct StaticSystemPrompt { /* private fields */ }Expand description
Static system prompt that always returns the same text.
Implementations§
Trait Implementations§
Source§impl<Deps: Send + Sync> SystemPromptFn<Deps> for StaticSystemPrompt
impl<Deps: Send + Sync> SystemPromptFn<Deps> for StaticSystemPrompt
Source§fn generate<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 RunContext<Deps>,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn generate<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 RunContext<Deps>,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Generate system prompt text based on the run context. Read more
Auto Trait Implementations§
impl Freeze for StaticSystemPrompt
impl RefUnwindSafe for StaticSystemPrompt
impl Send for StaticSystemPrompt
impl Sync for StaticSystemPrompt
impl Unpin for StaticSystemPrompt
impl UnwindSafe for StaticSystemPrompt
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