pub struct Chat {Show 15 fields
pub assistant_id: Option<String>,
pub assistant: Option<CreateAssistantDto>,
pub name: Option<String>,
pub session_id: Option<String>,
pub input: Option<ChatInput>,
pub stream: Option<bool>,
pub previous_chat_id: Option<String>,
pub id: String,
pub org_id: String,
pub messages: Option<Vec<MessageArrayInner>>,
pub output: Option<Vec<MessageArrayInner>>,
pub created_at: String,
pub updated_at: String,
pub costs: Option<Vec<ChatCostsInner>>,
pub cost: Option<f64>,
}
Fields§
§assistant_id: Option<String>
This is the assistant that will be used for the chat. To use an existing assistant, use assistantId
instead.
assistant: Option<CreateAssistantDto>
This is the assistant that will be used for the chat. To use an existing assistant, use assistantId
instead.
name: Option<String>
This is the name of the chat. This is just for your own reference.
session_id: Option<String>
This is the ID of the session that will be used for the chat. Mutually exclusive with previousChatId.
input: Option<ChatInput>
§stream: Option<bool>
This is a flag that determines whether the response should be streamed. When true, the response will be sent as chunks of text.
previous_chat_id: Option<String>
This is the ID of the chat that will be used as context for the new chat. The messages from the previous chat will be used as context. Mutually exclusive with sessionId.
id: String
This is the unique identifier for the chat.
org_id: String
This is the unique identifier for the org that this chat belongs to.
messages: Option<Vec<MessageArrayInner>>
This is an array of messages used as context for the chat. Used to provide message history for multi-turn conversations.
output: Option<Vec<MessageArrayInner>>
This is the output messages generated by the system in response to the input.
created_at: String
This is the ISO 8601 date-time string of when the chat was created.
updated_at: String
This is the ISO 8601 date-time string of when the chat was last updated.
costs: Option<Vec<ChatCostsInner>>
These are the costs of individual components of the chat in USD.
cost: Option<f64>
This is the cost of the chat in USD.