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

/// StorePutRequest : Request to store or update an item.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StorePutRequest {
    /// A list of strings representing the namespace path.
    #[serde(rename = "namespace")]
    pub namespace: Vec<String>,
    /// The unique identifier for the item within the namespace.
    #[serde(rename = "key")]
    pub key: String,
    /// A dictionary containing the item's data.
    #[serde(rename = "value")]
    pub value: serde_json::Value,
}

impl StorePutRequest {
    /// Request to store or update an item.
    pub fn new(namespace: Vec<String>, key: String, value: serde_json::Value) -> StorePutRequest {
        StorePutRequest {
            namespace,
            key,
            value,
        }
    }
}