pub enum PromptMode {
SingleShot(String),
Streaming(String),
}Expand description
How the session receives its prompt.
Variants§
SingleShot(String)
One-shot: prompt passed at spawn, session ends after the final result.
Streaming(String)
Streaming input (--input-format stream-json): initial prompt sent as
the first user message; further messages may be injected while live.
Used by the long-lived orchestrator session (§4.1).
Trait Implementations§
Source§impl Clone for PromptMode
impl Clone for PromptMode
Source§fn clone(&self) -> PromptMode
fn clone(&self) -> PromptMode
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 moreAuto Trait Implementations§
impl Freeze for PromptMode
impl RefUnwindSafe for PromptMode
impl Send for PromptMode
impl Sync for PromptMode
impl Unpin for PromptMode
impl UnsafeUnpin for PromptMode
impl UnwindSafe for PromptMode
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