1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* 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,
}
}
}