pub struct Harness<'e> { /* private fields */ }Implementations§
Source§impl<'e> Harness<'e>
impl<'e> Harness<'e>
Sourcepub fn new(
soul: Soul,
engine: &'e dyn InferenceEngine,
config: &'e Config,
) -> Self
pub fn new( soul: Soul, engine: &'e dyn InferenceEngine, config: &'e Config, ) -> Self
Create with embedded default corpus and default transform policy.
Sourcepub fn new_with_transformer(
transformer: SplitBrainTransformer,
engine: &'e dyn InferenceEngine,
config: &'e Config,
) -> Self
pub fn new_with_transformer( transformer: SplitBrainTransformer, engine: &'e dyn InferenceEngine, config: &'e Config, ) -> Self
Create with a pre-built transformer (custom corpus / policy).
Sourcepub async fn analyze(&self, input: &str) -> Result<HarnessResult>
pub async fn analyze(&self, input: &str) -> Result<HarnessResult>
Two-stage pipeline:
- Propose — logic node (with context pack augmentation) produces TelemetryResult
- Verify — deterministic checks ± optional LLM verifier pass
If the model returns non-JSON or a refusal, a safe fallback HarnessResult is returned instead of an error. Backend connectivity failures still propagate as errors.
Auto Trait Implementations§
impl<'e> !RefUnwindSafe for Harness<'e>
impl<'e> !UnwindSafe for Harness<'e>
impl<'e> Freeze for Harness<'e>
impl<'e> Send for Harness<'e>
impl<'e> Sync for Harness<'e>
impl<'e> Unpin for Harness<'e>
impl<'e> UnsafeUnpin for Harness<'e>
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