pub struct OperationJournalEntry {Show 14 fields
pub kind: OperationKind,
pub operation_id: String,
pub cycle_index: u64,
pub attempt: u64,
pub state: OperationState,
pub request_digest: String,
pub idempotency_key: Option<String>,
pub response: Option<Value>,
pub error: Option<OperationError>,
pub tool_call_id: Option<String>,
pub tool_name: Option<String>,
pub arguments: Option<Map<String, Value>>,
pub idempotency_support: Option<ToolIdempotency>,
pub result: Option<Value>,
}Fields§
§kind: OperationKind§operation_id: String§cycle_index: u64§attempt: u64§state: OperationState§request_digest: String§idempotency_key: Option<String>§response: Option<Value>§error: Option<OperationError>§tool_call_id: Option<String>§tool_name: Option<String>§arguments: Option<Map<String, Value>>§idempotency_support: Option<ToolIdempotency>§result: Option<Value>Implementations§
Source§impl OperationJournalEntry
impl OperationJournalEntry
pub fn model( operation_id: impl Into<String>, cycle_index: u64, attempt: u64, request_digest: impl Into<String>, idempotency_key: Option<String>, ) -> Self
pub fn tool( operation_id: impl Into<String>, cycle_index: u64, attempt: u64, request_digest: impl Into<String>, tool_call_id: impl Into<String>, tool_name: impl Into<String>, arguments: Map<String, Value>, idempotency_key: impl Into<String>, idempotency_support: ToolIdempotency, ) -> Self
pub fn validate(&self) -> CheckpointResult<()>
pub fn to_value(&self) -> Value
pub fn from_value(value: &Value) -> CheckpointResult<Self>
pub fn transition_to(&mut self, next: OperationState) -> CheckpointResult<()>
pub fn retry(&mut self) -> CheckpointResult<()>
pub fn mark_ambiguous(&mut self) -> CheckpointResult<()>
pub fn verify_request(&self, request: &Value) -> CheckpointResult<()>
Trait Implementations§
Source§impl Clone for OperationJournalEntry
impl Clone for OperationJournalEntry
Source§fn clone(&self) -> OperationJournalEntry
fn clone(&self) -> OperationJournalEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OperationJournalEntry
impl Debug for OperationJournalEntry
Source§impl PartialEq for OperationJournalEntry
impl PartialEq for OperationJournalEntry
impl StructuralPartialEq for OperationJournalEntry
Auto Trait Implementations§
impl Freeze for OperationJournalEntry
impl RefUnwindSafe for OperationJournalEntry
impl Send for OperationJournalEntry
impl Sync for OperationJournalEntry
impl Unpin for OperationJournalEntry
impl UnsafeUnpin for OperationJournalEntry
impl UnwindSafe for OperationJournalEntry
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 moreCreates a shared type from an unshared type.