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

/// StoreSearchRequest : Request to search for items within a namespace prefix.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StoreSearchRequest {
    /// List of strings representing the namespace prefix.
    #[serde(
        rename = "namespace_prefix",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub namespace_prefix: Option<Option<Vec<String>>>,
    /// Optional dictionary of key-value pairs to filter results.
    #[serde(rename = "filter", skip_serializing_if = "Option::is_none")]
    pub filter: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// Maximum number of items to return (default is 10).
    #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
    pub limit: Option<i32>,
    /// Number of items to skip before returning results (default is 0).
    #[serde(rename = "offset", skip_serializing_if = "Option::is_none")]
    pub offset: Option<i32>,
    /// Query string for semantic/vector search.
    #[serde(
        rename = "query",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub query: Option<Option<String>>,
}

impl StoreSearchRequest {
    /// Request to search for items within a namespace prefix.
    pub fn new() -> StoreSearchRequest {
        StoreSearchRequest {
            namespace_prefix: None,
            filter: None,
            limit: None,
            offset: None,
            query: None,
        }
    }
}