langgraph_api/generated/models/
goto.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/// Goto : Name of the node(s) to navigate to next or node(s) to be executed with a provided input.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Goto {
17    /// The node to send the message to.
18    #[serde(rename = "node")]
19    pub node: String,
20    #[serde(rename = "input", deserialize_with = "Option::deserialize")]
21    pub input: Option<Box<models::Message>>,
22}
23
24impl Goto {
25    /// Name of the node(s) to navigate to next or node(s) to be executed with a provided input.
26    pub fn new(node: String, input: Option<models::Message>) -> Goto {
27        Goto {
28            node,
29            input: input.map(Box::new),
30        }
31    }
32}