langgraph_api/generated/models/
thread_superstep_update.rs

1/*
2 * LangSmith Deployment
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 0.1.0
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 ThreadSuperstepUpdate {
16    #[serde(
17        rename = "values",
18        default,
19        with = "::serde_with::rust::double_option",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub values: Option<Option<Box<models::ThreadSuperstepUpdateValues>>>,
23    #[serde(
24        rename = "command",
25        default,
26        with = "::serde_with::rust::double_option",
27        skip_serializing_if = "Option::is_none"
28    )]
29    pub command: Option<Option<Box<models::Command>>>,
30    /// Update the state as if this node had just executed.
31    #[serde(rename = "as_node")]
32    pub as_node: String,
33}
34
35impl ThreadSuperstepUpdate {
36    pub fn new(as_node: String) -> ThreadSuperstepUpdate {
37        ThreadSuperstepUpdate {
38            values: None,
39            command: None,
40            as_node,
41        }
42    }
43}