1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* 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,
}
}
}