pub enum Record {
Action(ActionRecord),
Llm(LlmCallRecord),
DependencyGraph(DependencyGraphRecord),
}Expand description
生イベントから変換された Record
ActionEvent と LlmDebugEvent を統一的に扱うための抽象化。 EpisodeContext は Record のリストを保持する。
Variants§
Action(ActionRecord)
ActionEvent から変換
Llm(LlmCallRecord)
LlmDebugEvent から変換
DependencyGraph(DependencyGraphRecord)
DependencyGraph 推論の記録
Implementations§
Source§impl Record
impl Record
Sourcepub fn is_dependency_graph(&self) -> bool
pub fn is_dependency_graph(&self) -> bool
DependencyGraph Record かどうか
Sourcepub fn as_action(&self) -> Option<&ActionRecord>
pub fn as_action(&self) -> Option<&ActionRecord>
ActionRecord を取得
Sourcepub fn as_llm(&self) -> Option<&LlmCallRecord>
pub fn as_llm(&self) -> Option<&LlmCallRecord>
LlmCallRecord を取得
Sourcepub fn as_dependency_graph(&self) -> Option<&DependencyGraphRecord>
pub fn as_dependency_graph(&self) -> Option<&DependencyGraphRecord>
DependencyGraphRecord を取得
Sourcepub fn timestamp_ms(&self) -> u64
pub fn timestamp_ms(&self) -> u64
タイムスタンプを取得(ソート用)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
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<&ActionEvent> for Record
impl From<&ActionEvent> for Record
Source§fn from(event: &ActionEvent) -> Self
fn from(event: &ActionEvent) -> Self
Converts to this type from the input type.
Source§impl From<ActionRecord> for Record
impl From<ActionRecord> for Record
Source§fn from(record: ActionRecord) -> Self
fn from(record: ActionRecord) -> 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 From<LlmCallRecord> for Record
impl From<LlmCallRecord> for Record
Source§fn from(record: LlmCallRecord) -> Self
fn from(record: LlmCallRecord) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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