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
Auto 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