langgraph_api/generated/models/
store_put_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/// StorePutRequest : Request to store or update an item.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StorePutRequest {
17    /// A list of strings representing the namespace path.
18    #[serde(rename = "namespace")]
19    pub namespace: Vec<String>,
20    /// The unique identifier for the item within the namespace.
21    #[serde(rename = "key")]
22    pub key: String,
23    /// A dictionary containing the item's data.
24    #[serde(rename = "value")]
25    pub value: serde_json::Value,
26}
27
28impl StorePutRequest {
29    /// Request to store or update an item.
30    pub fn new(namespace: Vec<String>, key: String, value: serde_json::Value) -> StorePutRequest {
31        StorePutRequest {
32            namespace,
33            key,
34            value,
35        }
36    }
37}