pub struct ForgeResolver { /* private fields */ }Expand description
Stateful FORGE resolver with an intent library index.
Implementations§
Source§impl ForgeResolver
impl ForgeResolver
Sourcepub fn new(library: IntentLibrary, lift_options: LiftOptions) -> Self
pub fn new(library: IntentLibrary, lift_options: LiftOptions) -> Self
Builds a resolver from an existing intent library and lift options.
Sourcepub fn new_with_verifiers(
library: IntentLibrary,
lift_options: LiftOptions,
verify_catalog: VerifyCatalog,
) -> Self
pub fn new_with_verifiers( library: IntentLibrary, lift_options: LiftOptions, verify_catalog: VerifyCatalog, ) -> Self
Builds a resolver from an existing intent library, lift options, and semantic verifier catalog.
Sourcepub fn library(&self) -> &IntentLibrary
pub fn library(&self) -> &IntentLibrary
Returns the intent library backing this resolver.
Sourcepub fn library_mut(&mut self) -> &mut IntentLibrary
pub fn library_mut(&mut self) -> &mut IntentLibrary
Returns a mutable handle to the intent library backing this resolver.
Sourcepub fn verify_catalog(&self) -> &VerifyCatalog
pub fn verify_catalog(&self) -> &VerifyCatalog
Returns the semantic verifier catalog backing this resolver.
Sourcepub fn verify_catalog_mut(&mut self) -> &mut VerifyCatalog
pub fn verify_catalog_mut(&mut self) -> &mut VerifyCatalog
Returns a mutable semantic verifier catalog handle.
Sourcepub fn resolve(
&mut self,
cx: &mut Cx,
target: &dyn EvalFabric,
prose: &str,
policy: PromotePolicy,
) -> Result<CompiledIntent>
pub fn resolve( &mut self, cx: &mut Cx, target: &dyn EvalFabric, prose: &str, policy: PromotePolicy, ) -> Result<CompiledIntent>
Resolves prose to a compiled intent, reusing a golden source hit.
A golden hit returns directly and does not call the lift fabric. A miss
lifts a structurally checked candidate, stores it in the named index,
and leaves it in Candidate state until semantic verification or human
approval exists.
Trait Implementations§
Source§impl Clone for ForgeResolver
impl Clone for ForgeResolver
Source§fn clone(&self) -> ForgeResolver
fn clone(&self) -> ForgeResolver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForgeResolver
impl Debug for ForgeResolver
Auto Trait Implementations§
impl Freeze for ForgeResolver
impl RefUnwindSafe for ForgeResolver
impl Send for ForgeResolver
impl Sync for ForgeResolver
impl Unpin for ForgeResolver
impl UnsafeUnpin for ForgeResolver
impl UnwindSafe for ForgeResolver
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