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

/// CheckpointConfig : Checkpoint config.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CheckpointConfig {
    /// Unique identifier for the thread associated with this checkpoint.
    #[serde(rename = "thread_id", skip_serializing_if = "Option::is_none")]
    pub thread_id: Option<String>,
    /// Namespace for the checkpoint, used for organization and retrieval.
    #[serde(rename = "checkpoint_ns", skip_serializing_if = "Option::is_none")]
    pub checkpoint_ns: Option<String>,
    /// Optional unique identifier for the checkpoint itself.
    #[serde(rename = "checkpoint_id", skip_serializing_if = "Option::is_none")]
    pub checkpoint_id: Option<String>,
    /// Optional dictionary containing checkpoint-specific data.
    #[serde(rename = "checkpoint_map", skip_serializing_if = "Option::is_none")]
    pub checkpoint_map: Option<serde_json::Value>,
}

impl CheckpointConfig {
    /// Checkpoint config.
    pub fn new() -> CheckpointConfig {
        CheckpointConfig {
            thread_id: None,
            checkpoint_ns: None,
            checkpoint_id: None,
            checkpoint_map: None,
        }
    }
}