langgraph_api/generated/models/
send.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/// Send : A message to send to a node.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Send {
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 Send {
25    /// A message to send to a node.
26    pub fn new(node: String, input: Option<models::Message>) -> Send {
27        Send {
28            node,
29            input: input.map(Box::new),
30        }
31    }
32}