1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* 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,
}
}
}