ai: refractor api formats

This commit is contained in:
end-4
2025-07-25 20:14:37 +07:00
parent 27eea1c7a6
commit c8b007631d
6 changed files with 379 additions and 280 deletions
@@ -0,0 +1,20 @@
import QtQuick;
/**
* Represents a message in an AI conversation. (Kind of) follows the OpenAI API message structure.
*/
QtObject {
property string role
property string content
property string rawContent
property string model
property bool thinking: true
property bool done: false
property var annotations: []
property var annotationSources: []
property list<string> searchQueries: []
property string functionName
property string functionCall
property string functionResponse
property bool visibleToUser: true
}