@breign/client 1.0.162 → 1.0.164
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 +15 -1
- package/dist/apis/AgentApi.js +34 -0
- package/dist/apis/ConversationsApi.d.ts +22 -4
- package/dist/apis/ConversationsApi.js +48 -4
- package/dist/models/AgentChatOverviewEntryUio.d.ts +20 -1
- package/dist/models/AgentChatOverviewEntryUio.js +7 -0
- package/dist/models/AgentPromptInitGenerationRequestNotesUio.d.ts +45 -0
- package/dist/models/AgentPromptInitGenerationRequestNotesUio.js +52 -0
- package/dist/models/AgentPromptInitGenerationRequestUio.d.ts +110 -0
- package/dist/models/AgentPromptInitGenerationRequestUio.js +92 -0
- package/dist/models/AgentPromptInitGenerationResponseUio.d.ts +38 -0
- package/dist/models/AgentPromptInitGenerationResponseUio.js +52 -0
- package/dist/models/ChatSessionSummaryLastMessagePreviewUio.d.ts +46 -0
- package/dist/models/ChatSessionSummaryLastMessagePreviewUio.js +62 -0
- package/dist/models/ChatSessionSummaryUio.d.ts +87 -0
- package/dist/models/ChatSessionSummaryUio.js +85 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/openapi.json +339 -2
- package/package.json +1 -1
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AddModuleRequestUio, AdvancedFlowEditorUio, AdvancedFlowEditorUpdateRequestUio, AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentImportRequestUio, AgentImportResponseUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentToolAllowedMethodsRequestUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, ConversationAttachmentDownloadUrlUio, ConversationMessageImagesUio, DeleteMessageAudio200ResponseUio, EphemeralInstancesMetricsResponseUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, MessageAudioDownloadUrlUio, OrgUsageMetricsResponseUio, S3UploadBodyUio, STTResponseUio } from '../models/index';
|
|
13
|
+
import type { AddModuleRequestUio, AdvancedFlowEditorUio, AdvancedFlowEditorUpdateRequestUio, AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentImportRequestUio, AgentImportResponseUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentPromptInitGenerationRequestUio, AgentPromptInitGenerationResponseUio, AgentRequestUio, AgentSubscriptionUio, AgentToolAllowedMethodsRequestUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, ConversationAttachmentDownloadUrlUio, ConversationMessageImagesUio, DeleteMessageAudio200ResponseUio, EphemeralInstancesMetricsResponseUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, MessageAudioDownloadUrlUio, OrgUsageMetricsResponseUio, S3UploadBodyUio, STTResponseUio } from '../models/index';
|
|
14
14
|
export interface AddModuleRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
addModuleRequestUio: AddModuleRequestUio;
|
|
@@ -52,6 +52,10 @@ export interface ExportAgentRequest {
|
|
|
52
52
|
agentId: string;
|
|
53
53
|
format?: ExportAgentFormatEnum;
|
|
54
54
|
}
|
|
55
|
+
export interface GenerateAgentPromptInitRequest {
|
|
56
|
+
agentId: string;
|
|
57
|
+
agentPromptInitGenerationRequestUio: AgentPromptInitGenerationRequestUio;
|
|
58
|
+
}
|
|
55
59
|
export interface GetAdvancedFlowEditorRequest {
|
|
56
60
|
agentId: string;
|
|
57
61
|
}
|
|
@@ -307,6 +311,16 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
307
311
|
* Export an agent
|
|
308
312
|
*/
|
|
309
313
|
exportAgent(agentId: string, format?: ExportAgentFormatEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
314
|
+
/**
|
|
315
|
+
* Writes a ready-to-use initialization prompt from a short brief, using the AI model configured on the agent (or, failing that, on its organisation). The result is returned only — it is never persisted on the agent, which is updated through PATCH /agents/{agentId}.
|
|
316
|
+
* Generate initialization instructions for an agent
|
|
317
|
+
*/
|
|
318
|
+
generateAgentPromptInitRaw(requestParameters: GenerateAgentPromptInitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentPromptInitGenerationResponseUio>>;
|
|
319
|
+
/**
|
|
320
|
+
* Writes a ready-to-use initialization prompt from a short brief, using the AI model configured on the agent (or, failing that, on its organisation). The result is returned only — it is never persisted on the agent, which is updated through PATCH /agents/{agentId}.
|
|
321
|
+
* Generate initialization instructions for an agent
|
|
322
|
+
*/
|
|
323
|
+
generateAgentPromptInit(agentId: string, agentPromptInitGenerationRequestUio: AgentPromptInitGenerationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentPromptInitGenerationResponseUio>;
|
|
310
324
|
/**
|
|
311
325
|
* Get the advanced flow editor state for an agent
|
|
312
326
|
* Get advanced flow editor state
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -388,6 +388,40 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
388
388
|
const response = await this.exportAgentRaw({ agentId: agentId, format: format }, initOverrides);
|
|
389
389
|
return await response.value();
|
|
390
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* Writes a ready-to-use initialization prompt from a short brief, using the AI model configured on the agent (or, failing that, on its organisation). The result is returned only — it is never persisted on the agent, which is updated through PATCH /agents/{agentId}.
|
|
393
|
+
* Generate initialization instructions for an agent
|
|
394
|
+
*/
|
|
395
|
+
async generateAgentPromptInitRaw(requestParameters, initOverrides) {
|
|
396
|
+
if (requestParameters['agentId'] == null) {
|
|
397
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling generateAgentPromptInit().');
|
|
398
|
+
}
|
|
399
|
+
if (requestParameters['agentPromptInitGenerationRequestUio'] == null) {
|
|
400
|
+
throw new runtime.RequiredError('agentPromptInitGenerationRequestUio', 'Required parameter "agentPromptInitGenerationRequestUio" was null or undefined when calling generateAgentPromptInit().');
|
|
401
|
+
}
|
|
402
|
+
const queryParameters = {};
|
|
403
|
+
const headerParameters = {};
|
|
404
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
405
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
406
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
407
|
+
}
|
|
408
|
+
const response = await this.request({
|
|
409
|
+
path: `/agents/{agentId}/prompt-init/generate`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
410
|
+
method: 'POST',
|
|
411
|
+
headers: headerParameters,
|
|
412
|
+
query: queryParameters,
|
|
413
|
+
body: (0, index_1.AgentPromptInitGenerationRequestUioToJSON)(requestParameters['agentPromptInitGenerationRequestUio']),
|
|
414
|
+
}, initOverrides);
|
|
415
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentPromptInitGenerationResponseUioFromJSON)(jsonValue));
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Writes a ready-to-use initialization prompt from a short brief, using the AI model configured on the agent (or, failing that, on its organisation). The result is returned only — it is never persisted on the agent, which is updated through PATCH /agents/{agentId}.
|
|
419
|
+
* Generate initialization instructions for an agent
|
|
420
|
+
*/
|
|
421
|
+
async generateAgentPromptInit(agentId, agentPromptInitGenerationRequestUio, initOverrides) {
|
|
422
|
+
const response = await this.generateAgentPromptInitRaw({ agentId: agentId, agentPromptInitGenerationRequestUio: agentPromptInitGenerationRequestUio }, initOverrides);
|
|
423
|
+
return await response.value();
|
|
424
|
+
}
|
|
391
425
|
/**
|
|
392
426
|
* Get the advanced flow editor state for an agent
|
|
393
427
|
* Get advanced flow editor state
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AgentChatOverviewEntryUio, AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, AttachmentProcessedRequestUio, BodyWithMessageUio, ContextLocationRequestUio, ContextUio, ConversationSummaryUio, CreateCustomVariable200ResponseUio, HumanRequestAnswerResultUio, HumanRequestAnswerUio, HumanRequestSummaryUio, MarkConversationReadRequestUio, MessageAnonymizationUio, SetUserAgentConversationRequestUio, ToolCallResultRequestUio, ToolCallResultResponseUio, ToolCallsResponseUio, UpdateConversationTitleRequestUio, UpdateUserChatPreferencesRequestUio, UserChatPreferencesUio, WorkspaceFileContentUio, WorkspaceFileEntryUio, WorkspaceFileWriteRequestUio } from '../models/index';
|
|
13
|
+
import type { AgentChatOverviewEntryUio, AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, AttachmentProcessedRequestUio, BodyWithMessageUio, ChatSessionSummaryUio, ContextLocationRequestUio, ContextUio, ConversationSummaryUio, CreateCustomVariable200ResponseUio, HumanRequestAnswerResultUio, HumanRequestAnswerUio, HumanRequestSummaryUio, MarkConversationReadRequestUio, MessageAnonymizationUio, SetUserAgentConversationRequestUio, ToolCallResultRequestUio, ToolCallResultResponseUio, ToolCallsResponseUio, UpdateConversationTitleRequestUio, UpdateUserChatPreferencesRequestUio, UserChatPreferencesUio, WorkspaceFileContentUio, WorkspaceFileEntryUio, WorkspaceFileWriteRequestUio } from '../models/index';
|
|
14
14
|
export interface AnswerHumanRequestRequest {
|
|
15
15
|
callId: string;
|
|
16
16
|
humanRequestAnswerUio: HumanRequestAnswerUio;
|
|
@@ -49,6 +49,7 @@ export interface EditConversationWorkspaceFileContentRequest {
|
|
|
49
49
|
}
|
|
50
50
|
export interface GetAgentChatOverviewRequest {
|
|
51
51
|
organizationId: string;
|
|
52
|
+
recent?: number;
|
|
52
53
|
}
|
|
53
54
|
export interface GetAnonymizedMessagesRequest {
|
|
54
55
|
conversationId: string;
|
|
@@ -89,6 +90,13 @@ export interface ListMessageToolCallsRequest {
|
|
|
89
90
|
export interface ListPendingHumanRequestsRequest {
|
|
90
91
|
organizationId: string;
|
|
91
92
|
}
|
|
93
|
+
export interface ListUserAgentConversationsRequest {
|
|
94
|
+
organizationId: string;
|
|
95
|
+
agentId: string;
|
|
96
|
+
page?: number;
|
|
97
|
+
limit?: number;
|
|
98
|
+
unreadOnly?: boolean;
|
|
99
|
+
}
|
|
92
100
|
export interface MarkAttachmentProcessedRequest {
|
|
93
101
|
conversationId: string;
|
|
94
102
|
attachmentId: string;
|
|
@@ -226,15 +234,15 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
226
234
|
*/
|
|
227
235
|
editConversationWorkspaceFileContent(conversationId: string, workspaceFileWriteRequestUio: WorkspaceFileWriteRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkspaceFileContentUio>;
|
|
228
236
|
/**
|
|
229
|
-
* Pour chaque agent de l\'organisation avec lequel l\'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l\'indication d\'une réponse en cours de génération.
|
|
237
|
+
* Pour chaque agent de l\'organisation avec lequel l\'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l\'indication d\'une réponse en cours de génération, ainsi que les totaux sur l\'ensemble de ses sessions et ses sessions les plus récentes.
|
|
230
238
|
* Get the multi-agent chat overview
|
|
231
239
|
*/
|
|
232
240
|
getAgentChatOverviewRaw(requestParameters: GetAgentChatOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentChatOverviewEntryUio>>>;
|
|
233
241
|
/**
|
|
234
|
-
* Pour chaque agent de l\'organisation avec lequel l\'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l\'indication d\'une réponse en cours de génération.
|
|
242
|
+
* Pour chaque agent de l\'organisation avec lequel l\'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l\'indication d\'une réponse en cours de génération, ainsi que les totaux sur l\'ensemble de ses sessions et ses sessions les plus récentes.
|
|
235
243
|
* Get the multi-agent chat overview
|
|
236
244
|
*/
|
|
237
|
-
getAgentChatOverview(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentChatOverviewEntryUio>>;
|
|
245
|
+
getAgentChatOverview(organizationId: string, recent?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentChatOverviewEntryUio>>;
|
|
238
246
|
/**
|
|
239
247
|
* Retrieve the list of anonymized messages for a given conversation.
|
|
240
248
|
* Get the anonymized messages of a conversation
|
|
@@ -339,6 +347,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
339
347
|
* List the questions waiting for the current user
|
|
340
348
|
*/
|
|
341
349
|
listPendingHumanRequests(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<HumanRequestSummaryUio>>;
|
|
350
|
+
/**
|
|
351
|
+
* Sessions de chat de l\'utilisateur courant avec cet agent, de la plus récemment active à la plus ancienne. Chaque session porte son nombre de non-lus, un aperçu du dernier message et l\'indication qu\'elle est la conversation principale (celle mémorisée par setUserAgentConversation).
|
|
352
|
+
* List the current user\'s sessions with an agent
|
|
353
|
+
*/
|
|
354
|
+
listUserAgentConversationsRaw(requestParameters: ListUserAgentConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ChatSessionSummaryUio>>>;
|
|
355
|
+
/**
|
|
356
|
+
* Sessions de chat de l\'utilisateur courant avec cet agent, de la plus récemment active à la plus ancienne. Chaque session porte son nombre de non-lus, un aperçu du dernier message et l\'indication qu\'elle est la conversation principale (celle mémorisée par setUserAgentConversation).
|
|
357
|
+
* List the current user\'s sessions with an agent
|
|
358
|
+
*/
|
|
359
|
+
listUserAgentConversations(organizationId: string, agentId: string, page?: number, limit?: number, unreadOnly?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatSessionSummaryUio>>;
|
|
342
360
|
/**
|
|
343
361
|
* Internal callback endpoint called when attachment processing is complete. Réservé au service de documents : tout autre appelant reçoit un 403. L\'attachment doit être en état `PROCESSING`.
|
|
344
362
|
* Mark a conversation attachment as processed
|
|
@@ -342,7 +342,7 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
342
342
|
return await response.value();
|
|
343
343
|
}
|
|
344
344
|
/**
|
|
345
|
-
* Pour chaque agent de l\'organisation avec lequel l\'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l\'indication d\'une réponse en cours de génération.
|
|
345
|
+
* Pour chaque agent de l\'organisation avec lequel l\'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l\'indication d\'une réponse en cours de génération, ainsi que les totaux sur l\'ensemble de ses sessions et ses sessions les plus récentes.
|
|
346
346
|
* Get the multi-agent chat overview
|
|
347
347
|
*/
|
|
348
348
|
async getAgentChatOverviewRaw(requestParameters, initOverrides) {
|
|
@@ -350,6 +350,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
350
350
|
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getAgentChatOverview().');
|
|
351
351
|
}
|
|
352
352
|
const queryParameters = {};
|
|
353
|
+
if (requestParameters['recent'] != null) {
|
|
354
|
+
queryParameters['recent'] = requestParameters['recent'];
|
|
355
|
+
}
|
|
353
356
|
const headerParameters = {};
|
|
354
357
|
if (this.configuration && this.configuration.apiKey) {
|
|
355
358
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -363,11 +366,11 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
363
366
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AgentChatOverviewEntryUioFromJSON));
|
|
364
367
|
}
|
|
365
368
|
/**
|
|
366
|
-
* Pour chaque agent de l\'organisation avec lequel l\'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l\'indication d\'une réponse en cours de génération.
|
|
369
|
+
* Pour chaque agent de l\'organisation avec lequel l\'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l\'indication d\'une réponse en cours de génération, ainsi que les totaux sur l\'ensemble de ses sessions et ses sessions les plus récentes.
|
|
367
370
|
* Get the multi-agent chat overview
|
|
368
371
|
*/
|
|
369
|
-
async getAgentChatOverview(organizationId, initOverrides) {
|
|
370
|
-
const response = await this.getAgentChatOverviewRaw({ organizationId: organizationId }, initOverrides);
|
|
372
|
+
async getAgentChatOverview(organizationId, recent, initOverrides) {
|
|
373
|
+
const response = await this.getAgentChatOverviewRaw({ organizationId: organizationId, recent: recent }, initOverrides);
|
|
371
374
|
return await response.value();
|
|
372
375
|
}
|
|
373
376
|
/**
|
|
@@ -693,6 +696,47 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
693
696
|
const response = await this.listPendingHumanRequestsRaw({ organizationId: organizationId }, initOverrides);
|
|
694
697
|
return await response.value();
|
|
695
698
|
}
|
|
699
|
+
/**
|
|
700
|
+
* Sessions de chat de l\'utilisateur courant avec cet agent, de la plus récemment active à la plus ancienne. Chaque session porte son nombre de non-lus, un aperçu du dernier message et l\'indication qu\'elle est la conversation principale (celle mémorisée par setUserAgentConversation).
|
|
701
|
+
* List the current user\'s sessions with an agent
|
|
702
|
+
*/
|
|
703
|
+
async listUserAgentConversationsRaw(requestParameters, initOverrides) {
|
|
704
|
+
if (requestParameters['organizationId'] == null) {
|
|
705
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listUserAgentConversations().');
|
|
706
|
+
}
|
|
707
|
+
if (requestParameters['agentId'] == null) {
|
|
708
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling listUserAgentConversations().');
|
|
709
|
+
}
|
|
710
|
+
const queryParameters = {};
|
|
711
|
+
if (requestParameters['page'] != null) {
|
|
712
|
+
queryParameters['page'] = requestParameters['page'];
|
|
713
|
+
}
|
|
714
|
+
if (requestParameters['limit'] != null) {
|
|
715
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
716
|
+
}
|
|
717
|
+
if (requestParameters['unreadOnly'] != null) {
|
|
718
|
+
queryParameters['unreadOnly'] = requestParameters['unreadOnly'];
|
|
719
|
+
}
|
|
720
|
+
const headerParameters = {};
|
|
721
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
722
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
723
|
+
}
|
|
724
|
+
const response = await this.request({
|
|
725
|
+
path: `/organizations/{organizationId}/chat/agents/{agentId}/conversations`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
726
|
+
method: 'GET',
|
|
727
|
+
headers: headerParameters,
|
|
728
|
+
query: queryParameters,
|
|
729
|
+
}, initOverrides);
|
|
730
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ChatSessionSummaryUioFromJSON));
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Sessions de chat de l\'utilisateur courant avec cet agent, de la plus récemment active à la plus ancienne. Chaque session porte son nombre de non-lus, un aperçu du dernier message et l\'indication qu\'elle est la conversation principale (celle mémorisée par setUserAgentConversation).
|
|
734
|
+
* List the current user\'s sessions with an agent
|
|
735
|
+
*/
|
|
736
|
+
async listUserAgentConversations(organizationId, agentId, page, limit, unreadOnly, initOverrides) {
|
|
737
|
+
const response = await this.listUserAgentConversationsRaw({ organizationId: organizationId, agentId: agentId, page: page, limit: limit, unreadOnly: unreadOnly }, initOverrides);
|
|
738
|
+
return await response.value();
|
|
739
|
+
}
|
|
696
740
|
/**
|
|
697
741
|
* Internal callback endpoint called when attachment processing is complete. Réservé au service de documents : tout autre appelant reçoit un 403. L\'attachment doit être en état `PROCESSING`.
|
|
698
742
|
* Mark a conversation attachment as processed
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ChatSessionSummaryUio } from './ChatSessionSummaryUio';
|
|
12
13
|
/**
|
|
13
14
|
* État de la conversation d'un agent pour l'utilisateur courant. Le nombre de non-lus est dérivé des messages postérieurs à sa marque de lecture.
|
|
14
15
|
* @export
|
|
@@ -34,7 +35,7 @@ export interface AgentChatOverviewEntryUio {
|
|
|
34
35
|
*/
|
|
35
36
|
lastMessageAt?: string | null;
|
|
36
37
|
/**
|
|
37
|
-
*
|
|
38
|
+
* Non-lus de cette conversation : messages de l'agent postérieurs à la marque de lecture, et interactions qui attendent l'utilisateur (question Human_ask, validation d'outil) tant qu'elles ne sont pas traitées.
|
|
38
39
|
* @type {number}
|
|
39
40
|
* @memberof AgentChatOverviewEntryUio
|
|
40
41
|
*/
|
|
@@ -51,6 +52,24 @@ export interface AgentChatOverviewEntryUio {
|
|
|
51
52
|
* @memberof AgentChatOverviewEntryUio
|
|
52
53
|
*/
|
|
53
54
|
pendingHumanRequests?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Somme des non-lus sur toutes les sessions de l'utilisateur avec cet agent
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof AgentChatOverviewEntryUio
|
|
59
|
+
*/
|
|
60
|
+
totalUnreadCount?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Nombre de sessions de l'utilisateur avec cet agent
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof AgentChatOverviewEntryUio
|
|
65
|
+
*/
|
|
66
|
+
sessionCount?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Sessions les plus récemment actives, conversation principale comprise
|
|
69
|
+
* @type {Array<ChatSessionSummaryUio>}
|
|
70
|
+
* @memberof AgentChatOverviewEntryUio
|
|
71
|
+
*/
|
|
72
|
+
recentSessions?: Array<ChatSessionSummaryUio>;
|
|
54
73
|
}
|
|
55
74
|
/**
|
|
56
75
|
* Check if a given object implements the AgentChatOverviewEntryUio interface.
|
|
@@ -18,6 +18,7 @@ exports.AgentChatOverviewEntryUioFromJSON = AgentChatOverviewEntryUioFromJSON;
|
|
|
18
18
|
exports.AgentChatOverviewEntryUioFromJSONTyped = AgentChatOverviewEntryUioFromJSONTyped;
|
|
19
19
|
exports.AgentChatOverviewEntryUioToJSON = AgentChatOverviewEntryUioToJSON;
|
|
20
20
|
exports.AgentChatOverviewEntryUioToJSONTyped = AgentChatOverviewEntryUioToJSONTyped;
|
|
21
|
+
const ChatSessionSummaryUio_1 = require("./ChatSessionSummaryUio");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the AgentChatOverviewEntryUio interface.
|
|
23
24
|
*/
|
|
@@ -46,6 +47,9 @@ function AgentChatOverviewEntryUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
47
|
'unreadCount': json['unreadCount'],
|
|
47
48
|
'isGenerating': json['isGenerating'],
|
|
48
49
|
'pendingHumanRequests': json['pendingHumanRequests'] == null ? undefined : json['pendingHumanRequests'],
|
|
50
|
+
'totalUnreadCount': json['totalUnreadCount'] == null ? undefined : json['totalUnreadCount'],
|
|
51
|
+
'sessionCount': json['sessionCount'] == null ? undefined : json['sessionCount'],
|
|
52
|
+
'recentSessions': json['recentSessions'] == null ? undefined : (json['recentSessions'].map(ChatSessionSummaryUio_1.ChatSessionSummaryUioFromJSON)),
|
|
49
53
|
};
|
|
50
54
|
}
|
|
51
55
|
function AgentChatOverviewEntryUioToJSON(json) {
|
|
@@ -62,5 +66,8 @@ function AgentChatOverviewEntryUioToJSONTyped(value, ignoreDiscriminator = false
|
|
|
62
66
|
'unreadCount': value['unreadCount'],
|
|
63
67
|
'isGenerating': value['isGenerating'],
|
|
64
68
|
'pendingHumanRequests': value['pendingHumanRequests'],
|
|
69
|
+
'totalUnreadCount': value['totalUnreadCount'],
|
|
70
|
+
'sessionCount': value['sessionCount'],
|
|
71
|
+
'recentSessions': value['recentSessions'] == null ? undefined : (value['recentSessions'].map(ChatSessionSummaryUio_1.ChatSessionSummaryUioToJSON)),
|
|
65
72
|
};
|
|
66
73
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* What the user wrote themselves when no preset fitted, per question. A note REPLACES the presets of its own question rather than adding to them.
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentPromptInitGenerationRequestNotesUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentPromptInitGenerationRequestNotesUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AgentPromptInitGenerationRequestNotesUio
|
|
23
|
+
*/
|
|
24
|
+
audience?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AgentPromptInitGenerationRequestNotesUio
|
|
29
|
+
*/
|
|
30
|
+
answerStyle?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AgentPromptInitGenerationRequestNotesUio
|
|
35
|
+
*/
|
|
36
|
+
sourcePolicy?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AgentPromptInitGenerationRequestNotesUio interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfAgentPromptInitGenerationRequestNotesUio(value: object): value is AgentPromptInitGenerationRequestNotesUio;
|
|
42
|
+
export declare function AgentPromptInitGenerationRequestNotesUioFromJSON(json: any): AgentPromptInitGenerationRequestNotesUio;
|
|
43
|
+
export declare function AgentPromptInitGenerationRequestNotesUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentPromptInitGenerationRequestNotesUio;
|
|
44
|
+
export declare function AgentPromptInitGenerationRequestNotesUioToJSON(json: any): AgentPromptInitGenerationRequestNotesUio;
|
|
45
|
+
export declare function AgentPromptInitGenerationRequestNotesUioToJSONTyped(value?: AgentPromptInitGenerationRequestNotesUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfAgentPromptInitGenerationRequestNotesUio = instanceOfAgentPromptInitGenerationRequestNotesUio;
|
|
17
|
+
exports.AgentPromptInitGenerationRequestNotesUioFromJSON = AgentPromptInitGenerationRequestNotesUioFromJSON;
|
|
18
|
+
exports.AgentPromptInitGenerationRequestNotesUioFromJSONTyped = AgentPromptInitGenerationRequestNotesUioFromJSONTyped;
|
|
19
|
+
exports.AgentPromptInitGenerationRequestNotesUioToJSON = AgentPromptInitGenerationRequestNotesUioToJSON;
|
|
20
|
+
exports.AgentPromptInitGenerationRequestNotesUioToJSONTyped = AgentPromptInitGenerationRequestNotesUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentPromptInitGenerationRequestNotesUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentPromptInitGenerationRequestNotesUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AgentPromptInitGenerationRequestNotesUioFromJSON(json) {
|
|
28
|
+
return AgentPromptInitGenerationRequestNotesUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AgentPromptInitGenerationRequestNotesUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'audience': json['audience'] == null ? undefined : json['audience'],
|
|
36
|
+
'answerStyle': json['answerStyle'] == null ? undefined : json['answerStyle'],
|
|
37
|
+
'sourcePolicy': json['sourcePolicy'] == null ? undefined : json['sourcePolicy'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AgentPromptInitGenerationRequestNotesUioToJSON(json) {
|
|
41
|
+
return AgentPromptInitGenerationRequestNotesUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AgentPromptInitGenerationRequestNotesUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'audience': value['audience'],
|
|
49
|
+
'answerStyle': value['answerStyle'],
|
|
50
|
+
'sourcePolicy': value['sourcePolicy'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { AgentPromptInitGenerationRequestNotesUio } from './AgentPromptInitGenerationRequestNotesUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentPromptInitGenerationRequestUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentPromptInitGenerationRequestUio {
|
|
19
|
+
/**
|
|
20
|
+
* What the agent is for, in the user's own words.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AgentPromptInitGenerationRequestUio
|
|
23
|
+
*/
|
|
24
|
+
mission: string;
|
|
25
|
+
/**
|
|
26
|
+
* Who the agent talks to. Several may apply at once; duplicates are rejected. Omit it when `notes.audience` is given — a free-text note replaces the presets. Defaults to `employees` when neither is given. Not declared as `uniqueItems` because the TypeScript generator would turn the field into a `Set`, which does not survive a server-action boundary — the server-side schema enforces uniqueness.
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<string>}
|
|
29
|
+
* @memberof AgentPromptInitGenerationRequestUio
|
|
30
|
+
*/
|
|
31
|
+
audiences?: Array<AgentPromptInitGenerationRequestUioAudiencesEnum>;
|
|
32
|
+
/**
|
|
33
|
+
* Omit it when `notes.answerStyle` is given. Defaults to `concise`.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AgentPromptInitGenerationRequestUio
|
|
36
|
+
*/
|
|
37
|
+
answerStyle?: AgentPromptInitGenerationRequestUioAnswerStyleEnum;
|
|
38
|
+
/**
|
|
39
|
+
* Omit it when `notes.sourcePolicy` is given. Defaults to `provided_only`.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AgentPromptInitGenerationRequestUio
|
|
42
|
+
*/
|
|
43
|
+
sourcePolicy?: AgentPromptInitGenerationRequestUioSourcePolicyEnum;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {AgentPromptInitGenerationRequestNotesUio}
|
|
47
|
+
* @memberof AgentPromptInitGenerationRequestUio
|
|
48
|
+
*/
|
|
49
|
+
notes?: AgentPromptInitGenerationRequestNotesUio;
|
|
50
|
+
/**
|
|
51
|
+
* What the agent must never do.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AgentPromptInitGenerationRequestUio
|
|
54
|
+
*/
|
|
55
|
+
constraints?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Language the instructions are written in. Defaults to the agent's.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof AgentPromptInitGenerationRequestUio
|
|
60
|
+
*/
|
|
61
|
+
lang?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Engine to write with, instead of the agent's. Must belong to the agent's organisation. Only honoured together with `model`.
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof AgentPromptInitGenerationRequestUio
|
|
67
|
+
*/
|
|
68
|
+
providerId?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Model id within `providerId`.
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof AgentPromptInitGenerationRequestUio
|
|
73
|
+
*/
|
|
74
|
+
model?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const AgentPromptInitGenerationRequestUioAudiencesEnum: {
|
|
80
|
+
readonly GeneralPublic: "general_public";
|
|
81
|
+
readonly Customers: "customers";
|
|
82
|
+
readonly Employees: "employees";
|
|
83
|
+
readonly Experts: "experts";
|
|
84
|
+
};
|
|
85
|
+
export type AgentPromptInitGenerationRequestUioAudiencesEnum = typeof AgentPromptInitGenerationRequestUioAudiencesEnum[keyof typeof AgentPromptInitGenerationRequestUioAudiencesEnum];
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export declare const AgentPromptInitGenerationRequestUioAnswerStyleEnum: {
|
|
90
|
+
readonly Concise: "concise";
|
|
91
|
+
readonly Detailed: "detailed";
|
|
92
|
+
readonly StepByStep: "step_by_step";
|
|
93
|
+
};
|
|
94
|
+
export type AgentPromptInitGenerationRequestUioAnswerStyleEnum = typeof AgentPromptInitGenerationRequestUioAnswerStyleEnum[keyof typeof AgentPromptInitGenerationRequestUioAnswerStyleEnum];
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export declare const AgentPromptInitGenerationRequestUioSourcePolicyEnum: {
|
|
99
|
+
readonly ProvidedOnly: "provided_only";
|
|
100
|
+
readonly ProvidedAndGeneral: "provided_and_general";
|
|
101
|
+
};
|
|
102
|
+
export type AgentPromptInitGenerationRequestUioSourcePolicyEnum = typeof AgentPromptInitGenerationRequestUioSourcePolicyEnum[keyof typeof AgentPromptInitGenerationRequestUioSourcePolicyEnum];
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the AgentPromptInitGenerationRequestUio interface.
|
|
105
|
+
*/
|
|
106
|
+
export declare function instanceOfAgentPromptInitGenerationRequestUio(value: object): value is AgentPromptInitGenerationRequestUio;
|
|
107
|
+
export declare function AgentPromptInitGenerationRequestUioFromJSON(json: any): AgentPromptInitGenerationRequestUio;
|
|
108
|
+
export declare function AgentPromptInitGenerationRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentPromptInitGenerationRequestUio;
|
|
109
|
+
export declare function AgentPromptInitGenerationRequestUioToJSON(json: any): AgentPromptInitGenerationRequestUio;
|
|
110
|
+
export declare function AgentPromptInitGenerationRequestUioToJSONTyped(value?: AgentPromptInitGenerationRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,92 @@
|
|
|
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.AgentPromptInitGenerationRequestUioSourcePolicyEnum = exports.AgentPromptInitGenerationRequestUioAnswerStyleEnum = exports.AgentPromptInitGenerationRequestUioAudiencesEnum = void 0;
|
|
17
|
+
exports.instanceOfAgentPromptInitGenerationRequestUio = instanceOfAgentPromptInitGenerationRequestUio;
|
|
18
|
+
exports.AgentPromptInitGenerationRequestUioFromJSON = AgentPromptInitGenerationRequestUioFromJSON;
|
|
19
|
+
exports.AgentPromptInitGenerationRequestUioFromJSONTyped = AgentPromptInitGenerationRequestUioFromJSONTyped;
|
|
20
|
+
exports.AgentPromptInitGenerationRequestUioToJSON = AgentPromptInitGenerationRequestUioToJSON;
|
|
21
|
+
exports.AgentPromptInitGenerationRequestUioToJSONTyped = AgentPromptInitGenerationRequestUioToJSONTyped;
|
|
22
|
+
const AgentPromptInitGenerationRequestNotesUio_1 = require("./AgentPromptInitGenerationRequestNotesUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AgentPromptInitGenerationRequestUioAudiencesEnum = {
|
|
27
|
+
GeneralPublic: 'general_public',
|
|
28
|
+
Customers: 'customers',
|
|
29
|
+
Employees: 'employees',
|
|
30
|
+
Experts: 'experts'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.AgentPromptInitGenerationRequestUioAnswerStyleEnum = {
|
|
36
|
+
Concise: 'concise',
|
|
37
|
+
Detailed: 'detailed',
|
|
38
|
+
StepByStep: 'step_by_step'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
exports.AgentPromptInitGenerationRequestUioSourcePolicyEnum = {
|
|
44
|
+
ProvidedOnly: 'provided_only',
|
|
45
|
+
ProvidedAndGeneral: 'provided_and_general'
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the AgentPromptInitGenerationRequestUio interface.
|
|
49
|
+
*/
|
|
50
|
+
function instanceOfAgentPromptInitGenerationRequestUio(value) {
|
|
51
|
+
if (!('mission' in value) || value['mission'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function AgentPromptInitGenerationRequestUioFromJSON(json) {
|
|
56
|
+
return AgentPromptInitGenerationRequestUioFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function AgentPromptInitGenerationRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'mission': json['mission'],
|
|
64
|
+
'audiences': json['audiences'] == null ? undefined : json['audiences'],
|
|
65
|
+
'answerStyle': json['answerStyle'] == null ? undefined : json['answerStyle'],
|
|
66
|
+
'sourcePolicy': json['sourcePolicy'] == null ? undefined : json['sourcePolicy'],
|
|
67
|
+
'notes': json['notes'] == null ? undefined : (0, AgentPromptInitGenerationRequestNotesUio_1.AgentPromptInitGenerationRequestNotesUioFromJSON)(json['notes']),
|
|
68
|
+
'constraints': json['constraints'] == null ? undefined : json['constraints'],
|
|
69
|
+
'lang': json['lang'] == null ? undefined : json['lang'],
|
|
70
|
+
'providerId': json['providerId'] == null ? undefined : json['providerId'],
|
|
71
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function AgentPromptInitGenerationRequestUioToJSON(json) {
|
|
75
|
+
return AgentPromptInitGenerationRequestUioToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
function AgentPromptInitGenerationRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
'mission': value['mission'],
|
|
83
|
+
'audiences': value['audiences'],
|
|
84
|
+
'answerStyle': value['answerStyle'],
|
|
85
|
+
'sourcePolicy': value['sourcePolicy'],
|
|
86
|
+
'notes': (0, AgentPromptInitGenerationRequestNotesUio_1.AgentPromptInitGenerationRequestNotesUioToJSON)(value['notes']),
|
|
87
|
+
'constraints': value['constraints'],
|
|
88
|
+
'lang': value['lang'],
|
|
89
|
+
'providerId': value['providerId'],
|
|
90
|
+
'model': value['model'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentPromptInitGenerationResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentPromptInitGenerationResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentPromptInitGenerationResponseUio
|
|
22
|
+
*/
|
|
23
|
+
promptInit: string;
|
|
24
|
+
/**
|
|
25
|
+
* Adjustments applied to the model's output, for information only.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AgentPromptInitGenerationResponseUio
|
|
28
|
+
*/
|
|
29
|
+
warnings?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AgentPromptInitGenerationResponseUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAgentPromptInitGenerationResponseUio(value: object): value is AgentPromptInitGenerationResponseUio;
|
|
35
|
+
export declare function AgentPromptInitGenerationResponseUioFromJSON(json: any): AgentPromptInitGenerationResponseUio;
|
|
36
|
+
export declare function AgentPromptInitGenerationResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentPromptInitGenerationResponseUio;
|
|
37
|
+
export declare function AgentPromptInitGenerationResponseUioToJSON(json: any): AgentPromptInitGenerationResponseUio;
|
|
38
|
+
export declare function AgentPromptInitGenerationResponseUioToJSONTyped(value?: AgentPromptInitGenerationResponseUio | null, ignoreDiscriminator?: boolean): any;
|