pub struct ActionEventResult {
pub success: bool,
pub output: Option<String>,
pub error: Option<String>,
pub discoveries: u32,
pub kpi_contribution: Option<f64>,
}Expand description
行動結果
Fields§
§success: bool成功/失敗
output: Option<String>出力(テキスト表現)
error: Option<String>エラーメッセージ
discoveries: u32発見したノード数(探索の場合)
kpi_contribution: Option<f64>KPI貢献度(目標関数への寄与、0.0〜1.0 または負値も可)
Environment が「このアクションは目標にどれだけ近づいたか」を スコアとして返す。学習時の報酬関数として使用可能。
Implementations§
Trait Implementations§
Source§impl Clone for ActionEventResult
impl Clone for ActionEventResult
Source§fn clone(&self) -> ActionEventResult
fn clone(&self) -> ActionEventResult
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 moreAuto Trait Implementations§
impl Freeze for ActionEventResult
impl RefUnwindSafe for ActionEventResult
impl Send for ActionEventResult
impl Sync for ActionEventResult
impl Unpin for ActionEventResult
impl UnwindSafe for ActionEventResult
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