#[non_exhaustive]pub struct AutomaticPlanRequest {
pub schema_version: u32,
pub model_path: PathBuf,
pub device: DevicePlan,
pub prior_telemetry: Vec<ExecutionTelemetry>,
}Expand description
Owned input to one automatic planning session.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schema_version: u32Version of this serialized request.
model_path: PathBufLocal model directory or GGUF checkpoint to inspect.
device: DevicePlanSingle execution device to plan for.
prior_telemetry: Vec<ExecutionTelemetry>Completed runtime observations from earlier sessions.
Implementations§
Source§impl AutomaticPlanRequest
impl AutomaticPlanRequest
Sourcepub fn new(model_path: impl Into<PathBuf>, device: DevicePlan) -> Self
pub fn new(model_path: impl Into<PathBuf>, device: DevicePlan) -> Self
Creates a request with no historical runtime feedback.
Sourcepub fn with_prior_telemetry(
self,
telemetry: impl IntoIterator<Item = ExecutionTelemetry>,
) -> Self
pub fn with_prior_telemetry( self, telemetry: impl IntoIterator<Item = ExecutionTelemetry>, ) -> Self
Adds completed telemetry for consideration during this planning session.
Trait Implementations§
Source§impl Clone for AutomaticPlanRequest
impl Clone for AutomaticPlanRequest
Source§fn clone(&self) -> AutomaticPlanRequest
fn clone(&self) -> AutomaticPlanRequest
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 AutomaticPlanRequest
impl Debug for AutomaticPlanRequest
Source§impl<'de> Deserialize<'de> for AutomaticPlanRequest
impl<'de> Deserialize<'de> for AutomaticPlanRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AutomaticPlanRequest
impl PartialEq for AutomaticPlanRequest
Source§impl Serialize for AutomaticPlanRequest
impl Serialize for AutomaticPlanRequest
impl StructuralPartialEq for AutomaticPlanRequest
Auto Trait Implementations§
impl Freeze for AutomaticPlanRequest
impl RefUnwindSafe for AutomaticPlanRequest
impl Send for AutomaticPlanRequest
impl Sync for AutomaticPlanRequest
impl Unpin for AutomaticPlanRequest
impl UnsafeUnpin for AutomaticPlanRequest
impl UnwindSafe for AutomaticPlanRequest
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