pub struct Attempt {
pub task_id: String,
pub attempt_id: String,
pub allowed_edit: AllowedEdit,
pub replacement: String,
pub target_file: Option<Utf8PathBuf>,
pub extra_edits: Vec<SpanReplacement>,
pub original_diagnostic: Option<Diagnostic>,
pub model: Option<String>,
pub prompt_hash: Option<String>,
pub metadata: Option<Value>,
}Expand description
One bounded proof attempt to replay.
Fields§
§task_id: StringTask this attempt answers.
attempt_id: StringIdentifier for this attempt; defaults to attempt when omitted.
allowed_edit: AllowedEditThe single bounded edit, reusing the miner’s allowed_edit shape.
replacement: StringNew content spliced over the allowed line range.
target_file: Option<Utf8PathBuf>File to compile; defaults to allowed_edit.file.
extra_edits: Vec<SpanReplacement>Extra edits, honored only when multi-file application is enabled.
original_diagnostic: Option<Diagnostic>The original problem this attempt targets, used to decide resolution.
model: Option<String>Model identifier the runner reported, when one was provided.
prompt_hash: Option<String>Hash of the prompt that produced this attempt, for reproducibility.
metadata: Option<Value>Free-form runner metadata (cost, latency, sampling settings).
Implementations§
Source§impl Attempt
impl Attempt
Sourcepub fn primary_span(&self) -> SpanReplacement
pub fn primary_span(&self) -> SpanReplacement
The primary, bounded single-span edit this attempt makes.
Sourcepub fn target(&self) -> Utf8PathBuf
pub fn target(&self) -> Utf8PathBuf
File compiled to score the attempt.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attempt
impl<'de> Deserialize<'de> for Attempt
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 Attempt
impl StructuralPartialEq for Attempt
Auto Trait Implementations§
impl Freeze for Attempt
impl RefUnwindSafe for Attempt
impl Send for Attempt
impl Sync for Attempt
impl Unpin for Attempt
impl UnsafeUnpin for Attempt
impl UnwindSafe for Attempt
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