langgraph_api/generated/models/
thread_state_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/// ThreadStateUpdate : Payload for updating the state of a thread.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ThreadStateUpdate {
17    #[serde(
18        rename = "values",
19        default,
20        with = "::serde_with::rust::double_option",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub values: Option<Option<Box<models::Values1>>>,
24    /// The checkpoint to update the state of.
25    #[serde(rename = "checkpoint", skip_serializing_if = "Option::is_none")]
26    pub checkpoint: Option<Box<models::CheckpointConfig>>,
27    /// Update the state as if this node had just executed.
28    #[serde(rename = "as_node", skip_serializing_if = "Option::is_none")]
29    pub as_node: Option<String>,
30}
31
32impl ThreadStateUpdate {
33    /// Payload for updating the state of a thread.
34    pub fn new() -> ThreadStateUpdate {
35        ThreadStateUpdate {
36            values: None,
37            checkpoint: None,
38            as_node: None,
39        }
40    }
41}