pub struct BuildSystemPromptOptions {
pub custom_prompt: Option<String>,
pub selected_tools: Option<Vec<String>>,
pub tool_snippets: Option<HashMap<String, String>>,
pub prompt_guidelines: Option<Vec<String>>,
pub append: Option<String>,
pub cwd: String,
pub context_files: Option<Vec<AgentsFile>>,
pub skills: Option<Vec<Skill>>,
}Expand description
Options for build_system_prompt.
Mirrors TypeScript BuildSystemPromptOptions. Field names are snake_case;
wire callers join multi-value append sources with "\n\n" before setting
Self::append.
Fields§
§custom_prompt: Option<String>Custom system prompt body (replaces the default identity/tools/guidelines/docs block).
Empty and None both take the default path (matches JS truthiness on customPrompt).
selected_tools: Option<Vec<String>>Tools considered active for snippets, guidelines, and the skills gate.
When None, defaults to read, bash, edit, write. An empty Vec
means no tools.
tool_snippets: Option<HashMap<String, String>>One-line tool snippets keyed by tool name. A tool appears under Available tools only when its snippet is present and non-empty.
prompt_guidelines: Option<Vec<String>>Extra guideline bullets (trimmed, de-duplicated, first-add wins).
append: Option<String>Text appended after the base/custom body (before project context).
Empty and None omit the append section.
cwd: StringWorking directory (required). Backslashes are normalized to / in the
final cwd line only.
context_files: Option<Vec<AgentsFile>>Pre-loaded project context files (AGENTS.md / CLAUDE.md).
skills: Option<Vec<Skill>>Pre-loaded skills (formatted via format_skills_for_prompt).
Trait Implementations§
Source§impl Clone for BuildSystemPromptOptions
impl Clone for BuildSystemPromptOptions
Source§fn clone(&self) -> BuildSystemPromptOptions
fn clone(&self) -> BuildSystemPromptOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BuildSystemPromptOptions
impl Debug for BuildSystemPromptOptions
Source§impl Default for BuildSystemPromptOptions
impl Default for BuildSystemPromptOptions
Source§fn default() -> BuildSystemPromptOptions
fn default() -> 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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