Skip to main content

windmill_api/models/
ai_session_backup_cursor.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.816.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AiSessionBackupCursor : where a pull of a session that did not fit one answer whole picks up; the rest of the session follows a pull naming that session alone with this as `resume`
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AiSessionBackupCursor {
17    #[serde(rename = "id")]
18    pub id: String,
19    #[serde(rename = "images")]
20    pub images: bool,
21    #[serde(rename = "after")]
22    pub after: String,
23}
24
25impl AiSessionBackupCursor {
26    /// where a pull of a session that did not fit one answer whole picks up; the rest of the session follows a pull naming that session alone with this as `resume`
27    pub fn new(id: String, images: bool, after: String) -> AiSessionBackupCursor {
28        AiSessionBackupCursor {
29            id,
30            images,
31            after,
32        }
33    }
34}
35