pub struct SelectedExecutionPlanDrafting<P> { /* private fields */ }Expand description
An external-drafting selection inseparably bound to its complete execution plan.
Core creates this value after validating the target selection and drafting mode together. Native realization can therefore reject attempts to reuse a selected assistant under another model, transformation, placement, or proposal policy.
Implementations§
Source§impl<P> SelectedExecutionPlanDrafting<P>
impl<P> SelectedExecutionPlanDrafting<P>
Sourcepub fn into_external_artifact<B: BackendProvider>(
self,
plan: &ExecutionPlan,
target: &ModelRuntime<B>,
) -> Result<Option<ExternalDraftArtifact<P>>, AutomaticPlanningError>
pub fn into_external_artifact<B: BackendProvider>( self, plan: &ExecutionPlan, target: &ModelRuntime<B>, ) -> Result<Option<ExternalDraftArtifact<P>>, AutomaticPlanningError>
Consumes this selection after proving it belongs to plan.
Backend factory implementations use this at their realization boundary; a caller cannot extract and re-pair the selected assistant with another execution plan.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for SelectedExecutionPlanDrafting<P>
impl<P> RefUnwindSafe for SelectedExecutionPlanDrafting<P>
impl<P> Send for SelectedExecutionPlanDrafting<P>
impl<P> Sync for SelectedExecutionPlanDrafting<P>
impl<P> Unpin for SelectedExecutionPlanDrafting<P>
impl<P> UnsafeUnpin for SelectedExecutionPlanDrafting<P>
impl<P> UnwindSafe for SelectedExecutionPlanDrafting<P>
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