pub enum PromptDelivery {
Stdin,
File,
Env,
Arg,
}Expand description
How the rendered prompt reaches the agent process.
Stdin: prompt written to child stdin fd (zero shell risk)File: prompt written to temp file,{prompt_file}placeholder in command (near-zero risk)Env: prompt passed asORCH_PROMPTenv var (low risk)Arg:{prompt}substitution in shell command (requires shell_escape, default)
Variants§
Stdin
Write the rendered prompt to stdin.
File
Write the rendered prompt to a temporary file.
Env
Pass the rendered prompt via environment variable.
Arg
Substitute the rendered prompt into the command arguments.
Implementations§
Source§impl PromptDelivery
impl PromptDelivery
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Returns true when this is the default prompt-delivery mode.
Trait Implementations§
Source§impl Clone for PromptDelivery
impl Clone for PromptDelivery
Source§fn clone(&self) -> PromptDelivery
fn clone(&self) -> PromptDelivery
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 PromptDelivery
impl Debug for PromptDelivery
Source§impl Default for PromptDelivery
impl Default for PromptDelivery
Source§fn default() -> PromptDelivery
fn default() -> PromptDelivery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptDelivery
impl<'de> Deserialize<'de> for PromptDelivery
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptDelivery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptDelivery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PromptDelivery
impl PartialEq for PromptDelivery
Source§impl Serialize for PromptDelivery
impl Serialize for PromptDelivery
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PromptDelivery
impl Eq for PromptDelivery
impl StructuralPartialEq for PromptDelivery
Auto Trait Implementations§
impl Freeze for PromptDelivery
impl RefUnwindSafe for PromptDelivery
impl Send for PromptDelivery
impl Sync for PromptDelivery
impl Unpin for PromptDelivery
impl UnsafeUnpin for PromptDelivery
impl UnwindSafe for PromptDelivery
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
fn coerce_rc_to(self: Rc<X>) -> Rc<T>
fn coerce_box_to(self: Box<X>) -> Box<T>
fn coerce_ref_to(&self) -> &T
fn coerce_mut_to(&mut self) -> &mut T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request