windmill_api/models/flow_conversation_running_turn.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.824.1
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FlowConversationRunningTurn : The turn the conversation is still answering, set by the list endpoint: its newest user message, while the flow run it started is queued or running. A run into this conversation is refused with 409 until the turn ends.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FlowConversationRunningTurn {
17 /// The flow run of the turn
18 #[serde(rename = "job_id")]
19 pub job_id: uuid::Uuid,
20 /// created_seq of the user message that started the turn
21 #[serde(rename = "user_seq")]
22 pub user_seq: i64,
23}
24
25impl FlowConversationRunningTurn {
26 /// The turn the conversation is still answering, set by the list endpoint: its newest user message, while the flow run it started is queued or running. A run into this conversation is refused with 409 until the turn ends.
27 pub fn new(job_id: uuid::Uuid, user_seq: i64) -> FlowConversationRunningTurn {
28 FlowConversationRunningTurn {
29 job_id,
30 user_seq,
31 }
32 }
33}
34