@breign/client 1.0.197 → 1.0.199
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/AgentApi.d.ts +3 -1
- package/dist/apis/AgentApi.js +8 -2
- package/dist/models/ConversationMessagesInnerUio.d.ts +3 -3
- package/dist/models/ConversationMessagesInnerUio.js +3 -3
- package/dist/models/ConversationUio.d.ts +3 -3
- package/dist/models/ConversationUio.js +3 -3
- package/dist/models/FileAttachmentDetailsResponseUio.d.ts +4 -1
- package/dist/models/FileAttachmentDetailsResponseUio.js +4 -1
- package/dist/models/FileAttachmentUio.d.ts +4 -1
- package/dist/models/FileAttachmentUio.js +4 -1
- package/dist/models/FileAttachmentUploadResponseUio.d.ts +4 -1
- package/dist/models/FileAttachmentUploadResponseUio.js +4 -1
- package/dist/models/ModelDefinitionUio.d.ts +6 -0
- package/dist/models/ModelDefinitionUio.js +2 -0
- package/dist/models/ModelUsedUio.d.ts +82 -0
- package/dist/models/ModelUsedUio.js +86 -0
- package/dist/models/TokenUsage1Uio.d.ts +57 -0
- package/dist/models/TokenUsage1Uio.js +65 -0
- package/dist/models/TokenUsageUio.d.ts +7 -0
- package/dist/models/TokenUsageUio.js +3 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/openapi.json +112 -4
- package/package.json +1 -1
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -126,6 +126,8 @@ export interface GetConversationsForAgentRequest {
|
|
|
126
126
|
lastMessageTo?: Date;
|
|
127
127
|
sortOrder?: GetConversationsForAgentSortOrderEnum;
|
|
128
128
|
messageReaction?: GetConversationsForAgentMessageReactionEnum;
|
|
129
|
+
minMessages?: number;
|
|
130
|
+
maxMessages?: number;
|
|
129
131
|
}
|
|
130
132
|
export interface GetFlowRequest {
|
|
131
133
|
agentId: string;
|
|
@@ -438,7 +440,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
438
440
|
* Get conversations for an agent
|
|
439
441
|
* Get conversations for an agent
|
|
440
442
|
*/
|
|
441
|
-
getConversationsForAgent(agentId: string, page?: number, search?: string, messageSearch?: string, conversationId?: string, messageId?: string, appId?: string, instanceId?: string, lastMessageFrom?: Date, lastMessageTo?: Date, sortOrder?: GetConversationsForAgentSortOrderEnum, messageReaction?: GetConversationsForAgentMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
443
|
+
getConversationsForAgent(agentId: string, page?: number, search?: string, messageSearch?: string, conversationId?: string, messageId?: string, appId?: string, instanceId?: string, lastMessageFrom?: Date, lastMessageTo?: Date, sortOrder?: GetConversationsForAgentSortOrderEnum, messageReaction?: GetConversationsForAgentMessageReactionEnum, minMessages?: number, maxMessages?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
442
444
|
/**
|
|
443
445
|
* Retrieves a specific conversation flow by ID
|
|
444
446
|
* Get a specific flow
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -853,6 +853,12 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
853
853
|
if (requestParameters['messageReaction'] != null) {
|
|
854
854
|
queryParameters['messageReaction'] = requestParameters['messageReaction'];
|
|
855
855
|
}
|
|
856
|
+
if (requestParameters['minMessages'] != null) {
|
|
857
|
+
queryParameters['minMessages'] = requestParameters['minMessages'];
|
|
858
|
+
}
|
|
859
|
+
if (requestParameters['maxMessages'] != null) {
|
|
860
|
+
queryParameters['maxMessages'] = requestParameters['maxMessages'];
|
|
861
|
+
}
|
|
856
862
|
const headerParameters = {};
|
|
857
863
|
if (this.configuration && this.configuration.apiKey) {
|
|
858
864
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -869,8 +875,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
869
875
|
* Get conversations for an agent
|
|
870
876
|
* Get conversations for an agent
|
|
871
877
|
*/
|
|
872
|
-
async getConversationsForAgent(agentId, page, search, messageSearch, conversationId, messageId, appId, instanceId, lastMessageFrom, lastMessageTo, sortOrder, messageReaction, initOverrides) {
|
|
873
|
-
const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page, search: search, messageSearch: messageSearch, conversationId: conversationId, messageId: messageId, appId: appId, instanceId: instanceId, lastMessageFrom: lastMessageFrom, lastMessageTo: lastMessageTo, sortOrder: sortOrder, messageReaction: messageReaction }, initOverrides);
|
|
878
|
+
async getConversationsForAgent(agentId, page, search, messageSearch, conversationId, messageId, appId, instanceId, lastMessageFrom, lastMessageTo, sortOrder, messageReaction, minMessages, maxMessages, initOverrides) {
|
|
879
|
+
const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page, search: search, messageSearch: messageSearch, conversationId: conversationId, messageId: messageId, appId: appId, instanceId: instanceId, lastMessageFrom: lastMessageFrom, lastMessageTo: lastMessageTo, sortOrder: sortOrder, messageReaction: messageReaction, minMessages: minMessages, maxMessages: maxMessages }, initOverrides);
|
|
874
880
|
return await response.value();
|
|
875
881
|
}
|
|
876
882
|
/**
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ConversationMessagesInnerSuggestionsInnerUio } from './ConversationMessagesInnerSuggestionsInnerUio';
|
|
13
|
+
import type { TokenUsage1Uio } from './TokenUsage1Uio';
|
|
13
14
|
import type { ChatMessageAudioInnerUio } from './ChatMessageAudioInnerUio';
|
|
14
15
|
import type { ConversationMessageApprovalUio } from './ConversationMessageApprovalUio';
|
|
15
16
|
import type { ConversationMessagesInnerFlowNodeUio } from './ConversationMessagesInnerFlowNodeUio';
|
|
16
17
|
import type { ToolResultsUio } from './ToolResultsUio';
|
|
17
|
-
import type { TokenUsageUio } from './TokenUsageUio';
|
|
18
18
|
import type { ConversationMessageQuestionnaireUio } from './ConversationMessageQuestionnaireUio';
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
@@ -74,10 +74,10 @@ export interface ConversationMessagesInnerUio {
|
|
|
74
74
|
audio?: Array<ChatMessageAudioInnerUio>;
|
|
75
75
|
/**
|
|
76
76
|
*
|
|
77
|
-
* @type {
|
|
77
|
+
* @type {TokenUsage1Uio}
|
|
78
78
|
* @memberof ConversationMessagesInnerUio
|
|
79
79
|
*/
|
|
80
|
-
usage?:
|
|
80
|
+
usage?: TokenUsage1Uio;
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
83
|
* @type {Array<ToolResultsUio>}
|
|
@@ -19,11 +19,11 @@ exports.ConversationMessagesInnerUioFromJSONTyped = ConversationMessagesInnerUio
|
|
|
19
19
|
exports.ConversationMessagesInnerUioToJSON = ConversationMessagesInnerUioToJSON;
|
|
20
20
|
exports.ConversationMessagesInnerUioToJSONTyped = ConversationMessagesInnerUioToJSONTyped;
|
|
21
21
|
const ConversationMessagesInnerSuggestionsInnerUio_1 = require("./ConversationMessagesInnerSuggestionsInnerUio");
|
|
22
|
+
const TokenUsage1Uio_1 = require("./TokenUsage1Uio");
|
|
22
23
|
const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
|
|
23
24
|
const ConversationMessageApprovalUio_1 = require("./ConversationMessageApprovalUio");
|
|
24
25
|
const ConversationMessagesInnerFlowNodeUio_1 = require("./ConversationMessagesInnerFlowNodeUio");
|
|
25
26
|
const ToolResultsUio_1 = require("./ToolResultsUio");
|
|
26
|
-
const TokenUsageUio_1 = require("./TokenUsageUio");
|
|
27
27
|
const ConversationMessageQuestionnaireUio_1 = require("./ConversationMessageQuestionnaireUio");
|
|
28
28
|
/**
|
|
29
29
|
* Check if a given object implements the ConversationMessagesInnerUio interface.
|
|
@@ -55,7 +55,7 @@ function ConversationMessagesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(ConversationMessagesInnerSuggestionsInnerUio_1.ConversationMessagesInnerSuggestionsInnerUioFromJSON)),
|
|
56
56
|
'flowNode': json['flowNode'] == null ? undefined : (0, ConversationMessagesInnerFlowNodeUio_1.ConversationMessagesInnerFlowNodeUioFromJSON)(json['flowNode']),
|
|
57
57
|
'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
|
|
58
|
-
'usage': json['usage'] == null ? undefined : (0,
|
|
58
|
+
'usage': json['usage'] == null ? undefined : (0, TokenUsage1Uio_1.TokenUsage1UioFromJSON)(json['usage']),
|
|
59
59
|
'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
|
|
60
60
|
'approvals': json['approvals'] == null ? undefined : (json['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioFromJSON)),
|
|
61
61
|
'questionnaires': json['questionnaires'] == null ? undefined : (json['questionnaires'].map(ConversationMessageQuestionnaireUio_1.ConversationMessageQuestionnaireUioFromJSON)),
|
|
@@ -78,7 +78,7 @@ function ConversationMessagesInnerUioToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
78
78
|
'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(ConversationMessagesInnerSuggestionsInnerUio_1.ConversationMessagesInnerSuggestionsInnerUioToJSON)),
|
|
79
79
|
'flowNode': (0, ConversationMessagesInnerFlowNodeUio_1.ConversationMessagesInnerFlowNodeUioToJSON)(value['flowNode']),
|
|
80
80
|
'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
|
|
81
|
-
'usage': (0,
|
|
81
|
+
'usage': (0, TokenUsage1Uio_1.TokenUsage1UioToJSON)(value['usage']),
|
|
82
82
|
'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
|
|
83
83
|
'approvals': value['approvals'] == null ? undefined : (value['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioToJSON)),
|
|
84
84
|
'questionnaires': value['questionnaires'] == null ? undefined : (value['questionnaires'].map(ConversationMessageQuestionnaireUio_1.ConversationMessageQuestionnaireUioToJSON)),
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ConversationMessagesInnerUio } from './ConversationMessagesInnerUio';
|
|
13
|
+
import type { TokenUsage1Uio } from './TokenUsage1Uio';
|
|
13
14
|
import type { ConversationMetricsInnerUio } from './ConversationMetricsInnerUio';
|
|
14
|
-
import type { TokenUsageUio } from './TokenUsageUio';
|
|
15
15
|
import type { ChatContextUio } from './ChatContextUio';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
@@ -63,10 +63,10 @@ export interface ConversationUio {
|
|
|
63
63
|
messages: Array<ConversationMessagesInnerUio>;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
|
-
* @type {
|
|
66
|
+
* @type {TokenUsage1Uio}
|
|
67
67
|
* @memberof ConversationUio
|
|
68
68
|
*/
|
|
69
|
-
usage?:
|
|
69
|
+
usage?: TokenUsage1Uio;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {Array<ConversationMetricsInnerUio>}
|
|
@@ -19,8 +19,8 @@ exports.ConversationUioFromJSONTyped = ConversationUioFromJSONTyped;
|
|
|
19
19
|
exports.ConversationUioToJSON = ConversationUioToJSON;
|
|
20
20
|
exports.ConversationUioToJSONTyped = ConversationUioToJSONTyped;
|
|
21
21
|
const ConversationMessagesInnerUio_1 = require("./ConversationMessagesInnerUio");
|
|
22
|
+
const TokenUsage1Uio_1 = require("./TokenUsage1Uio");
|
|
22
23
|
const ConversationMetricsInnerUio_1 = require("./ConversationMetricsInnerUio");
|
|
23
|
-
const TokenUsageUio_1 = require("./TokenUsageUio");
|
|
24
24
|
const ChatContextUio_1 = require("./ChatContextUio");
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the ConversationUio interface.
|
|
@@ -53,7 +53,7 @@ function ConversationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'customUserId': json['customUserId'] == null ? undefined : json['customUserId'],
|
|
54
54
|
'title': json['title'] == null ? undefined : json['title'],
|
|
55
55
|
'messages': (json['messages'].map(ConversationMessagesInnerUio_1.ConversationMessagesInnerUioFromJSON)),
|
|
56
|
-
'usage': json['usage'] == null ? undefined : (0,
|
|
56
|
+
'usage': json['usage'] == null ? undefined : (0, TokenUsage1Uio_1.TokenUsage1UioFromJSON)(json['usage']),
|
|
57
57
|
'metrics': json['metrics'] == null ? undefined : (json['metrics'].map(ConversationMetricsInnerUio_1.ConversationMetricsInnerUioFromJSON)),
|
|
58
58
|
'cost': json['cost'] == null ? undefined : json['cost'],
|
|
59
59
|
'appId': json['appId'] == null ? undefined : json['appId'],
|
|
@@ -78,7 +78,7 @@ function ConversationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
78
|
'customUserId': value['customUserId'],
|
|
79
79
|
'title': value['title'],
|
|
80
80
|
'messages': (value['messages'].map(ConversationMessagesInnerUio_1.ConversationMessagesInnerUioToJSON)),
|
|
81
|
-
'usage': (0,
|
|
81
|
+
'usage': (0, TokenUsage1Uio_1.TokenUsage1UioToJSON)(value['usage']),
|
|
82
82
|
'metrics': value['metrics'] == null ? undefined : (value['metrics'].map(ConversationMetricsInnerUio_1.ConversationMetricsInnerUioToJSON)),
|
|
83
83
|
'cost': value['cost'],
|
|
84
84
|
'appId': value['appId'],
|
|
@@ -79,7 +79,7 @@ export interface FileAttachmentDetailsResponseUio {
|
|
|
79
79
|
*/
|
|
80
80
|
ocr?: boolean;
|
|
81
81
|
/**
|
|
82
|
-
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
|
|
82
|
+
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE). SPEECH_TO_TEXT_NOT_CONFIGURED: an audio attachment for a model without audio input, and no speech-to-text model to transcribe it. TRANSCRIPTION_FAILED: the transcription of an audio attachment failed. AUDIO_TOO_LARGE: the audio exceeds what the transcription API accepts (25 MB) and the model cannot read it directly.
|
|
83
83
|
* @type {string}
|
|
84
84
|
* @memberof FileAttachmentDetailsResponseUio
|
|
85
85
|
*/
|
|
@@ -108,6 +108,9 @@ export interface FileAttachmentDetailsResponseUio {
|
|
|
108
108
|
*/
|
|
109
109
|
export declare const FileAttachmentDetailsResponseUioErrorCodeEnum: {
|
|
110
110
|
readonly AttachmentTooLarge: "ATTACHMENT_TOO_LARGE";
|
|
111
|
+
readonly SpeechToTextNotConfigured: "SPEECH_TO_TEXT_NOT_CONFIGURED";
|
|
112
|
+
readonly TranscriptionFailed: "TRANSCRIPTION_FAILED";
|
|
113
|
+
readonly AudioTooLarge: "AUDIO_TOO_LARGE";
|
|
111
114
|
};
|
|
112
115
|
export type FileAttachmentDetailsResponseUioErrorCodeEnum = typeof FileAttachmentDetailsResponseUioErrorCodeEnum[keyof typeof FileAttachmentDetailsResponseUioErrorCodeEnum];
|
|
113
116
|
/**
|
|
@@ -26,7 +26,10 @@ const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
|
|
|
26
26
|
* @export
|
|
27
27
|
*/
|
|
28
28
|
exports.FileAttachmentDetailsResponseUioErrorCodeEnum = {
|
|
29
|
-
AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE'
|
|
29
|
+
AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE',
|
|
30
|
+
SpeechToTextNotConfigured: 'SPEECH_TO_TEXT_NOT_CONFIGURED',
|
|
31
|
+
TranscriptionFailed: 'TRANSCRIPTION_FAILED',
|
|
32
|
+
AudioTooLarge: 'AUDIO_TOO_LARGE'
|
|
30
33
|
};
|
|
31
34
|
/**
|
|
32
35
|
* Check if a given object implements the FileAttachmentDetailsResponseUio interface.
|
|
@@ -79,7 +79,7 @@ export interface FileAttachmentUio {
|
|
|
79
79
|
*/
|
|
80
80
|
ocr?: boolean;
|
|
81
81
|
/**
|
|
82
|
-
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
|
|
82
|
+
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE). SPEECH_TO_TEXT_NOT_CONFIGURED: an audio attachment for a model without audio input, and no speech-to-text model to transcribe it. TRANSCRIPTION_FAILED: the transcription of an audio attachment failed. AUDIO_TOO_LARGE: the audio exceeds what the transcription API accepts (25 MB) and the model cannot read it directly.
|
|
83
83
|
* @type {string}
|
|
84
84
|
* @memberof FileAttachmentUio
|
|
85
85
|
*/
|
|
@@ -108,6 +108,9 @@ export interface FileAttachmentUio {
|
|
|
108
108
|
*/
|
|
109
109
|
export declare const FileAttachmentUioErrorCodeEnum: {
|
|
110
110
|
readonly AttachmentTooLarge: "ATTACHMENT_TOO_LARGE";
|
|
111
|
+
readonly SpeechToTextNotConfigured: "SPEECH_TO_TEXT_NOT_CONFIGURED";
|
|
112
|
+
readonly TranscriptionFailed: "TRANSCRIPTION_FAILED";
|
|
113
|
+
readonly AudioTooLarge: "AUDIO_TOO_LARGE";
|
|
111
114
|
};
|
|
112
115
|
export type FileAttachmentUioErrorCodeEnum = typeof FileAttachmentUioErrorCodeEnum[keyof typeof FileAttachmentUioErrorCodeEnum];
|
|
113
116
|
/**
|
|
@@ -26,7 +26,10 @@ const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
|
|
|
26
26
|
* @export
|
|
27
27
|
*/
|
|
28
28
|
exports.FileAttachmentUioErrorCodeEnum = {
|
|
29
|
-
AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE'
|
|
29
|
+
AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE',
|
|
30
|
+
SpeechToTextNotConfigured: 'SPEECH_TO_TEXT_NOT_CONFIGURED',
|
|
31
|
+
TranscriptionFailed: 'TRANSCRIPTION_FAILED',
|
|
32
|
+
AudioTooLarge: 'AUDIO_TOO_LARGE'
|
|
30
33
|
};
|
|
31
34
|
/**
|
|
32
35
|
* Check if a given object implements the FileAttachmentUio interface.
|
|
@@ -80,7 +80,7 @@ export interface FileAttachmentUploadResponseUio {
|
|
|
80
80
|
*/
|
|
81
81
|
ocr?: boolean;
|
|
82
82
|
/**
|
|
83
|
-
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
|
|
83
|
+
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE). SPEECH_TO_TEXT_NOT_CONFIGURED: an audio attachment for a model without audio input, and no speech-to-text model to transcribe it. TRANSCRIPTION_FAILED: the transcription of an audio attachment failed. AUDIO_TOO_LARGE: the audio exceeds what the transcription API accepts (25 MB) and the model cannot read it directly.
|
|
84
84
|
* @type {string}
|
|
85
85
|
* @memberof FileAttachmentUploadResponseUio
|
|
86
86
|
*/
|
|
@@ -137,6 +137,9 @@ export interface FileAttachmentUploadResponseUio {
|
|
|
137
137
|
*/
|
|
138
138
|
export declare const FileAttachmentUploadResponseUioErrorCodeEnum: {
|
|
139
139
|
readonly AttachmentTooLarge: "ATTACHMENT_TOO_LARGE";
|
|
140
|
+
readonly SpeechToTextNotConfigured: "SPEECH_TO_TEXT_NOT_CONFIGURED";
|
|
141
|
+
readonly TranscriptionFailed: "TRANSCRIPTION_FAILED";
|
|
142
|
+
readonly AudioTooLarge: "AUDIO_TOO_LARGE";
|
|
140
143
|
};
|
|
141
144
|
export type FileAttachmentUploadResponseUioErrorCodeEnum = typeof FileAttachmentUploadResponseUioErrorCodeEnum[keyof typeof FileAttachmentUploadResponseUioErrorCodeEnum];
|
|
142
145
|
/**
|
|
@@ -27,7 +27,10 @@ const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
|
|
|
27
27
|
* @export
|
|
28
28
|
*/
|
|
29
29
|
exports.FileAttachmentUploadResponseUioErrorCodeEnum = {
|
|
30
|
-
AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE'
|
|
30
|
+
AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE',
|
|
31
|
+
SpeechToTextNotConfigured: 'SPEECH_TO_TEXT_NOT_CONFIGURED',
|
|
32
|
+
TranscriptionFailed: 'TRANSCRIPTION_FAILED',
|
|
33
|
+
AudioTooLarge: 'AUDIO_TOO_LARGE'
|
|
31
34
|
};
|
|
32
35
|
/**
|
|
33
36
|
* Check if a given object implements the FileAttachmentUploadResponseUio interface.
|
|
@@ -63,6 +63,12 @@ export interface ModelDefinitionUio {
|
|
|
63
63
|
* @memberof ModelDefinitionUio
|
|
64
64
|
*/
|
|
65
65
|
hasSpeechToText?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Le modèle accepte de l'audio en entrée dans un message de chat. Sans cette capacité, une pièce jointe audio lui parvient sous forme de transcription.
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof ModelDefinitionUio
|
|
70
|
+
*/
|
|
71
|
+
hasAudioInput?: boolean;
|
|
66
72
|
/**
|
|
67
73
|
* Le modèle expose une API d'OCR dédiée (ex. mistral-ocr-latest). Distinct de `hasVision`, qui est la capacité utilisée par le mode OCR `LLM`.
|
|
68
74
|
* @type {boolean}
|
|
@@ -53,6 +53,7 @@ function ModelDefinitionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'hasReasoning': json['hasReasoning'] == null ? undefined : json['hasReasoning'],
|
|
54
54
|
'hasEmbedding': json['hasEmbedding'] == null ? undefined : json['hasEmbedding'],
|
|
55
55
|
'hasSpeechToText': json['hasSpeechToText'] == null ? undefined : json['hasSpeechToText'],
|
|
56
|
+
'hasAudioInput': json['hasAudioInput'] == null ? undefined : json['hasAudioInput'],
|
|
56
57
|
'hasOcr': json['hasOcr'] == null ? undefined : json['hasOcr'],
|
|
57
58
|
'hasDecision': json['hasDecision'] == null ? undefined : json['hasDecision'],
|
|
58
59
|
'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
|
|
@@ -79,6 +80,7 @@ function ModelDefinitionUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
80
|
'hasReasoning': value['hasReasoning'],
|
|
80
81
|
'hasEmbedding': value['hasEmbedding'],
|
|
81
82
|
'hasSpeechToText': value['hasSpeechToText'],
|
|
83
|
+
'hasAudioInput': value['hasAudioInput'],
|
|
82
84
|
'hasOcr': value['hasOcr'],
|
|
83
85
|
'hasDecision': value['hasDecision'],
|
|
84
86
|
'maxTokens': value['maxTokens'],
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Un modèle utilisé, avec le moteur qui l'a servi (un même modelId peut venir de plusieurs), et les tokens que ce modèle-là a consommés.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ModelUsedUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelUsedUio {
|
|
18
|
+
/**
|
|
19
|
+
* modelId du modèle.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ModelUsedUio
|
|
22
|
+
*/
|
|
23
|
+
model: string;
|
|
24
|
+
/**
|
|
25
|
+
* Id du moteur.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ModelUsedUio
|
|
28
|
+
*/
|
|
29
|
+
provider: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ModelUsedUio
|
|
34
|
+
*/
|
|
35
|
+
providerName: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* D'où vient le moteur : l'organisation (ses propres clés) ou la plateforme (Breign). Null si le moteur est inconnu (supprimé, ou ligne de métrique antérieure à l'id du moteur).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ModelUsedUio
|
|
40
|
+
*/
|
|
41
|
+
origin: ModelUsedUioOriginEnum | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ModelUsedUio
|
|
46
|
+
*/
|
|
47
|
+
inputTokens: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ModelUsedUio
|
|
52
|
+
*/
|
|
53
|
+
outputTokens: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ModelUsedUio
|
|
58
|
+
*/
|
|
59
|
+
reasoningTokens: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ModelUsedUio
|
|
64
|
+
*/
|
|
65
|
+
totalTokens: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const ModelUsedUioOriginEnum: {
|
|
71
|
+
readonly Organization: "organization";
|
|
72
|
+
readonly Platform: "platform";
|
|
73
|
+
};
|
|
74
|
+
export type ModelUsedUioOriginEnum = typeof ModelUsedUioOriginEnum[keyof typeof ModelUsedUioOriginEnum];
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the ModelUsedUio interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfModelUsedUio(value: object): value is ModelUsedUio;
|
|
79
|
+
export declare function ModelUsedUioFromJSON(json: any): ModelUsedUio;
|
|
80
|
+
export declare function ModelUsedUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelUsedUio;
|
|
81
|
+
export declare function ModelUsedUioToJSON(json: any): ModelUsedUio;
|
|
82
|
+
export declare function ModelUsedUioToJSONTyped(value?: ModelUsedUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ModelUsedUioOriginEnum = void 0;
|
|
17
|
+
exports.instanceOfModelUsedUio = instanceOfModelUsedUio;
|
|
18
|
+
exports.ModelUsedUioFromJSON = ModelUsedUioFromJSON;
|
|
19
|
+
exports.ModelUsedUioFromJSONTyped = ModelUsedUioFromJSONTyped;
|
|
20
|
+
exports.ModelUsedUioToJSON = ModelUsedUioToJSON;
|
|
21
|
+
exports.ModelUsedUioToJSONTyped = ModelUsedUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ModelUsedUioOriginEnum = {
|
|
26
|
+
Organization: 'organization',
|
|
27
|
+
Platform: 'platform'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ModelUsedUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfModelUsedUio(value) {
|
|
33
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('providerName' in value) || value['providerName'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('origin' in value) || value['origin'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('reasoningTokens' in value) || value['reasoningTokens'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('totalTokens' in value) || value['totalTokens'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function ModelUsedUioFromJSON(json) {
|
|
52
|
+
return ModelUsedUioFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ModelUsedUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'model': json['model'],
|
|
60
|
+
'provider': json['provider'],
|
|
61
|
+
'providerName': json['providerName'],
|
|
62
|
+
'origin': json['origin'],
|
|
63
|
+
'inputTokens': json['inputTokens'],
|
|
64
|
+
'outputTokens': json['outputTokens'],
|
|
65
|
+
'reasoningTokens': json['reasoningTokens'],
|
|
66
|
+
'totalTokens': json['totalTokens'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function ModelUsedUioToJSON(json) {
|
|
70
|
+
return ModelUsedUioToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function ModelUsedUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'model': value['model'],
|
|
78
|
+
'provider': value['provider'],
|
|
79
|
+
'providerName': value['providerName'],
|
|
80
|
+
'origin': value['origin'],
|
|
81
|
+
'inputTokens': value['inputTokens'],
|
|
82
|
+
'outputTokens': value['outputTokens'],
|
|
83
|
+
'reasoningTokens': value['reasoningTokens'],
|
|
84
|
+
'totalTokens': value['totalTokens'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ModelUsedUio } from './ModelUsedUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TokenUsage1Uio
|
|
17
|
+
*/
|
|
18
|
+
export interface TokenUsage1Uio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof TokenUsage1Uio
|
|
23
|
+
*/
|
|
24
|
+
inputTokens: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof TokenUsage1Uio
|
|
29
|
+
*/
|
|
30
|
+
outputTokens: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof TokenUsage1Uio
|
|
35
|
+
*/
|
|
36
|
+
reasoningTokens: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof TokenUsage1Uio
|
|
41
|
+
*/
|
|
42
|
+
totalTokens: number;
|
|
43
|
+
/**
|
|
44
|
+
* Modèles identifiés qui ont consommé ces tokens, du plus au moins utilisé, chacun avec sa propre consommation. Les totaux ci-dessus peuvent inclure une consommation non attribuée à un modèle (OCR…).
|
|
45
|
+
* @type {Array<ModelUsedUio>}
|
|
46
|
+
* @memberof TokenUsage1Uio
|
|
47
|
+
*/
|
|
48
|
+
models?: Array<ModelUsedUio>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the TokenUsage1Uio interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfTokenUsage1Uio(value: object): value is TokenUsage1Uio;
|
|
54
|
+
export declare function TokenUsage1UioFromJSON(json: any): TokenUsage1Uio;
|
|
55
|
+
export declare function TokenUsage1UioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenUsage1Uio;
|
|
56
|
+
export declare function TokenUsage1UioToJSON(json: any): TokenUsage1Uio;
|
|
57
|
+
export declare function TokenUsage1UioToJSONTyped(value?: TokenUsage1Uio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTokenUsage1Uio = instanceOfTokenUsage1Uio;
|
|
17
|
+
exports.TokenUsage1UioFromJSON = TokenUsage1UioFromJSON;
|
|
18
|
+
exports.TokenUsage1UioFromJSONTyped = TokenUsage1UioFromJSONTyped;
|
|
19
|
+
exports.TokenUsage1UioToJSON = TokenUsage1UioToJSON;
|
|
20
|
+
exports.TokenUsage1UioToJSONTyped = TokenUsage1UioToJSONTyped;
|
|
21
|
+
const ModelUsedUio_1 = require("./ModelUsedUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TokenUsage1Uio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTokenUsage1Uio(value) {
|
|
26
|
+
if (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('reasoningTokens' in value) || value['reasoningTokens'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalTokens' in value) || value['totalTokens'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function TokenUsage1UioFromJSON(json) {
|
|
37
|
+
return TokenUsage1UioFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function TokenUsage1UioFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'inputTokens': json['inputTokens'],
|
|
45
|
+
'outputTokens': json['outputTokens'],
|
|
46
|
+
'reasoningTokens': json['reasoningTokens'],
|
|
47
|
+
'totalTokens': json['totalTokens'],
|
|
48
|
+
'models': json['models'] == null ? undefined : (json['models'].map(ModelUsedUio_1.ModelUsedUioFromJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function TokenUsage1UioToJSON(json) {
|
|
52
|
+
return TokenUsage1UioToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function TokenUsage1UioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'inputTokens': value['inputTokens'],
|
|
60
|
+
'outputTokens': value['outputTokens'],
|
|
61
|
+
'reasoningTokens': value['reasoningTokens'],
|
|
62
|
+
'totalTokens': value['totalTokens'],
|
|
63
|
+
'models': value['models'] == null ? undefined : (value['models'].map(ModelUsedUio_1.ModelUsedUioToJSON)),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ModelUsedUio } from './ModelUsedUio';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -39,6 +40,12 @@ export interface TokenUsageUio {
|
|
|
39
40
|
* @memberof TokenUsageUio
|
|
40
41
|
*/
|
|
41
42
|
totalTokens: number;
|
|
43
|
+
/**
|
|
44
|
+
* Modèles identifiés qui ont consommé ces tokens, du plus au moins utilisé, chacun avec sa propre consommation. Les totaux ci-dessus peuvent inclure une consommation non attribuée à un modèle (OCR…).
|
|
45
|
+
* @type {Array<ModelUsedUio>}
|
|
46
|
+
* @memberof TokenUsageUio
|
|
47
|
+
*/
|
|
48
|
+
models?: Array<ModelUsedUio>;
|
|
42
49
|
}
|
|
43
50
|
/**
|
|
44
51
|
* Check if a given object implements the TokenUsageUio interface.
|
|
@@ -18,6 +18,7 @@ exports.TokenUsageUioFromJSON = TokenUsageUioFromJSON;
|
|
|
18
18
|
exports.TokenUsageUioFromJSONTyped = TokenUsageUioFromJSONTyped;
|
|
19
19
|
exports.TokenUsageUioToJSON = TokenUsageUioToJSON;
|
|
20
20
|
exports.TokenUsageUioToJSONTyped = TokenUsageUioToJSONTyped;
|
|
21
|
+
const ModelUsedUio_1 = require("./ModelUsedUio");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the TokenUsageUio interface.
|
|
23
24
|
*/
|
|
@@ -44,6 +45,7 @@ function TokenUsageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
45
|
'outputTokens': json['outputTokens'],
|
|
45
46
|
'reasoningTokens': json['reasoningTokens'],
|
|
46
47
|
'totalTokens': json['totalTokens'],
|
|
48
|
+
'models': json['models'] == null ? undefined : (json['models'].map(ModelUsedUio_1.ModelUsedUioFromJSON)),
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
function TokenUsageUioToJSON(json) {
|
|
@@ -58,5 +60,6 @@ function TokenUsageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
60
|
'outputTokens': value['outputTokens'],
|
|
59
61
|
'reasoningTokens': value['reasoningTokens'],
|
|
60
62
|
'totalTokens': value['totalTokens'],
|
|
63
|
+
'models': value['models'] == null ? undefined : (value['models'].map(ModelUsedUio_1.ModelUsedUioToJSON)),
|
|
61
64
|
};
|
|
62
65
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -491,6 +491,7 @@ export * from './ModelConsumptionItemUio';
|
|
|
491
491
|
export * from './ModelConsumptionSliceUio';
|
|
492
492
|
export * from './ModelDefinitionUio';
|
|
493
493
|
export * from './ModelUio';
|
|
494
|
+
export * from './ModelUsedUio';
|
|
494
495
|
export * from './ModelUserAccessUio';
|
|
495
496
|
export * from './NodeAssociationPolicyUio';
|
|
496
497
|
export * from './NodeGroupAgentUio';
|
|
@@ -706,6 +707,7 @@ export * from './TicketUio';
|
|
|
706
707
|
export * from './TicketUsageUio';
|
|
707
708
|
export * from './TokenPriceSuggestionRequestUio';
|
|
708
709
|
export * from './TokenPriceSuggestionUio';
|
|
710
|
+
export * from './TokenUsage1Uio';
|
|
709
711
|
export * from './TokenUsageUio';
|
|
710
712
|
export * from './ToolActionUio';
|
|
711
713
|
export * from './ToolAllowedToolsRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -509,6 +509,7 @@ __exportStar(require("./ModelConsumptionItemUio"), exports);
|
|
|
509
509
|
__exportStar(require("./ModelConsumptionSliceUio"), exports);
|
|
510
510
|
__exportStar(require("./ModelDefinitionUio"), exports);
|
|
511
511
|
__exportStar(require("./ModelUio"), exports);
|
|
512
|
+
__exportStar(require("./ModelUsedUio"), exports);
|
|
512
513
|
__exportStar(require("./ModelUserAccessUio"), exports);
|
|
513
514
|
__exportStar(require("./NodeAssociationPolicyUio"), exports);
|
|
514
515
|
__exportStar(require("./NodeGroupAgentUio"), exports);
|
|
@@ -724,6 +725,7 @@ __exportStar(require("./TicketUio"), exports);
|
|
|
724
725
|
__exportStar(require("./TicketUsageUio"), exports);
|
|
725
726
|
__exportStar(require("./TokenPriceSuggestionRequestUio"), exports);
|
|
726
727
|
__exportStar(require("./TokenPriceSuggestionUio"), exports);
|
|
728
|
+
__exportStar(require("./TokenUsage1Uio"), exports);
|
|
727
729
|
__exportStar(require("./TokenUsageUio"), exports);
|
|
728
730
|
__exportStar(require("./ToolActionUio"), exports);
|
|
729
731
|
__exportStar(require("./ToolAllowedToolsRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -2143,6 +2143,22 @@
|
|
|
2143
2143
|
"enum" : [ "positive", "negative" ],
|
|
2144
2144
|
"type" : "string"
|
|
2145
2145
|
}
|
|
2146
|
+
}, {
|
|
2147
|
+
"description" : "Keep conversations with at least this many messages from the user (the count shown in the history).",
|
|
2148
|
+
"in" : "query",
|
|
2149
|
+
"name" : "minMessages",
|
|
2150
|
+
"schema" : {
|
|
2151
|
+
"minimum" : 0,
|
|
2152
|
+
"type" : "integer"
|
|
2153
|
+
}
|
|
2154
|
+
}, {
|
|
2155
|
+
"description" : "Keep conversations with at most this many messages from the user (the count shown in the history).",
|
|
2156
|
+
"in" : "query",
|
|
2157
|
+
"name" : "maxMessages",
|
|
2158
|
+
"schema" : {
|
|
2159
|
+
"minimum" : 0,
|
|
2160
|
+
"type" : "integer"
|
|
2161
|
+
}
|
|
2146
2162
|
} ],
|
|
2147
2163
|
"responses" : {
|
|
2148
2164
|
"200" : {
|
|
@@ -23570,6 +23586,24 @@
|
|
|
23570
23586
|
"type" : "string"
|
|
23571
23587
|
}
|
|
23572
23588
|
},
|
|
23589
|
+
"minMessages" : {
|
|
23590
|
+
"description" : "Keep conversations with at least this many messages from the user (the count shown in the history).",
|
|
23591
|
+
"in" : "query",
|
|
23592
|
+
"name" : "minMessages",
|
|
23593
|
+
"schema" : {
|
|
23594
|
+
"minimum" : 0,
|
|
23595
|
+
"type" : "integer"
|
|
23596
|
+
}
|
|
23597
|
+
},
|
|
23598
|
+
"maxMessages" : {
|
|
23599
|
+
"description" : "Keep conversations with at most this many messages from the user (the count shown in the history).",
|
|
23600
|
+
"in" : "query",
|
|
23601
|
+
"name" : "maxMessages",
|
|
23602
|
+
"schema" : {
|
|
23603
|
+
"minimum" : 0,
|
|
23604
|
+
"type" : "integer"
|
|
23605
|
+
}
|
|
23606
|
+
},
|
|
23573
23607
|
"ephemeral" : {
|
|
23574
23608
|
"description" : "If true, the resource will not appear in history and will be deleted after a certain time.",
|
|
23575
23609
|
"in" : "query",
|
|
@@ -26410,8 +26444,8 @@
|
|
|
26410
26444
|
"type" : "boolean"
|
|
26411
26445
|
},
|
|
26412
26446
|
"errorCode" : {
|
|
26413
|
-
"description" : "Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)",
|
|
26414
|
-
"enum" : [ "ATTACHMENT_TOO_LARGE" ],
|
|
26447
|
+
"description" : "Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE). SPEECH_TO_TEXT_NOT_CONFIGURED: an audio attachment for a model without audio input, and no speech-to-text model to transcribe it. TRANSCRIPTION_FAILED: the transcription of an audio attachment failed. AUDIO_TOO_LARGE: the audio exceeds what the transcription API accepts (25 MB) and the model cannot read it directly.",
|
|
26448
|
+
"enum" : [ "ATTACHMENT_TOO_LARGE", "SPEECH_TO_TEXT_NOT_CONFIGURED", "TRANSCRIPTION_FAILED", "AUDIO_TOO_LARGE" ],
|
|
26415
26449
|
"type" : "string"
|
|
26416
26450
|
},
|
|
26417
26451
|
"estimatedTokens" : {
|
|
@@ -26444,11 +26478,56 @@
|
|
|
26444
26478
|
},
|
|
26445
26479
|
"totalTokens" : {
|
|
26446
26480
|
"type" : "number"
|
|
26481
|
+
},
|
|
26482
|
+
"models" : {
|
|
26483
|
+
"description" : "Modèles identifiés qui ont consommé ces tokens, du plus au moins utilisé, chacun avec sa propre consommation. Les totaux ci-dessus peuvent inclure une consommation non attribuée à un modèle (OCR…).",
|
|
26484
|
+
"items" : {
|
|
26485
|
+
"$ref" : "#/components/schemas/ModelUsed"
|
|
26486
|
+
},
|
|
26487
|
+
"type" : "array"
|
|
26447
26488
|
}
|
|
26448
26489
|
},
|
|
26449
26490
|
"required" : [ "inputTokens", "outputTokens", "reasoningTokens", "totalTokens" ],
|
|
26450
26491
|
"type" : "object"
|
|
26451
26492
|
},
|
|
26493
|
+
"ModelUsed" : {
|
|
26494
|
+
"description" : "Un modèle utilisé, avec le moteur qui l'a servi (un même modelId peut venir de plusieurs), et les tokens que ce modèle-là a consommés.",
|
|
26495
|
+
"properties" : {
|
|
26496
|
+
"model" : {
|
|
26497
|
+
"description" : "modelId du modèle.",
|
|
26498
|
+
"type" : "string"
|
|
26499
|
+
},
|
|
26500
|
+
"provider" : {
|
|
26501
|
+
"description" : "Id du moteur.",
|
|
26502
|
+
"nullable" : true,
|
|
26503
|
+
"type" : "string"
|
|
26504
|
+
},
|
|
26505
|
+
"providerName" : {
|
|
26506
|
+
"nullable" : true,
|
|
26507
|
+
"type" : "string"
|
|
26508
|
+
},
|
|
26509
|
+
"origin" : {
|
|
26510
|
+
"description" : "D'où vient le moteur : l'organisation (ses propres clés) ou la plateforme (Breign). Null si le moteur est inconnu (supprimé, ou ligne de métrique antérieure à l'id du moteur).",
|
|
26511
|
+
"enum" : [ "organization", "platform" ],
|
|
26512
|
+
"nullable" : true,
|
|
26513
|
+
"type" : "string"
|
|
26514
|
+
},
|
|
26515
|
+
"inputTokens" : {
|
|
26516
|
+
"type" : "number"
|
|
26517
|
+
},
|
|
26518
|
+
"outputTokens" : {
|
|
26519
|
+
"type" : "number"
|
|
26520
|
+
},
|
|
26521
|
+
"reasoningTokens" : {
|
|
26522
|
+
"type" : "number"
|
|
26523
|
+
},
|
|
26524
|
+
"totalTokens" : {
|
|
26525
|
+
"type" : "number"
|
|
26526
|
+
}
|
|
26527
|
+
},
|
|
26528
|
+
"required" : [ "inputTokens", "model", "origin", "outputTokens", "provider", "providerName", "reasoningTokens", "totalTokens" ],
|
|
26529
|
+
"type" : "object"
|
|
26530
|
+
},
|
|
26452
26531
|
"ConversationContextUsage" : {
|
|
26453
26532
|
"additionalProperties" : false,
|
|
26454
26533
|
"description" : "How much of the model's context window this conversation occupies: the prompt of the last generation call, not the conversation's cumulated token count. Absent until a turn has been measured — an unmeasured conversation has an unknown occupancy, not an empty window.",
|
|
@@ -27943,7 +28022,7 @@
|
|
|
27943
28022
|
"type" : "array"
|
|
27944
28023
|
},
|
|
27945
28024
|
"usage" : {
|
|
27946
|
-
"$ref" : "#/components/schemas/
|
|
28025
|
+
"$ref" : "#/components/schemas/TokenUsage_1"
|
|
27947
28026
|
},
|
|
27948
28027
|
"metrics" : {
|
|
27949
28028
|
"items" : {
|
|
@@ -27976,6 +28055,31 @@
|
|
|
27976
28055
|
"required" : [ "brainId", "createdAt", "id", "messages", "updatedAt" ],
|
|
27977
28056
|
"type" : "object"
|
|
27978
28057
|
},
|
|
28058
|
+
"TokenUsage_1" : {
|
|
28059
|
+
"properties" : {
|
|
28060
|
+
"inputTokens" : {
|
|
28061
|
+
"type" : "number"
|
|
28062
|
+
},
|
|
28063
|
+
"outputTokens" : {
|
|
28064
|
+
"type" : "number"
|
|
28065
|
+
},
|
|
28066
|
+
"reasoningTokens" : {
|
|
28067
|
+
"type" : "number"
|
|
28068
|
+
},
|
|
28069
|
+
"totalTokens" : {
|
|
28070
|
+
"type" : "number"
|
|
28071
|
+
},
|
|
28072
|
+
"models" : {
|
|
28073
|
+
"description" : "Modèles identifiés qui ont consommé ces tokens, du plus au moins utilisé, chacun avec sa propre consommation. Les totaux ci-dessus peuvent inclure une consommation non attribuée à un modèle (OCR…).",
|
|
28074
|
+
"items" : {
|
|
28075
|
+
"$ref" : "#/components/schemas/ModelUsed"
|
|
28076
|
+
},
|
|
28077
|
+
"type" : "array"
|
|
28078
|
+
}
|
|
28079
|
+
},
|
|
28080
|
+
"required" : [ "inputTokens", "outputTokens", "reasoningTokens", "totalTokens" ],
|
|
28081
|
+
"type" : "object"
|
|
28082
|
+
},
|
|
27979
28083
|
"AuthCodeRequest" : {
|
|
27980
28084
|
"additionalProperties" : false,
|
|
27981
28085
|
"properties" : {
|
|
@@ -29414,6 +29518,10 @@
|
|
|
29414
29518
|
"hasSpeechToText" : {
|
|
29415
29519
|
"type" : "boolean"
|
|
29416
29520
|
},
|
|
29521
|
+
"hasAudioInput" : {
|
|
29522
|
+
"description" : "Le modèle accepte de l'audio en entrée dans un message de chat. Sans cette capacité, une pièce jointe audio lui parvient sous forme de transcription.",
|
|
29523
|
+
"type" : "boolean"
|
|
29524
|
+
},
|
|
29417
29525
|
"hasOcr" : {
|
|
29418
29526
|
"description" : "Le modèle expose une API d'OCR dédiée (ex. mistral-ocr-latest). Distinct de `hasVision`, qui est la capacité utilisée par le mode OCR `LLM`.",
|
|
29419
29527
|
"type" : "boolean"
|
|
@@ -40153,7 +40261,7 @@
|
|
|
40153
40261
|
"type" : "array"
|
|
40154
40262
|
},
|
|
40155
40263
|
"usage" : {
|
|
40156
|
-
"$ref" : "#/components/schemas/
|
|
40264
|
+
"$ref" : "#/components/schemas/TokenUsage_1"
|
|
40157
40265
|
},
|
|
40158
40266
|
"toolResults" : {
|
|
40159
40267
|
"items" : {
|