/*
* 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};
/// Goto : Name of the node(s) to navigate to next or node(s) to be executed with a provided input.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Goto {
/// The node to send the message to.
#[serde(rename = "node")]
pub node: String,
#[serde(rename = "input", deserialize_with = "Option::deserialize")]
pub input: Option<Box<models::Message>>,
}
impl Goto {
/// Name of the node(s) to navigate to next or node(s) to be executed with a provided input.
pub fn new(node: String, input: Option<models::Message>) -> Goto {
Goto {
node,
input: input.map(Box::new),
}
}
}