pub struct AskReport {
pub conversation: String,
pub turn: u32,
pub question: String,
pub chips: Vec<Chip>,
pub reads: Vec<Read>,
pub answer: String,
pub citations: Vec<Citation>,
pub proposal: Option<Proposal>,
pub usage: AskUsage,
pub end: String,
pub reason: Option<String>,
pub context: Option<ContextManifest>,
}Expand description
One Ask turn: the question, what was read, the answer and its sources.
Fields§
§conversation: StringThe conversation (c-…).
turn: u32The turn’s number in the conversation, from 1.
question: StringThe person’s words.
chips: Vec<Chip>What was on screen or added as context.
reads: Vec<Read>What the model read, in order.
answer: StringThe model’s words (a claim), citation markers included.
citations: Vec<Citation>Every marker in the answer, checked.
proposal: Option<Proposal>A change the model suggests; nothing ran.
usage: AskUsageTokens the turn used (input and output, cache reads apart).
end: StringHow the turn ended: answered, stopped, budget or failed.
reason: Option<String>Why it ended so, when it did not answer.
context: Option<ContextManifest>What the question was handed: one chip entry per chip, journaled
with the message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AskReport
impl<'de> Deserialize<'de> for AskReport
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 AskReport
Source§impl JsonSchema for AskReport
impl JsonSchema for AskReport
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for AskReport
Auto Trait Implementations§
impl Freeze for AskReport
impl RefUnwindSafe for AskReport
impl Send for AskReport
impl Sync for AskReport
impl Unpin for AskReport
impl UnsafeUnpin for AskReport
impl UnwindSafe for AskReport
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