Skip to main content

hanzo_client/models/
report.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Report {
16    /// Answer is the grounded prose, with inline markdown citations. Every link in it points at a page in Sources: the citation check runs on the text before it leaves the engine, so a cited URL is one THIS call fetched.
17    #[serde(rename = "answer", skip_serializing_if = "Option::is_none")]
18    pub answer: Option<String>,
19    /// FollowUps are the questions worth asking next. Best-effort — an empty list is a normal outcome, not a fault.
20    #[serde(rename = "follow_ups", skip_serializing_if = "Option::is_none")]
21    pub follow_ups: Option<Vec<String>>,
22    /// Mode is the profile that ran: search, news, research or deep.
23    #[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
24    pub mode: Option<String>,
25    /// Model is the model that synthesized the answer.
26    #[serde(rename = "model", skip_serializing_if = "Option::is_none")]
27    pub model: Option<String>,
28    /// Sources are the pages the answer was written from, deduplicated and ranked. Always an array, never null.
29    #[serde(rename = "sources", skip_serializing_if = "Option::is_none")]
30    pub sources: Option<Vec<models::Source>>,
31}
32
33impl Report {
34    pub fn new() -> Report {
35        Report {
36            answer: None,
37            follow_ups: None,
38            mode: None,
39            model: None,
40            sources: None,
41        }
42    }
43}
44