langgraph_api/generated/models/
text_part.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct TextPart {
16    #[serde(rename = "kind")]
17    pub kind: Kind,
18    #[serde(rename = "text")]
19    pub text: String,
20}
21
22impl TextPart {
23    pub fn new(kind: Kind, text: String) -> TextPart {
24        TextPart { kind, text }
25    }
26}
27#[derive(
28    Clone, Copy, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize,
29)]
30pub enum Kind {
31    #[serde(rename = "text")]
32    #[default]
33    Text,
34}