hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * 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/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Report {
    /// 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.
    #[serde(rename = "answer", skip_serializing_if = "Option::is_none")]
    pub answer: Option<String>,
    /// FollowUps are the questions worth asking next. Best-effort — an empty list is a normal outcome, not a fault.
    #[serde(rename = "follow_ups", skip_serializing_if = "Option::is_none")]
    pub follow_ups: Option<Vec<String>>,
    /// Mode is the profile that ran: search, news, research or deep.
    #[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
    pub mode: Option<String>,
    /// Model is the model that synthesized the answer.
    #[serde(rename = "model", skip_serializing_if = "Option::is_none")]
    pub model: Option<String>,
    /// Sources are the pages the answer was written from, deduplicated and ranked. Always an array, never null.
    #[serde(rename = "sources", skip_serializing_if = "Option::is_none")]
    pub sources: Option<Vec<models::Source>>,
}

impl Report {
    pub fn new() -> Report {
        Report {
            answer: None,
            follow_ups: None,
            mode: None,
            model: None,
            sources: None,
        }
    }
}