langgraph_api/generated/models/graph_schema_no_id.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/// GraphSchemaNoId : Defines the structure and properties of a graph without an ID.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GraphSchemaNoId {
17 /// The schema for the graph input. Missing if unable to generate JSON schema from graph.
18 #[serde(rename = "input_schema")]
19 pub input_schema: serde_json::Value,
20 /// The schema for the graph output. Missing if unable to generate JSON schema from graph.
21 #[serde(rename = "output_schema")]
22 pub output_schema: serde_json::Value,
23 /// The schema for the graph state. Missing if unable to generate JSON schema from graph.
24 #[serde(rename = "state_schema")]
25 pub state_schema: serde_json::Value,
26 /// The schema for the graph config. Missing if unable to generate JSON schema from graph.
27 #[serde(rename = "config_schema", skip_serializing_if = "Option::is_none")]
28 pub config_schema: Option<serde_json::Value>,
29 /// The schema for the graph context. Missing if unable to generate JSON schema from graph.
30 #[serde(rename = "context_schema", skip_serializing_if = "Option::is_none")]
31 pub context_schema: Option<serde_json::Value>,
32}
33
34impl GraphSchemaNoId {
35 /// Defines the structure and properties of a graph without an ID.
36 pub fn new(
37 input_schema: serde_json::Value,
38 output_schema: serde_json::Value,
39 state_schema: serde_json::Value,
40 ) -> GraphSchemaNoId {
41 GraphSchemaNoId {
42 input_schema,
43 output_schema,
44 state_schema,
45 config_schema: None,
46 context_schema: None,
47 }
48 }
49}