pub struct HarnessCall { /* private fields */ }Expand description
Sends one prompt through a harness’s non-interactive interface.
Implementations§
Source§impl HarnessCall
impl HarnessCall
Sourcepub fn new(harness: HeadlessHarness, prompt: impl Into<OsString>) -> Self
pub fn new(harness: HeadlessHarness, prompt: impl Into<OsString>) -> Self
Uses the harness’s default program with its default model and effort.
Sourcepub fn options(self, options: &HarnessOptions) -> Self
pub fn options(self, options: &HarnessOptions) -> Self
Uses the model and the effort the options name.
An option that names neither keeps the harness default.
Sourcepub fn harness(&self) -> HeadlessHarness
pub fn harness(&self) -> HeadlessHarness
The harness that receives the prompt.
Trait Implementations§
Source§impl Clone for HarnessCall
impl Clone for HarnessCall
Source§impl Debug for HarnessCall
impl Debug for HarnessCall
impl Eq for HarnessCall
Source§impl PartialEq for HarnessCall
impl PartialEq for HarnessCall
impl StructuralPartialEq for HarnessCall
Auto Trait Implementations§
impl Forget for HarnessCall
impl Freeze for HarnessCall
impl Move for HarnessCall
impl RefUnwindSafe for HarnessCall
impl Send for HarnessCall
impl Sync for HarnessCall
impl Unpin for HarnessCall
impl UnsafeUnpin for HarnessCall
impl UnwindSafe for HarnessCall
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