pub enum SystemPromptMode {
Minimal,
Lightweight,
Default,
Specialized,
}Expand description
System prompt mode (inspired by pi-coding-agent philosophy) Controls verbosity and complexity of system prompts sent to models
Variants§
Minimal
Minimal prompt (~500 tokens base) - Pi-inspired, modern models need less guidance Best for: Power users, token-constrained contexts, fast responses
Lightweight
Lightweight prompt (~750 tokens base) - Essential guidance only Best for: Resource-constrained operations, simple tasks
Default
Default prompt (~900 tokens base) - Full guidance with all features Best for: General usage, comprehensive error handling
Specialized
Specialized prompt (~900 tokens base) - Complex refactoring and analysis Best for: Multi-file changes, sophisticated code analysis
Implementations§
Trait Implementations§
Source§impl Clone for SystemPromptMode
impl Clone for SystemPromptMode
impl Copy for SystemPromptMode
Source§impl Debug for SystemPromptMode
impl Debug for SystemPromptMode
Source§impl Default for SystemPromptMode
impl Default for SystemPromptMode
Source§impl<'de> Deserialize<'de> for SystemPromptMode
impl<'de> Deserialize<'de> for SystemPromptMode
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SystemPromptMode
impl Display for SystemPromptMode
impl Eq for SystemPromptMode
Source§impl JsonSchema for SystemPromptMode
impl JsonSchema for SystemPromptMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SystemPromptMode
impl PartialEq for SystemPromptMode
Source§impl Serialize for SystemPromptMode
impl Serialize for SystemPromptMode
impl StructuralPartialEq for SystemPromptMode
Auto Trait Implementations§
impl Freeze for SystemPromptMode
impl RefUnwindSafe for SystemPromptMode
impl Send for SystemPromptMode
impl Sync for SystemPromptMode
impl Unpin for SystemPromptMode
impl UnsafeUnpin for SystemPromptMode
impl UnwindSafe for SystemPromptMode
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<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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more