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};

/// ThreadStateUpdate : Payload for updating the state of a thread.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ThreadStateUpdate {
    #[serde(
        rename = "values",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub values: Option<Option<Box<models::Values1>>>,
    /// The checkpoint to update the state of.
    #[serde(rename = "checkpoint", skip_serializing_if = "Option::is_none")]
    pub checkpoint: Option<Box<models::CheckpointConfig>>,
    /// Update the state as if this node had just executed.
    #[serde(rename = "as_node", skip_serializing_if = "Option::is_none")]
    pub as_node: Option<String>,
}

impl ThreadStateUpdate {
    /// Payload for updating the state of a thread.
    pub fn new() -> ThreadStateUpdate {
        ThreadStateUpdate {
            values: None,
            checkpoint: None,
            as_node: None,
        }
    }
}