Skip to main content

hanzo_client/models/
flow_run.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 FlowRun {
16    /// Input is the run's chat input value, handed to the graph's input node.
17    #[serde(rename = "input", skip_serializing_if = "Option::is_none")]
18    pub input: Option<String>,
19    /// Session groups runs into one conversation; the product mints one when absent and returns it in the response.
20    #[serde(rename = "session", skip_serializing_if = "Option::is_none")]
21    pub session: Option<String>,
22    #[serde(rename = "tweaks", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub tweaks: Option<Option<serde_json::Value>>,
24    /// Workflow is the UUID of the workflow to run.
25    #[serde(rename = "workflow", skip_serializing_if = "Option::is_none")]
26    pub workflow: Option<String>,
27}
28
29impl FlowRun {
30    pub fn new() -> FlowRun {
31        FlowRun {
32            input: None,
33            session: None,
34            tweaks: None,
35            workflow: None,
36        }
37    }
38}
39