pub struct GraphPlan {
pub config: GraphConfig,
pub nodes: Vec<GraphPlanNode>,
pub edges: Vec<GraphPlanEdge>,
/* private fields */
}Expand description
展开并完成配置语义校验后的不可变建图计划。
计划阶段不查询 kernel registry、不创建 executor、不启动线程;运行时建图和
lmflow check-config 都消费同一个计划,避免“预检通过但实际建图失败”的两套规则。
Fields§
§config: GraphConfig§nodes: Vec<GraphPlanNode>§edges: Vec<GraphPlanEdge>Implementations§
Source§impl GraphPlan
impl GraphPlan
pub fn build(config: GraphConfig) -> Result<Self>
Sourcepub fn to_dot(&self) -> String
pub fn to_dot(&self) -> String
Export the validated static plan as Graphviz DOT without loading kernels or executors.
pub fn diagnostics(&self) -> Vec<GraphPlanDiagnostic>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphPlan
impl RefUnwindSafe for GraphPlan
impl Send for GraphPlan
impl Sync for GraphPlan
impl Unpin for GraphPlan
impl UnsafeUnpin for GraphPlan
impl UnwindSafe for GraphPlan
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