pub struct PromptMode {
pub engineering: bool,
pub always_skills: Vec<String>,
pub no_skills: bool,
pub no_context_files: bool,
pub persona: bool,
pub model: String,
}Expand description
What the settings change about the system prompt. Engineering mode (the engineering setting, /engineering,
/mode) puts the always-on skills (alwaysSkills) in the prompt; off, they are listed like any skill.
Fields§
§engineering: bool§always_skills: Vec<String>§no_skills: bool--no-skills: no skills listed (bundled ones included), none always on.
no_context_files: bool--no-context-files: no AGENTS.md / CLAUDE.md.
persona: bool"persona": "ultron": <agent dir>/personality.md is a section of the prompt (resources::persona), read
when the prompt renders (session start, a change of the mode), never per request.
model: StringThe id of the model the prompt is for: its family’s notes are a section (resources::model_notes) under the Rust guide. Empty: none.
Implementations§
Source§impl PromptMode
impl PromptMode
Sourcepub fn from_settings(settings: &SettingsManager) -> PromptMode
pub fn from_settings(settings: &SettingsManager) -> PromptMode
getEngineering and getAlwaysSkills (the string entries of alwaysSkills).
Trait Implementations§
Source§impl Clone for PromptMode
impl Clone for PromptMode
Source§impl Debug for PromptMode
impl Debug for PromptMode
Source§impl Default for PromptMode
impl Default for PromptMode
impl Eq for PromptMode
Source§impl PartialEq for PromptMode
impl PartialEq for PromptMode
impl StructuralPartialEq for PromptMode
Auto Trait Implementations§
impl Forget for PromptMode
impl Freeze for PromptMode
impl Move for PromptMode
impl RefUnwindSafe for PromptMode
impl Send for PromptMode
impl Sync for PromptMode
impl Unpin for PromptMode
impl UnsafeUnpin for PromptMode
impl UnwindSafe for PromptMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.