pub struct Request { /* private fields */ }Implementations§
Source§impl Request
impl Request
pub fn new(prompt: impl Into<String>) -> Self
pub fn with_runner(self, runner: RunnerKind) -> Self
pub fn with_provider(self, provider: impl Into<String>) -> Self
pub fn with_agent(self, agent: impl Into<String>) -> Self
pub fn with_thinking(self, thinking: i32) -> Self
pub fn with_show_thinking(self, enabled: bool) -> Self
pub fn with_sanitize_osc(self, enabled: bool) -> Self
pub fn with_permission_mode(self, mode: impl Into<String>) -> Self
pub fn with_save_session(self, enabled: bool) -> Self
pub fn with_cleanup_session(self, enabled: bool) -> Self
pub fn with_model(self, model: impl Into<String>) -> Self
pub fn with_output_mode(self, output_mode: OutputMode) -> Self
pub fn prompt(&self) -> &str
pub fn runner(&self) -> Option<RunnerKind>
pub fn provider(&self) -> Option<&str>
pub fn model(&self) -> Option<&str>
pub fn output_mode(&self) -> Option<OutputMode>
Trait Implementations§
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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