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

/// AssistantCountRequest : Payload for counting assistants.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AssistantCountRequest {
    /// Metadata to filter by. Exact match filter for each KV pair.
    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
    pub metadata: Option<serde_json::Value>,
    /// The ID of the graph to filter by. The graph ID is normally set in your langgraph.json configuration.
    #[serde(rename = "graph_id", skip_serializing_if = "Option::is_none")]
    pub graph_id: Option<String>,
    /// Name of the assistant to filter by. The filtering logic will match (case insensitive) assistants where 'name' is a substring of the assistant name.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}

impl AssistantCountRequest {
    /// Payload for counting assistants.
    pub fn new() -> AssistantCountRequest {
        AssistantCountRequest {
            metadata: None,
            graph_id: None,
            name: None,
        }
    }
}