pub struct ReplayRequest {
pub op_id: String,
pub target_sig: String,
pub target_name: Option<String>,
pub target_signature: Option<String>,
pub expected_stage_id: String,
pub prompt: Option<String>,
pub model: Option<String>,
pub session_id: Option<String>,
pub parent_program: String,
}Expand description
Everything a regenerator needs to replay an op (#836 G3), produced
by Store::replay_request. The model call is external: a harness
feeds prompt + parent_program to model, then hands the
regenerated stage to Store::replay_compare.
Fields§
§op_id: String§target_sig: StringThe sig the op changed — the function to regenerate.
target_name: Option<String>The target function’s name (the recorded stage is a function for every replayable op).
target_signature: Option<String>The target function’s rendered signature (fn name(...) -> T),
so a regenerator knows the interface to implement without
re-deriving it from the sig hash.
expected_stage_id: StringThe stage id a faithful regeneration should reproduce.
prompt: Option<String>The recorded intent prompt (None if the op carried no intent).
model: Option<String>The recorded model (provider/name[@version]), if any.
session_id: Option<String>The recorded session id, if any.
parent_program: StringThe program the change was made against — the parent state rendered to source — the context a regenerator needs.
Trait Implementations§
Source§impl Clone for ReplayRequest
impl Clone for ReplayRequest
Source§fn clone(&self) -> ReplayRequest
fn clone(&self) -> ReplayRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more