pub struct SystemGenerator { /* private fields */ }Expand description
System Generator Engine
Implementations§
Source§impl SystemGenerator
impl SystemGenerator
Sourcepub fn new(config: IntelligentBehaviorConfig) -> Self
pub fn new(config: IntelligentBehaviorConfig) -> Self
Create a new system generator
Sourcepub fn with_freeze_dir<P: AsRef<Path>>(
config: IntelligentBehaviorConfig,
freeze_dir: P,
) -> Self
pub fn with_freeze_dir<P: AsRef<Path>>( config: IntelligentBehaviorConfig, freeze_dir: P, ) -> Self
Create with custom artifact freezer directory
Sourcepub async fn generate(
&self,
request: &SystemGenerationRequest,
deterministic_config: Option<&DeterministicModeConfig>,
) -> Result<GeneratedSystem>
pub async fn generate( &self, request: &SystemGenerationRequest, deterministic_config: Option<&DeterministicModeConfig>, ) -> Result<GeneratedSystem>
Generate a complete system from natural language description
If deterministic mode is enabled with auto-freeze, artifacts are automatically frozen.
Sourcepub async fn freeze_system_artifacts(
&self,
system_id: &str,
version: &str,
artifacts: &HashMap<String, SystemArtifact>,
_deterministic_config: Option<&DeterministicModeConfig>,
) -> Result<Vec<String>>
pub async fn freeze_system_artifacts( &self, system_id: &str, version: &str, artifacts: &HashMap<String, SystemArtifact>, _deterministic_config: Option<&DeterministicModeConfig>, ) -> Result<Vec<String>>
Freeze system artifacts (used for manual freeze or auto-freeze)
Sourcepub async fn apply_system_design(
&self,
system: &GeneratedSystem,
deterministic_config: Option<&DeterministicModeConfig>,
artifact_ids: Option<Vec<String>>,
) -> Result<AppliedSystem>
pub async fn apply_system_design( &self, system: &GeneratedSystem, deterministic_config: Option<&DeterministicModeConfig>, artifact_ids: Option<Vec<String>>, ) -> Result<AppliedSystem>
Apply system design (freeze artifacts if deterministic mode requires it)
This is called when user clicks “Apply system design” button. If deterministic mode is “auto”, artifacts are already frozen. If deterministic mode is “manual”, this freezes them now.
Sourcepub async fn freeze_artifacts(
&self,
system: &GeneratedSystem,
artifact_ids: Vec<String>,
) -> Result<Vec<String>>
pub async fn freeze_artifacts( &self, system: &GeneratedSystem, artifact_ids: Vec<String>, ) -> Result<Vec<String>>
Manually freeze specific artifacts
Auto Trait Implementations§
impl Freeze for SystemGenerator
impl !RefUnwindSafe for SystemGenerator
impl Send for SystemGenerator
impl Sync for SystemGenerator
impl Unpin for SystemGenerator
impl UnsafeUnpin for SystemGenerator
impl !UnwindSafe for SystemGenerator
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