pub struct ActionsConfig { /* private fields */ }Expand description
Actions 統一管理
Orchestrator 内で使用される Action を Protocol として統一管理する。 Extensions に登録して Manager/Worker から参照する。
Implementations§
Source§impl ActionsConfig
impl ActionsConfig
pub fn new() -> Self
Sourcepub fn add_action(&mut self, name: impl Into<String>, def: ActionDef)
pub fn add_action(&mut self, name: impl Into<String>, def: ActionDef)
Action を追加(mutable)
Sourcepub fn group(self, name: impl Into<String>, group: ActionGroup) -> Self
pub fn group(self, name: impl Into<String>, group: ActionGroup) -> Self
Group を追加
Sourcepub fn add_group(&mut self, name: impl Into<String>, group: ActionGroup)
pub fn add_group(&mut self, name: impl Into<String>, group: ActionGroup)
Group を追加(mutable)
Sourcepub fn all_action_names(&self) -> Vec<String>
pub fn all_action_names(&self) -> Vec<String>
全 Action 名を取得
Sourcepub fn all_actions(&self) -> impl Iterator<Item = &ActionDef>
pub fn all_actions(&self) -> impl Iterator<Item = &ActionDef>
全 Action 定義を取得
Sourcepub fn get_group(&self, name: &str) -> Option<&ActionGroup>
pub fn get_group(&self, name: &str) -> Option<&ActionGroup>
Group 定義を取得
Sourcepub fn candidates_for(&self, group_name: &str) -> Vec<String>
pub fn candidates_for(&self, group_name: &str) -> Vec<String>
指定 Group の Action 名リストを取得(LLM candidates 用)
Sourcepub fn by_groups(&self, group_names: &[&str]) -> Vec<&ActionDef>
pub fn by_groups(&self, group_names: &[&str]) -> Vec<&ActionDef>
複数 Group のいずれかに所属する Action を取得
Sourcepub fn candidates_by_groups(&self, group_names: &[&str]) -> Vec<String>
pub fn candidates_by_groups(&self, group_names: &[&str]) -> Vec<String>
複数 Group の Action 名リストを取得
Sourcepub fn node_expand_actions(&self) -> Vec<String>
pub fn node_expand_actions(&self) -> Vec<String>
NodeExpand カテゴリのアクション名を取得
探索系アクション(新しい探索対象を発見する)のみを返す。 初期展開時に使用する。
Sourcepub fn node_state_change_actions(&self) -> Vec<String>
pub fn node_state_change_actions(&self) -> Vec<String>
NodeStateChange カテゴリのアクション名を取得
Sourcepub fn param_variants(&self, action_name: &str) -> Option<(&str, &[String])>
pub fn param_variants(&self, action_name: &str) -> Option<(&str, &[String])>
指定アクションのパラメータバリアントを取得
ExplorationSpace がノード展開時にバリアントを生成するために使用。
§Returns
Some((key, values)): パラメータバリアントが定義されている場合None: 定義されていない場合
Sourcepub fn build_action(
&self,
name: &str,
target: Option<String>,
args: HashMap<String, String>,
) -> Option<Action>
pub fn build_action( &self, name: &str, target: Option<String>, args: HashMap<String, String>, ) -> Option<Action>
Action を構築
DecisionResponse から Action を構築する際に使用。 登録されていない Action 名の場合は None を返す。
Trait Implementations§
Source§impl Clone for ActionsConfig
impl Clone for ActionsConfig
Source§fn clone(&self) -> ActionsConfig
fn clone(&self) -> ActionsConfig
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 ActionsConfig
impl Debug for ActionsConfig
Source§impl Default for ActionsConfig
impl Default for ActionsConfig
Source§fn default() -> ActionsConfig
fn default() -> ActionsConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ActionsConfig
impl RefUnwindSafe for ActionsConfig
impl Send for ActionsConfig
impl Sync for ActionsConfig
impl Unpin for ActionsConfig
impl UnwindSafe for ActionsConfig
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