pub struct SlashCommandAgentPromptResult {
pub display_prompt: String,
pub kind: SlashCommandAgentPromptResultKind,
pub mode: Option<SessionMode>,
pub prompt: String,
pub runtime_settings_changed: Option<bool>,
}Expand description
Schema for the SlashCommandAgentPromptResult type.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§display_prompt: StringPrompt text to display to the user
kind: SlashCommandAgentPromptResultKindAgent prompt result discriminator
mode: Option<SessionMode>Optional target session mode for the agent prompt
prompt: StringPrompt to submit to the agent
runtime_settings_changed: Option<bool>True when the invocation mutated user runtime settings; consumers caching settings should refresh
Trait Implementations§
Source§impl Clone for SlashCommandAgentPromptResult
impl Clone for SlashCommandAgentPromptResult
Source§fn clone(&self) -> SlashCommandAgentPromptResult
fn clone(&self) -> SlashCommandAgentPromptResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SlashCommandAgentPromptResult
impl Default for SlashCommandAgentPromptResult
Source§fn default() -> SlashCommandAgentPromptResult
fn default() -> SlashCommandAgentPromptResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlashCommandAgentPromptResult
impl<'de> Deserialize<'de> for SlashCommandAgentPromptResult
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
Auto Trait Implementations§
impl Freeze for SlashCommandAgentPromptResult
impl RefUnwindSafe for SlashCommandAgentPromptResult
impl Send for SlashCommandAgentPromptResult
impl Sync for SlashCommandAgentPromptResult
impl Unpin for SlashCommandAgentPromptResult
impl UnsafeUnpin for SlashCommandAgentPromptResult
impl UnwindSafe for SlashCommandAgentPromptResult
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