pub struct RuntimeTaskSpec {
pub meta: ScenarioMeta,
pub task: TaskConfig,
pub llm: LlmConfig,
pub manager: ManagerConfig,
pub actions: ScenarioActions,
pub app_config: AppConfigTemplate,
pub environment: EnvironmentConfig,
pub agents: AgentsConfig,
pub conditions: EvalConditions,
pub working_dir: Option<PathBuf>,
}Expand description
Runtime Task Specification
CLI から直接タスクを指定して実行するための仕様。 EvalScenario をベースに、Task 部分のみ上書き可能。
Fields§
§meta: ScenarioMetaシナリオメタ情報
task: TaskConfigタスク定義(上書き可能)
llm: LlmConfigLLM 設定
manager: ManagerConfigManager 設定
actions: ScenarioActionsアクション定義
app_config: AppConfigTemplateアプリ設定
environment: EnvironmentConfig環境設定(上書き可能)
agents: AgentsConfigエージェント設定
conditions: EvalConditions成功/失敗条件
working_dir: Option<PathBuf>作業ディレクトリ(オプション)
Implementations§
Source§impl RuntimeTaskSpec
impl RuntimeTaskSpec
Sourcepub fn with_env_type(self, env_type: impl Into<String>) -> Self
pub fn with_env_type(self, env_type: impl Into<String>) -> Self
Environment の env_type を上書き
Sourcepub fn with_working_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn with_working_dir(self, dir: impl Into<PathBuf>) -> Self
作業ディレクトリを設定
Sourcepub fn with_max_ticks(self, max_ticks: u64) -> Self
pub fn with_max_ticks(self, max_ticks: u64) -> Self
max_ticks を上書き
Sourcepub fn into_eval_scenario(self) -> EvalScenario
pub fn into_eval_scenario(self) -> EvalScenario
EvalScenario に変換(Orchestrator 実行用)
RuntimeTaskSpec から EvalScenario を再構築する。 評価用の条件やマイルストーンは空になる。
Note: working_dir が設定されている場合、environment.params["working_dir"] に伝播される。
Sourcepub fn resolved_working_dir(&self) -> PathBuf
pub fn resolved_working_dir(&self) -> PathBuf
作業ディレクトリを取得(未設定の場合は cwd)
Trait Implementations§
Source§impl Clone for RuntimeTaskSpec
impl Clone for RuntimeTaskSpec
Source§fn clone(&self) -> RuntimeTaskSpec
fn clone(&self) -> RuntimeTaskSpec
Returns a duplicate of the value. Read more
1.0.0 · 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 RuntimeTaskSpec
impl Debug for RuntimeTaskSpec
Source§impl From<EvalScenario> for RuntimeTaskSpec
impl From<EvalScenario> for RuntimeTaskSpec
Source§fn from(scenario: EvalScenario) -> Self
fn from(scenario: EvalScenario) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuntimeTaskSpec
impl RefUnwindSafe for RuntimeTaskSpec
impl Send for RuntimeTaskSpec
impl Sync for RuntimeTaskSpec
impl Unpin for RuntimeTaskSpec
impl UnwindSafe for RuntimeTaskSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more