pub struct OpenCodeHarness<'runtime> {
pub runner: &'runtime dyn OpenCodeRunner,
pub unrestricted: bool,
}Fields§
§runner: &'runtime dyn OpenCodeRunner§unrestricted: boolTrait Implementations§
Source§impl ChatHarness for OpenCodeHarness<'_>
impl ChatHarness for OpenCodeHarness<'_>
fn name(&self) -> &'static str
fn available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn chat<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
input: &'life1 HarnessRequest,
cancel: &'life2 CancellationToken,
sink: &'life3 mut DeltaSink<'life4>,
) -> Pin<Box<dyn Future<Output = Result<String, HarnessError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Auto Trait Implementations§
impl<'runtime> !RefUnwindSafe for OpenCodeHarness<'runtime>
impl<'runtime> !UnwindSafe for OpenCodeHarness<'runtime>
impl<'runtime> Forget for OpenCodeHarness<'runtime>
impl<'runtime> Freeze for OpenCodeHarness<'runtime>
impl<'runtime> Send for OpenCodeHarness<'runtime>
impl<'runtime> Sync for OpenCodeHarness<'runtime>
impl<'runtime> Unpin for OpenCodeHarness<'runtime>
impl<'runtime> UnsafeUnpin for OpenCodeHarness<'runtime>
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