using System; using System.Collections.Generic; using StabilityMatrix.Core.Models.Api.Comfy.NodeTypes; using StabilityMatrix.Core.Models.Api.Comfy.Nodes; namespace StabilityMatrix.Avalonia.Models.Inference; /// /// Event args for applying a . /// public class ModuleApplyStepEventArgs : EventArgs { public required ComfyNodeBuilder Builder { get; init; } public NodeDictionary Nodes => Builder.Nodes; public ModuleApplyStepTemporaryArgs Temp { get; } = new(); /// /// Index of the step in the pipeline. /// public int StepIndex { get; init; } /// /// Index /// public int StepTypeIndex { get; init; } /// /// Generation overrides (like hires fix generate, current seed generate, etc.) /// public IReadOnlyDictionary IsEnabledOverrides { get; init; } = new Dictionary(); public class ModuleApplyStepTemporaryArgs { /// /// Temporary conditioning apply step, used by samplers to apply control net. /// public ConditioningConnections? Conditioning { get; set; } /// /// Temporary refiner conditioning apply step, used by samplers to apply control net. /// public ConditioningConnections? RefinerConditioning { get; set; } /// /// Temporary model apply step, used by samplers to apply control net. /// public ModelNodeConnection? Model { get; set; } } }