pub struct RunnerResponse {
pub task_id: String,
pub attempt_id: String,
pub replacement: String,
pub model: Option<String>,
pub prompt_hash: Option<String>,
pub metadata: Option<Value>,
}Expand description
One line the runner writes back for one task.
Only replacement is required beyond the identifiers; the span and file are
taken from the mined task, so the runner stays a pure text producer.
Fields§
§task_id: StringTask this reply answers; advisory, since pairing is positional.
attempt_id: StringIdentifier for this attempt; defaults to attempt when omitted.
replacement: StringNew content the runner proposes for the task’s editable span.
model: Option<String>Model the runner used, when it reports one.
prompt_hash: Option<String>Hash of the prompt the runner built, when it reports one.
metadata: Option<Value>Free-form runner metadata (cost, latency, sampling settings).
Trait Implementations§
Source§impl Clone for RunnerResponse
impl Clone for RunnerResponse
Source§fn clone(&self) -> RunnerResponse
fn clone(&self) -> RunnerResponse
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 RunnerResponse
impl Debug for RunnerResponse
Source§impl<'de> Deserialize<'de> for RunnerResponse
impl<'de> Deserialize<'de> for RunnerResponse
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 RunnerResponse
Source§impl PartialEq for RunnerResponse
impl PartialEq for RunnerResponse
Source§fn eq(&self, other: &RunnerResponse) -> bool
fn eq(&self, other: &RunnerResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RunnerResponse
impl Serialize for RunnerResponse
impl StructuralPartialEq for RunnerResponse
Auto Trait Implementations§
impl Freeze for RunnerResponse
impl RefUnwindSafe for RunnerResponse
impl Send for RunnerResponse
impl Sync for RunnerResponse
impl Unpin for RunnerResponse
impl UnsafeUnpin for RunnerResponse
impl UnwindSafe for RunnerResponse
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