Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime Task Specification

CLI の run コマンド用のタスク仕様。 EvalScenario から継承し、Task だけ上書き可能。

§Example

use swarm_engine_eval::runtime::RuntimeTaskSpec;
use swarm_engine_eval::scenario::EvalScenario;

// シナリオファイルから読み込み
let scenario: EvalScenario = toml::from_str(&content)?;

// RuntimeTaskSpec に変換し、タスクを上書き
let spec = RuntimeTaskSpec::from(scenario)
    .with_task("Fix the authentication bug in src/auth.rs");

Structs§

RuntimeTaskSpec
Runtime Task Specification