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

/// AssistantPatch : Payload for updating an assistant.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AssistantPatch {
    /// The ID of the graph the assistant should use. The graph ID is normally set in your langgraph.json configuration. If not provided, assistant will keep pointing to same graph.
    #[serde(rename = "graph_id", skip_serializing_if = "Option::is_none")]
    pub graph_id: Option<String>,
    /// Configuration to use for the graph. Useful when graph is configurable and you want to update the assistant's configuration.
    #[serde(rename = "config", skip_serializing_if = "Option::is_none")]
    pub config: Option<serde_json::Value>,
    /// Static context added to the assistant.
    #[serde(rename = "context", skip_serializing_if = "Option::is_none")]
    pub context: Option<serde_json::Value>,
    /// Metadata to merge with existing assistant metadata.
    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
    pub metadata: Option<serde_json::Value>,
    /// The new name for the assistant. If not provided, assistant will keep its current name.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The new description for the assistant. If not provided, assistant will keep its current description.
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
}

impl AssistantPatch {
    /// Payload for updating an assistant.
    pub fn new() -> AssistantPatch {
        AssistantPatch {
            graph_id: None,
            config: None,
            context: None,
            metadata: None,
            name: None,
            description: None,
        }
    }
}