pub enum PromptComponentSelection {
All,
Only(&'static [PromptComponentId]),
Exclude(&'static [PromptComponentId]),
None,
}Expand description
Selection strategy for which prompt components an agent wants included.
Prompt components contribute to the system prompt - the initial instructions given to the AI that shape its behavior. Examples include style mandates, autonomy level instructions, tool usage guidelines, etc.
Most agents want all components, but specialized agents (like memory manager) may want to exclude certain components (like autonomy instructions) because they have their own bespoke prompts.
Variants§
All
Include all available prompt components
Only(&'static [PromptComponentId])
Include only the specified prompt components
Exclude(&'static [PromptComponentId])
Include all except the specified prompt components
None
Exclude all prompt components (agent has its own complete prompt)
Trait Implementations§
Source§impl Clone for PromptComponentSelection
impl Clone for PromptComponentSelection
Source§fn clone(&self) -> PromptComponentSelection
fn clone(&self) -> PromptComponentSelection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PromptComponentSelection
impl Debug for PromptComponentSelection
impl Copy for PromptComponentSelection
Auto Trait Implementations§
impl Freeze for PromptComponentSelection
impl RefUnwindSafe for PromptComponentSelection
impl Send for PromptComponentSelection
impl Sync for PromptComponentSelection
impl Unpin for PromptComponentSelection
impl UnwindSafe for PromptComponentSelection
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreCreates a shared type from an unshared type.