pub struct ActionCandidate {
pub name: String,
pub description: String,
pub params: Vec<ActionParam>,
pub example: Option<String>,
}Expand description
プロンプト構築用の Action 情報
ActionsConfig から必要な情報だけを抽出したモデル。 LLM 層でプロンプト生成時に使用する。
Fields§
§name: StringAction 名
description: String説明
params: Vec<ActionParam>パラメータ
example: Option<String>出力例(JSON 形式)
Implementations§
Source§impl ActionCandidate
impl ActionCandidate
Sourcepub fn from_config(config: &ActionsConfig) -> Vec<Self>
pub fn from_config(config: &ActionsConfig) -> Vec<Self>
ActionsConfig から ActionCandidate のリストを生成
Trait Implementations§
Source§impl Clone for ActionCandidate
impl Clone for ActionCandidate
Source§fn clone(&self) -> ActionCandidate
fn clone(&self) -> ActionCandidate
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 ActionCandidate
impl RefUnwindSafe for ActionCandidate
impl Send for ActionCandidate
impl Sync for ActionCandidate
impl Unpin for ActionCandidate
impl UnwindSafe for ActionCandidate
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