langgraph_api/generated/models/
store_search_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/// StoreSearchRequest : Request to search for items within a namespace prefix.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StoreSearchRequest {
17    /// List of strings representing the namespace prefix.
18    #[serde(
19        rename = "namespace_prefix",
20        default,
21        with = "::serde_with::rust::double_option",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub namespace_prefix: Option<Option<Vec<String>>>,
25    /// Optional dictionary of key-value pairs to filter results.
26    #[serde(rename = "filter", skip_serializing_if = "Option::is_none")]
27    pub filter: Option<std::collections::HashMap<String, serde_json::Value>>,
28    /// Maximum number of items to return (default is 10).
29    #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
30    pub limit: Option<i32>,
31    /// Number of items to skip before returning results (default is 0).
32    #[serde(rename = "offset", skip_serializing_if = "Option::is_none")]
33    pub offset: Option<i32>,
34    /// Query string for semantic/vector search.
35    #[serde(
36        rename = "query",
37        default,
38        with = "::serde_with::rust::double_option",
39        skip_serializing_if = "Option::is_none"
40    )]
41    pub query: Option<Option<String>>,
42}
43
44impl StoreSearchRequest {
45    /// Request to search for items within a namespace prefix.
46    pub fn new() -> StoreSearchRequest {
47        StoreSearchRequest {
48            namespace_prefix: None,
49            filter: None,
50            limit: None,
51            offset: None,
52            query: None,
53        }
54    }
55}