langgraph-api 0.1.1

Rust Client API of LangGraph
Documentation
/*
 * LangSmith Deployment
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.1.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ThreadSuperstepUpdate {
    #[serde(
        rename = "values",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub values: Option<Option<Box<models::ThreadSuperstepUpdateValues>>>,
    #[serde(
        rename = "command",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub command: Option<Option<Box<models::Command>>>,
    /// Update the state as if this node had just executed.
    #[serde(rename = "as_node")]
    pub as_node: String,
}

impl ThreadSuperstepUpdate {
    pub fn new(as_node: String) -> ThreadSuperstepUpdate {
        ThreadSuperstepUpdate {
            values: None,
            command: None,
            as_node,
        }
    }
}