pub struct ResponseStep {Show 17 fields
pub id: StepId,
pub request_id: Option<RequestId>,
pub prev_step_id: Option<StepId>,
pub parent_step_id: Option<StepId>,
pub step_kind: StepKind,
pub step_sequence: i64,
pub request_payload: Value,
pub response_payload: Option<Value>,
pub state: StepState,
pub started_at: Option<DateTime<Utc>>,
pub completed_at: Option<DateTime<Utc>>,
pub failed_at: Option<DateTime<Utc>>,
pub canceled_at: Option<DateTime<Utc>>,
pub retry_attempt: i32,
pub error: Option<Value>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A row from the response_steps table.
request_id is Some for model_call steps (each model_call has a
dedicated requests row created for its upstream HTTP fire) and None
for tool_call steps (tool dispatch lives outside requests; the
per-tool analytics live in tool_call_analytics).
parent_step_id is the chain identifier — it points at the head
(root) step of the user-visible response. It is None only on the
head itself.
prev_step_id is a tree edge: the step that immediately precedes
this one. Multiple steps may share a prev_step_id (parallel
tool_calls; or, when sub-agent dispatch is wired, the sub-agent’s
head + the outer continuation after a tool_call).
Fields§
§id: StepId§request_id: Option<RequestId>§prev_step_id: Option<StepId>§parent_step_id: Option<StepId>§step_kind: StepKind§step_sequence: i64§request_payload: Value§response_payload: Option<Value>§state: StepState§started_at: Option<DateTime<Utc>>§completed_at: Option<DateTime<Utc>>§failed_at: Option<DateTime<Utc>>§canceled_at: Option<DateTime<Utc>>§retry_attempt: i32§error: Option<Value>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for ResponseStep
impl Clone for ResponseStep
Source§fn clone(&self) -> ResponseStep
fn clone(&self) -> ResponseStep
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 ResponseStep
impl Debug for ResponseStep
Auto Trait Implementations§
impl Freeze for ResponseStep
impl RefUnwindSafe for ResponseStep
impl Send for ResponseStep
impl Sync for ResponseStep
impl Unpin for ResponseStep
impl UnsafeUnpin for ResponseStep
impl UnwindSafe for ResponseStep
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