langgraph_api/generated/models/
thread_state_checkpoint_request.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/// ThreadStateCheckpointRequest : Payload for getting the state of a thread at a checkpoint.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ThreadStateCheckpointRequest {
17    /// The checkpoint to get the state for.
18    #[serde(rename = "checkpoint")]
19    pub checkpoint: Box<models::CheckpointConfig>,
20    /// Include subgraph states.
21    #[serde(rename = "subgraphs", skip_serializing_if = "Option::is_none")]
22    pub subgraphs: Option<bool>,
23}
24
25impl ThreadStateCheckpointRequest {
26    /// Payload for getting the state of a thread at a checkpoint.
27    pub fn new(checkpoint: models::CheckpointConfig) -> ThreadStateCheckpointRequest {
28        ThreadStateCheckpointRequest {
29            checkpoint: Box::new(checkpoint),
30            subgraphs: None,
31        }
32    }
33}