pub struct DeferredToolRecord {Show 13 fields
pub deferred_id: String,
pub revision: u64,
pub session_id: SessionId,
pub run_id: RunId,
pub tool_call_id: String,
pub tool_name: String,
pub request: Value,
pub status: ExecutionStatus,
pub response: Value,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub trace_context: TraceContext,
pub metadata: Metadata,
}Expand description
Durable deferred tool record.
Fields§
§deferred_id: StringDeferred record id.
revision: u64Monotonic optimistic-concurrency revision.
session_id: SessionIdSession id.
run_id: RunIdRun id.
tool_call_id: StringTool call id.
tool_name: StringTool name.
request: ValueArguments or request payload.
status: ExecutionStatusDeferred status.
response: ValueOptional response payload.
created_at: DateTime<Utc>Creation time.
updated_at: DateTime<Utc>Update time.
trace_context: TraceContextTrace context.
metadata: MetadataDeferred metadata.
Implementations§
Source§impl DeferredToolRecord
impl DeferredToolRecord
Sourcepub fn new(
deferred_id: impl Into<String>,
session_id: SessionId,
run_id: RunId,
tool_call_id: impl Into<String>,
tool_name: impl Into<String>,
) -> Self
pub fn new( deferred_id: impl Into<String>, session_id: SessionId, run_id: RunId, tool_call_id: impl Into<String>, tool_name: impl Into<String>, ) -> Self
Build a deferred tool record.
Sourcepub fn from_tool_return(input: &ToolReturnRecordInput<'_>) -> Option<Self>
pub fn from_tool_return(input: &ToolReturnRecordInput<'_>) -> Option<Self>
Build a durable deferred-tool record from a deferred tool return.
Trait Implementations§
Source§impl Clone for DeferredToolRecord
impl Clone for DeferredToolRecord
Source§fn clone(&self) -> DeferredToolRecord
fn clone(&self) -> DeferredToolRecord
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 DeferredToolRecord
impl Debug for DeferredToolRecord
Source§impl<'de> Deserialize<'de> for DeferredToolRecord
impl<'de> Deserialize<'de> for DeferredToolRecord
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
impl Eq for DeferredToolRecord
Source§impl PartialEq for DeferredToolRecord
impl PartialEq for DeferredToolRecord
Source§impl Serialize for DeferredToolRecord
impl Serialize for DeferredToolRecord
impl StructuralPartialEq for DeferredToolRecord
Source§impl VersionedRecord for DeferredToolRecord
impl VersionedRecord for DeferredToolRecord
Source§const SCHEMA: &'static str = "starweaver.session.deferred_tool_record"
const SCHEMA: &'static str = "starweaver.session.deferred_tool_record"
Stable schema identifier.
Source§const ALLOW_BARE_V0: bool = true
const ALLOW_BARE_V0: bool = true
Whether this record explicitly accepts a previous bare-JSON v0 shape.
Source§fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode one enveloped payload version. Read more
Source§fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode the explicitly supported bare-JSON v0 shape. Read more
Auto Trait Implementations§
impl Freeze for DeferredToolRecord
impl RefUnwindSafe for DeferredToolRecord
impl Send for DeferredToolRecord
impl Sync for DeferredToolRecord
impl Unpin for DeferredToolRecord
impl UnsafeUnpin for DeferredToolRecord
impl UnwindSafe for DeferredToolRecord
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