pub enum Prompt {
Text(String),
Messages,
}Expand description
Prompt type for the transport layer.
Determines whether the CLI is invoked with a text prompt on the command line or in streaming message mode (input via stdin).
Variants§
Text(String)
A text prompt passed as a CLI argument.
Messages
Streaming message mode — input is provided via stdin as JSON messages.
Trait Implementations§
impl Eq for Prompt
impl StructuralPartialEq for Prompt
Auto Trait Implementations§
impl Freeze for Prompt
impl RefUnwindSafe for Prompt
impl Send for Prompt
impl Sync for Prompt
impl Unpin for Prompt
impl UnsafeUnpin for Prompt
impl UnwindSafe for Prompt
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