pub enum SystemPromptKind {
Inline(String),
Preset {
append: Option<String>,
exclude_dynamic_sections: Option<bool>,
},
File(PathBuf),
}Expand description
System-prompt configuration. Wraps the CLI’s discriminated union of
str | SystemPromptPreset | SystemPromptFile.
Variants§
Inline(String)
Plain string override - --system-prompt <text>.
Preset
Preset (currently only claude_code) with optional append + the
exclude_dynamic_sections signal that rides along inside the
initialize control_request instead of argv.
Fields
File(PathBuf)
File-backed prompt - --system-prompt-file <path>.
Implementations§
Source§impl SystemPromptKind
impl SystemPromptKind
Sourcepub fn preset_append(append: impl Into<String>) -> Self
pub fn preset_append(append: impl Into<String>) -> Self
Convenience constructor for the claude_code preset with an
append string. Wire shape:
{"type": "preset", "preset": "claude_code", "append": ...}.
Trait Implementations§
Source§impl Clone for SystemPromptKind
impl Clone for SystemPromptKind
Source§impl Debug for SystemPromptKind
impl Debug for SystemPromptKind
impl Eq for SystemPromptKind
Source§impl PartialEq for SystemPromptKind
impl PartialEq for SystemPromptKind
impl StructuralPartialEq for SystemPromptKind
Auto Trait Implementations§
impl Freeze for SystemPromptKind
impl RefUnwindSafe for SystemPromptKind
impl Send for SystemPromptKind
impl Sync for SystemPromptKind
impl Unpin for SystemPromptKind
impl UnsafeUnpin for SystemPromptKind
impl UnwindSafe for SystemPromptKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.