pub enum AnswerStatus {
Answered,
ClarificationRequested,
Unsupported,
SourceUnavailable,
Withheld,
NotWritten,
}Expand description
Whether a question was answered (spec §19.4).
Variants§
Answered
Answered.
ClarificationRequested
The assistant needs more information.
Unsupported
Out of scope or unsupported.
The required sources were unavailable.
Withheld
An answer existed and the guard would not let it through.
Distinct from Self::Unsupported, and the distinction is not
bookkeeping. Unsupported is a statement about the question: it is
outside what this assistant answers. Withheld is a statement about one
attempt at answering it: the question was in scope, an answer was
written, and the claim guard refused to publish it. Reporting the second
as the first tells the user their question was out of scope, which is
false, and false about them rather than about the system — the one thing
a guard built for honesty must not produce.
NotWritten
No model wrote an answer this time, after the retries; asking again may work.
Trait Implementations§
Source§impl Clone for AnswerStatus
impl Clone for AnswerStatus
impl Copy for AnswerStatus
Source§impl Debug for AnswerStatus
impl Debug for AnswerStatus
Source§impl<'de> Deserialize<'de> for AnswerStatus
impl<'de> Deserialize<'de> for AnswerStatus
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>,
impl Eq for AnswerStatus
Source§impl Hash for AnswerStatus
impl Hash for AnswerStatus
Source§impl PartialEq for AnswerStatus
impl PartialEq for AnswerStatus
Source§impl Serialize for AnswerStatus
impl Serialize for AnswerStatus
impl StructuralPartialEq for AnswerStatus
Auto Trait Implementations§
impl Freeze for AnswerStatus
impl RefUnwindSafe for AnswerStatus
impl Send for AnswerStatus
impl Sync for AnswerStatus
impl Unpin for AnswerStatus
impl UnsafeUnpin for AnswerStatus
impl UnwindSafe for AnswerStatus
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
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
key and return true if they are equal.