langgraph_api/generated/models/
assistant_patch.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/// AssistantPatch : Payload for updating an assistant.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AssistantPatch {
17    /// 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.
18    #[serde(rename = "graph_id", skip_serializing_if = "Option::is_none")]
19    pub graph_id: Option<String>,
20    /// Configuration to use for the graph. Useful when graph is configurable and you want to update the assistant's configuration.
21    #[serde(rename = "config", skip_serializing_if = "Option::is_none")]
22    pub config: Option<serde_json::Value>,
23    /// Static context added to the assistant.
24    #[serde(rename = "context", skip_serializing_if = "Option::is_none")]
25    pub context: Option<serde_json::Value>,
26    /// Metadata to merge with existing assistant metadata.
27    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
28    pub metadata: Option<serde_json::Value>,
29    /// The new name for the assistant. If not provided, assistant will keep its current name.
30    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
31    pub name: Option<String>,
32    /// The new description for the assistant. If not provided, assistant will keep its current description.
33    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
34    pub description: Option<String>,
35}
36
37impl AssistantPatch {
38    /// Payload for updating an assistant.
39    pub fn new() -> AssistantPatch {
40        AssistantPatch {
41            graph_id: None,
42            config: None,
43            context: None,
44            metadata: None,
45            name: None,
46            description: None,
47        }
48    }
49}