pub struct ScenarioActionDef {
pub name: String,
pub description: String,
pub category: ScenarioActionCategory,
pub params: Vec<ActionParamDef>,
pub example: Option<String>,
}Expand description
Action 定義(TOML 用)
シナリオで利用可能なアクションを定義する。 Core の ActionsConfig に変換される。
Fields§
§name: StringAction 名
description: String説明(LLM プロンプト用)
category: ScenarioActionCategoryカテゴリ(探索空間への影響)
params: Vec<ActionParamDef>パラメータ定義
example: Option<String>出力例(LLM プロンプト用 JSON 形式)
Trait Implementations§
Source§impl Clone for ScenarioActionDef
impl Clone for ScenarioActionDef
Source§fn clone(&self) -> ScenarioActionDef
fn clone(&self) -> ScenarioActionDef
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 ScenarioActionDef
impl Debug for ScenarioActionDef
Source§impl<'de> Deserialize<'de> for ScenarioActionDef
impl<'de> Deserialize<'de> for ScenarioActionDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScenarioActionDef
impl RefUnwindSafe for ScenarioActionDef
impl Send for ScenarioActionDef
impl Sync for ScenarioActionDef
impl Unpin for ScenarioActionDef
impl UnwindSafe for ScenarioActionDef
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