langgraph_api/generated/models/
thread_patch.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/// ThreadPatch : Payload for updating a thread.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ThreadPatch {
17    /// Metadata to merge with existing thread metadata.
18    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
19    pub metadata: Option<serde_json::Value>,
20    #[serde(rename = "ttl", skip_serializing_if = "Option::is_none")]
21    pub ttl: Option<Box<models::Ttl>>,
22}
23
24impl ThreadPatch {
25    /// Payload for updating a thread.
26    pub fn new() -> ThreadPatch {
27        ThreadPatch {
28            metadata: None,
29            ttl: None,
30        }
31    }
32}