pub struct BuildSystemPromptOptions {
pub custom_prompt: Option<String>,
pub force_system_prompt: Option<String>,
pub selected_tools: Vec<String>,
pub hidden_tools: Vec<String>,
pub tool_snippets: IndexMap<String, String>,
pub tool_guidelines: IndexMap<String, Vec<String>>,
pub prompt_guidelines: Vec<String>,
pub append_system_prompt: String,
pub sections: IndexMap<String, String>,
pub cwd: String,
pub context_files: Vec<ContextFile>,
pub skills: Vec<Skill>,
}Expand description
Options of one prompt build (camelCase on the wire,
sent to extensions as before_agent_start.systemPromptOptions and accepted back mutated).
Absent collections deserialise to the normalised defaults.
Fields§
§custom_prompt: Option<String>Custom prompt replacing the default preamble, tools, rules and docs (SYSTEM.md / CLI).
force_system_prompt: Option<String>Exact full replacement set by a before_agent_start handler (not recorded).
selected_tools: Vec<String>Active tools (default read, bash, edit, write).
Selected tools whose declarations are hidden (prepareLoadout).
tool_snippets: IndexMap<String, String>One-line snippet per tool; tools without one are not listed.
tool_guidelines: IndexMap<String, Vec<String>>Guideline bullets per tool.
prompt_guidelines: Vec<String>Extra guideline bullets.
append_system_prompt: StringAddendum (APPEND_SYSTEM.md / CLI, joined by \n\n).
sections: IndexMap<String, String>Custom sections keyed by tag name (^[a-z][a-z0-9_-]*$, not preamble).
cwd: StringWorking directory as shown to the model.
context_files: Vec<ContextFile>Context files.
skills: Vec<Skill>Loaded skills.
Trait Implementations§
Source§impl Clone for BuildSystemPromptOptions
impl Clone for BuildSystemPromptOptions
Source§impl Debug for BuildSystemPromptOptions
impl Debug for BuildSystemPromptOptions
Source§impl Default for BuildSystemPromptOptions
impl Default for BuildSystemPromptOptions
Source§impl<'de> Deserialize<'de> for BuildSystemPromptOptions
impl<'de> Deserialize<'de> for BuildSystemPromptOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for BuildSystemPromptOptions
Source§impl PartialEq for BuildSystemPromptOptions
impl PartialEq for BuildSystemPromptOptions
Source§impl Serialize for BuildSystemPromptOptions
impl Serialize for BuildSystemPromptOptions
impl StructuralPartialEq for BuildSystemPromptOptions
Auto Trait Implementations§
impl Freeze for BuildSystemPromptOptions
impl RefUnwindSafe for BuildSystemPromptOptions
impl Send for BuildSystemPromptOptions
impl Sync for BuildSystemPromptOptions
impl Unpin for BuildSystemPromptOptions
impl UnsafeUnpin for BuildSystemPromptOptions
impl UnwindSafe for BuildSystemPromptOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.