pub struct Verdict {
pub decisions: Vec<Decision>,
}Expand description
The conductor’s whole reply for one cycle.
decisions is deliberately not #[serde(default)], unlike every
other field in this module. verdict::extract_json disambiguates
between several balanced {...} spans in one reply by trying the type the
caller wants against each of them, last first, and keeping the first that
fits - which only works when a span that is not really the answer can
fail to fit. A Verdict with no required field at all would make every
span fit, including a {} left by stray trailing prose, and the reply’s
real decisions - earlier in the text - would never be reached. Requiring
the key costs nothing: the prompt already asks for it on every reply, []
included.
Fields§
§decisions: Vec<Decision>One entry per task the conductor chose to say something about. A task left out of this list is left exactly as it was.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Verdict
impl<'de> Deserialize<'de> for Verdict
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>,
Auto Trait Implementations§
impl Forget for Verdict
impl Freeze for Verdict
impl Move for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdictwhere
RawVecInner: Send,
NodeRef<Owned, String, ChoiceAction, LeafOrInternal>: Send,
BoxRaw<(String, ChoiceAction)>: Send,
impl Sync for Verdictwhere
RawVecInner: Sync,
NodeRef<Owned, String, ChoiceAction, LeafOrInternal>: Sync,
BoxRaw<(String, ChoiceAction)>: Sync,
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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