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 new(model: impl Into<String>) -> DependencyGraphRecord
pub fn new(model: impl Into<String>) -> DependencyGraphRecord
新しい DependencyGraphRecord を作成
Sourcepub fn prompt(self, prompt: impl Into<String>) -> DependencyGraphRecord
pub fn prompt(self, prompt: impl Into<String>) -> DependencyGraphRecord
Builder: prompt を設定
Sourcepub fn response(self, response: impl Into<String>) -> DependencyGraphRecord
pub fn response(self, response: impl Into<String>) -> DependencyGraphRecord
Builder: response を設定
Sourcepub fn available_actions(self, actions: Vec<String>) -> DependencyGraphRecord
pub fn available_actions(self, actions: Vec<String>) -> DependencyGraphRecord
Builder: available_actions を設定
Sourcepub fn discover_order(self, order: Vec<String>) -> DependencyGraphRecord
pub fn discover_order(self, order: Vec<String>) -> DependencyGraphRecord
Builder: discover_order を設定
Sourcepub fn not_discover_order(self, order: Vec<String>) -> DependencyGraphRecord
pub fn not_discover_order(self, order: Vec<String>) -> DependencyGraphRecord
Builder: not_discover_order を設定
Sourcepub fn endpoint(self, endpoint: impl Into<String>) -> DependencyGraphRecord
pub fn endpoint(self, endpoint: impl Into<String>) -> DependencyGraphRecord
Builder: endpoint を設定
Sourcepub fn lora(self, lora: impl Into<String>) -> DependencyGraphRecord
pub fn lora(self, lora: impl Into<String>) -> DependencyGraphRecord
Builder: lora を設定
Sourcepub fn latency_ms(self, latency: u64) -> DependencyGraphRecord
pub fn latency_ms(self, latency: u64) -> DependencyGraphRecord
Builder: latency_ms を設定
Sourcepub fn error(self, error: impl Into<String>) -> DependencyGraphRecord
pub fn error(self, error: impl Into<String>) -> DependencyGraphRecord
Builder: error を設定
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<DependencyGraphRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DependencyGraphRecord, <__D as Deserializer<'de>>::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) -> DependencyGraphRecord
fn from(event: &LearningEvent) -> DependencyGraphRecord
Converts to this type from the input type.
Source§impl From<DependencyGraphRecord> for Record
impl From<DependencyGraphRecord> for Record
Source§fn from(record: DependencyGraphRecord) -> Record
fn from(record: DependencyGraphRecord) -> Record
Converts to this type from the input type.
Source§impl FromRecord for DependencyGraphRecord
impl FromRecord for DependencyGraphRecord
fn from_record(record: &Record) -> Option<&DependencyGraphRecord>
Source§impl Serialize for DependencyGraphRecord
impl Serialize for DependencyGraphRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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