pub enum ShellPromptProfile {
Auto,
UnixLike,
PowerShell,
}Expand description
Configured shell syntax profile used for model-facing command examples.
This is prompt guidance only. Command approval, sandboxing, and allow-list policy are enforced elsewhere in the runtime.
Variants§
Auto
Detect from the current platform. Unix-like shells are used for Linux, macOS, and WSL. Native Windows uses PowerShell.
UnixLike
Use Unix-like shell syntax in prompt examples.
PowerShell
Use native PowerShell syntax in prompt examples.
The canonical wire value is powershell (matching Self::as_str,
Self::allowed_values, and the docs); snake_case would otherwise
render it as the drifting power_shell.
Implementations§
Source§impl ShellPromptProfile
impl ShellPromptProfile
Sourcepub fn allowed_values() -> &'static [&'static str]
pub fn allowed_values() -> &'static [&'static str]
Allowed configuration values for validation.
Sourcepub fn resolve_for_current_platform(self) -> ResolvedShellPromptProfile
pub fn resolve_for_current_platform(self) -> ResolvedShellPromptProfile
Resolve this configured value against the current runtime platform.
Trait Implementations§
Source§impl Clone for ShellPromptProfile
impl Clone for ShellPromptProfile
impl Copy for ShellPromptProfile
Source§impl Debug for ShellPromptProfile
impl Debug for ShellPromptProfile
Source§impl Default for ShellPromptProfile
impl Default for ShellPromptProfile
Source§impl<'de> Deserialize<'de> for ShellPromptProfile
impl<'de> Deserialize<'de> for ShellPromptProfile
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 ShellPromptProfile
impl Display for ShellPromptProfile
impl Eq for ShellPromptProfile
Source§impl JsonSchema for ShellPromptProfile
impl JsonSchema for ShellPromptProfile
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 ShellPromptProfile
impl PartialEq for ShellPromptProfile
Source§impl Serialize for ShellPromptProfile
impl Serialize for ShellPromptProfile
impl StructuralPartialEq for ShellPromptProfile
Auto Trait Implementations§
impl Freeze for ShellPromptProfile
impl RefUnwindSafe for ShellPromptProfile
impl Send for ShellPromptProfile
impl Sync for ShellPromptProfile
impl Unpin for ShellPromptProfile
impl UnsafeUnpin for ShellPromptProfile
impl UnwindSafe for ShellPromptProfile
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