Skip to main content

trieve_client/models/
chat_message_proxy.rs

1/*
2 * Trieve API
3 *
4 * Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5 *
6 * The version of the OpenAPI document: 0.11.7
7 * Contact: developers@trieve.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct ChatMessageProxy {
15    #[serde(rename = "content")]
16    pub content: String,
17    #[serde(rename = "role")]
18    pub role: models::RoleProxy,
19}
20
21impl ChatMessageProxy {
22    pub fn new(content: String, role: models::RoleProxy) -> ChatMessageProxy {
23        ChatMessageProxy {
24            content,
25            role,
26        }
27    }
28}
29