pub enum GuardrailProfile {
Auto,
Generic,
Zig,
Rust,
TypeScript,
C,
Go,
Elixir,
}Expand description
Built-in guardrail starter profiles.
Variants§
Auto
Infer the profile from the current project using project-detect.
Generic
Language-neutral fallback profile.
Zig
Zig starter profile.
Rust
Rust starter profile.
TypeScript
TypeScript starter profile.
C
C / C-family build-system starter profile.
Go
Go starter profile.
Elixir
Elixir starter profile.
Implementations§
Source§impl GuardrailProfile
impl GuardrailProfile
Sourcepub fn prompt_guidance(&self) -> &'static str
pub fn prompt_guidance(&self) -> &'static str
Concise prompt guidance for the agent, tailored to this profile.
Sourcepub fn default_after_write(&self) -> &'static [&'static str]
pub fn default_after_write(&self) -> &'static [&'static str]
Default after-write check commands for this profile.
Sourcepub fn from_project_kind(kind: &ProjectKind) -> Self
pub fn from_project_kind(kind: &ProjectKind) -> Self
Resolve a detected project kind to the nearest built-in profile.
Trait Implementations§
Source§impl Clone for GuardrailProfile
impl Clone for GuardrailProfile
Source§fn clone(&self) -> GuardrailProfile
fn clone(&self) -> GuardrailProfile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GuardrailProfile
impl Debug for GuardrailProfile
Source§impl<'de> Deserialize<'de> for GuardrailProfile
impl<'de> Deserialize<'de> for GuardrailProfile
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 PartialEq for GuardrailProfile
impl PartialEq for GuardrailProfile
Source§impl Serialize for GuardrailProfile
impl Serialize for GuardrailProfile
impl Copy for GuardrailProfile
impl Eq for GuardrailProfile
impl StructuralPartialEq for GuardrailProfile
Auto Trait Implementations§
impl Freeze for GuardrailProfile
impl RefUnwindSafe for GuardrailProfile
impl Send for GuardrailProfile
impl Sync for GuardrailProfile
impl Unpin for GuardrailProfile
impl UnsafeUnpin for GuardrailProfile
impl UnwindSafe for GuardrailProfile
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
Converts
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>
Converts
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