pub struct ContractDraftRequest {
pub prompt: String,
pub rotate_model: bool,
}Expand description
What one derivation attempt asks of the injected generator: the prompt, plus whether this attempt must be routed to a DIFFERENT model than the last one.
Derivation is the one place in the coder that needs a raw JSON object back and parses it strictly. Routing does not know that, so when the preferred lane is down the adaptive arm can fall back to a capable code model that reliably wraps or truncates the object — and the repair loop then re-sends the repair prompt through the same routing, landing on the same ill-suited model all three attempts (Parslee-ai/car#889).
Fields§
§prompt: StringThe derivation (or repair) prompt for this attempt.
rotate_model: boolTrue when the PREVIOUS attempt returned text derivation could not use as JSON at all. The generator must route this attempt AWAY from the model it used last: a repair prompt cannot fix a model that will not hold strict JSON, and re-asking it just burns the budget (Parslee-ai/car#889).
Auto Trait Implementations§
impl Freeze for ContractDraftRequest
impl RefUnwindSafe for ContractDraftRequest
impl Send for ContractDraftRequest
impl Sync for ContractDraftRequest
impl Unpin for ContractDraftRequest
impl UnsafeUnpin for ContractDraftRequest
impl UnwindSafe for ContractDraftRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more