pub struct GeneratedAnswer {
pub block_id: BlockId,
pub question_id: Option<QuestionId>,
pub text: String,
pub basis: AnswerBasis,
pub status: AnswerStatus,
pub facts_used: Vec<NarratableFact>,
pub citations: Vec<Citation>,
pub enumerations: Vec<AnsweredEnumeration>,
}Expand description
A model-authored answer to a question (spec §18.2).
Fields§
§block_id: BlockIdStable block id.
question_id: Option<QuestionId>The question answered, when it came from the plan.
text: StringThe text.
basis: AnswerBasisState basis used.
status: AnswerStatusOutcome of the answer task.
facts_used: Vec<NarratableFact>Facts the text relies on (all must be in the allowed set).
citations: Vec<Citation>Citations.
enumerations: Vec<AnsweredEnumeration>Complete value sets the answer carries, resolved to the turn’s locale.
Written by the deterministic layer from a workflow’s own declaration, never by a model, and rendered by the client the way a receipt is. This is how “the values this field accepts” reaches a user: as data with the workflow’s labels, rather than as a sentence that could name a fourth thing.
Trait Implementations§
Source§impl Clone for GeneratedAnswer
impl Clone for GeneratedAnswer
Source§impl Debug for GeneratedAnswer
impl Debug for GeneratedAnswer
Source§impl<'de> Deserialize<'de> for GeneratedAnswer
impl<'de> Deserialize<'de> for GeneratedAnswer
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 GeneratedAnswer
Source§impl PartialEq for GeneratedAnswer
impl PartialEq for GeneratedAnswer
Source§impl Serialize for GeneratedAnswer
impl Serialize for GeneratedAnswer
impl StructuralPartialEq for GeneratedAnswer
Auto Trait Implementations§
impl Freeze for GeneratedAnswer
impl RefUnwindSafe for GeneratedAnswer
impl Send for GeneratedAnswer
impl Sync for GeneratedAnswer
impl Unpin for GeneratedAnswer
impl UnsafeUnpin for GeneratedAnswer
impl UnwindSafe for GeneratedAnswer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.