pub struct DependencyGraphRecord {
pub prompt: String,
pub response: String,
pub available_actions: Vec<String>,
pub discover_order: Vec<String>,
pub not_discover_order: Vec<String>,
pub timestamp_ms: u64,
pub model: String,
pub endpoint: String,
pub lora: Option<String>,
pub latency_ms: u64,
pub error: Option<String>,
}Expand description
DependencyGraph 推論の記録
LLM による DependencyGraph 生成時の prompt/response と結果を記録。 学習データとして使用され、正しい推論パターンを LoRA で学習可能にする。
Fields§
§prompt: String推論に使用した prompt
response: StringLLM の response(生テキスト)
available_actions: Vec<String>利用可能なアクション一覧
discover_order: Vec<String>推論結果: discover 順序(NodeExpand アクション)
not_discover_order: Vec<String>推論結果: not_discover 順序(NodeStateChange アクション)
timestamp_ms: u64タイムスタンプ(Unix epoch ms)
model: StringLLM モデル名
endpoint: Stringエンドポイント
lora: Option<String>LoRA アダプター名(あれば)
latency_ms: u64レイテンシ(ミリ秒)
error: Option<String>エラー(あれば)
Implementations§
Source§impl DependencyGraphRecord
impl DependencyGraphRecord
Sourcepub fn available_actions(self, actions: Vec<String>) -> Self
pub fn available_actions(self, actions: Vec<String>) -> Self
Builder: available_actions を設定
Sourcepub fn discover_order(self, order: Vec<String>) -> Self
pub fn discover_order(self, order: Vec<String>) -> Self
Builder: discover_order を設定
Sourcepub fn not_discover_order(self, order: Vec<String>) -> Self
pub fn not_discover_order(self, order: Vec<String>) -> Self
Builder: not_discover_order を設定
Sourcepub fn latency_ms(self, latency: u64) -> Self
pub fn latency_ms(self, latency: u64) -> Self
Builder: latency_ms を設定
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
成功したか(エラーがなく、結果がある)
Trait Implementations§
Source§impl Clone for DependencyGraphRecord
impl Clone for DependencyGraphRecord
Source§fn clone(&self) -> DependencyGraphRecord
fn clone(&self) -> DependencyGraphRecord
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 DependencyGraphRecord
impl Debug for DependencyGraphRecord
Source§impl<'de> Deserialize<'de> for DependencyGraphRecord
impl<'de> Deserialize<'de> for DependencyGraphRecord
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
Source§impl From<&LearningEvent> for DependencyGraphRecord
impl From<&LearningEvent> for DependencyGraphRecord
Source§fn from(event: &LearningEvent) -> Self
fn from(event: &LearningEvent) -> Self
Converts to this type from the input type.
Source§impl From<DependencyGraphRecord> for Record
impl From<DependencyGraphRecord> for Record
Source§fn from(record: DependencyGraphRecord) -> Self
fn from(record: DependencyGraphRecord) -> Self
Converts to this type from the input type.
Source§impl FromRecord for DependencyGraphRecord
impl FromRecord for DependencyGraphRecord
fn from_record(record: &Record) -> Option<&Self>
Auto Trait Implementations§
impl Freeze for DependencyGraphRecord
impl RefUnwindSafe for DependencyGraphRecord
impl Send for DependencyGraphRecord
impl Sync for DependencyGraphRecord
impl Unpin for DependencyGraphRecord
impl UnwindSafe for DependencyGraphRecord
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