pub struct Harness { /* private fields */ }Expand description
Application-facing harness for one complete model turn.
A turn advertises policy-approved tools, executes validated native calls, returns tool results to the model, and finishes with locally validated structured output.
Implementations§
Source§impl Harness
impl Harness
Sourcepub fn new(model: impl Model + 'static) -> Self
pub fn new(model: impl Model + 'static) -> Self
Creates a deny-by-default harness backed by the local filesystem.
Sourcepub fn repository(self, repository_root: impl Into<PathBuf>) -> Self
pub fn repository(self, repository_root: impl Into<PathBuf>) -> Self
Roots repository-scoped tools at repository_root.
Sourcepub fn file_system(self, file_system: impl FileSystem + 'static) -> Self
pub fn file_system(self, file_system: impl FileSystem + 'static) -> Self
Replaces the local filesystem implementation.
Sourcepub fn max_tool_calls(self, max_tool_calls: NonZeroUsize) -> Self
pub fn max_tool_calls(self, max_tool_calls: NonZeroUsize) -> Self
Overrides the maximum number of native calls allowed in one turn.
Auto Trait Implementations§
impl !RefUnwindSafe for Harness
impl !UnwindSafe for Harness
impl Freeze for Harness
impl Send for Harness
impl Sync for Harness
impl Unpin for Harness
impl UnsafeUnpin for Harness
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