langgraph_api/generated/models/
checkpoint_config.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/// CheckpointConfig : Checkpoint config.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CheckpointConfig {
17    /// Unique identifier for the thread associated with this checkpoint.
18    #[serde(rename = "thread_id", skip_serializing_if = "Option::is_none")]
19    pub thread_id: Option<String>,
20    /// Namespace for the checkpoint, used for organization and retrieval.
21    #[serde(rename = "checkpoint_ns", skip_serializing_if = "Option::is_none")]
22    pub checkpoint_ns: Option<String>,
23    /// Optional unique identifier for the checkpoint itself.
24    #[serde(rename = "checkpoint_id", skip_serializing_if = "Option::is_none")]
25    pub checkpoint_id: Option<String>,
26    /// Optional dictionary containing checkpoint-specific data.
27    #[serde(rename = "checkpoint_map", skip_serializing_if = "Option::is_none")]
28    pub checkpoint_map: Option<serde_json::Value>,
29}
30
31impl CheckpointConfig {
32    /// Checkpoint config.
33    pub fn new() -> CheckpointConfig {
34        CheckpointConfig {
35            thread_id: None,
36            checkpoint_ns: None,
37            checkpoint_id: None,
38            checkpoint_map: None,
39        }
40    }
41}