pub struct PromptTemplates;
Expand description
Prompt template collection
Implementations§
Source§impl PromptTemplates
impl PromptTemplates
Sourcepub fn base_system_prompt() -> &'static str
pub fn base_system_prompt() -> &'static str
Get base system prompt
Sourcepub fn personality_prompt(personality: &AgentPersonality) -> &'static str
pub fn personality_prompt(personality: &AgentPersonality) -> &'static str
Get personality-specific prompt addition
Sourcepub fn response_style_prompt(style: &ResponseStyle) -> &'static str
pub fn response_style_prompt(style: &ResponseStyle) -> &'static str
Get response style prompt addition
Sourcepub fn tool_usage_prompt() -> &'static str
pub fn tool_usage_prompt() -> &'static str
Get tool usage prompt
Sourcepub fn workspace_context_prompt() -> &'static str
pub fn workspace_context_prompt() -> &'static str
Get workspace context prompt
Sourcepub fn safety_guidelines_prompt() -> &'static str
pub fn safety_guidelines_prompt() -> &'static str
Get safety guidelines prompt
Sourcepub fn pagination_guidelines_prompt() -> &'static str
pub fn pagination_guidelines_prompt() -> &'static str
Get pagination guidelines prompt
Auto Trait Implementations§
impl Freeze for PromptTemplates
impl RefUnwindSafe for PromptTemplates
impl Send for PromptTemplates
impl Sync for PromptTemplates
impl Unpin for PromptTemplates
impl UnwindSafe for PromptTemplates
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more