@breign/client 1.0.133 → 1.0.135
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/ConversationsApi.d.ts +74 -1
- package/dist/apis/ConversationsApi.js +174 -0
- package/dist/models/AgentPatchUio.d.ts +7 -0
- package/dist/models/AgentPatchUio.js +3 -0
- package/dist/models/AgentPendingToolsConfigurationUio.d.ts +38 -0
- package/dist/models/AgentPendingToolsConfigurationUio.js +50 -0
- package/dist/models/AgentUio.d.ts +11 -4
- package/dist/models/AgentUio.js +7 -4
- package/dist/models/SetUserAgentConversationRequestUio.d.ts +32 -0
- package/dist/models/SetUserAgentConversationRequestUio.js +50 -0
- package/dist/models/ToolCallAttachmentUio.d.ts +87 -0
- package/dist/models/ToolCallAttachmentUio.js +71 -0
- package/dist/models/ToolCallResultRequestUio.d.ts +60 -0
- package/dist/models/ToolCallResultRequestUio.js +66 -0
- package/dist/models/ToolCallResultResponseUio.d.ts +65 -0
- package/dist/models/ToolCallResultResponseUio.js +75 -0
- package/dist/models/ToolCallUio.d.ts +93 -0
- package/dist/models/ToolCallUio.js +83 -0
- package/dist/models/ToolCallsResponseUio.d.ts +33 -0
- package/dist/models/ToolCallsResponseUio.js +51 -0
- package/dist/models/UpdateUserChatPreferencesRequestUio.d.ts +38 -0
- package/dist/models/UpdateUserChatPreferencesRequestUio.js +50 -0
- package/dist/models/UserAgentConversationUio.d.ts +38 -0
- package/dist/models/UserAgentConversationUio.js +54 -0
- package/dist/models/UserChatPreferencesUio.d.ts +45 -0
- package/dist/models/UserChatPreferencesUio.js +59 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/openapi.json +510 -0
- package/package.json +1 -1
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
* A file produced by a tool. Either url or inlineDataUrl is required; every other field is derived server-side when omitted.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ToolCallAttachmentUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolCallAttachmentUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ToolCallAttachmentUio
|
|
22
|
+
*/
|
|
23
|
+
type?: ToolCallAttachmentUioTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ToolCallAttachmentUio
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ToolCallAttachmentUio
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Defaults to image/png.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ToolCallAttachmentUio
|
|
40
|
+
*/
|
|
41
|
+
mimeType?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Defaults to the mimeType subtype.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ToolCallAttachmentUio
|
|
46
|
+
*/
|
|
47
|
+
ext?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Defaults to the decoded payload length.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ToolCallAttachmentUio
|
|
52
|
+
*/
|
|
53
|
+
size?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Storage key. Defaults to conversations/{conversationId}/attachments/{id}.{ext}.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ToolCallAttachmentUio
|
|
58
|
+
*/
|
|
59
|
+
key?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Downloadable URL, fetched server-side. Used when inlineDataUrl is absent.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ToolCallAttachmentUio
|
|
64
|
+
*/
|
|
65
|
+
url?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Base64 data URL: data:<mimeType>;base64,<data>
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ToolCallAttachmentUio
|
|
70
|
+
*/
|
|
71
|
+
inlineDataUrl?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const ToolCallAttachmentUioTypeEnum: {
|
|
77
|
+
readonly Image: "image";
|
|
78
|
+
};
|
|
79
|
+
export type ToolCallAttachmentUioTypeEnum = typeof ToolCallAttachmentUioTypeEnum[keyof typeof ToolCallAttachmentUioTypeEnum];
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the ToolCallAttachmentUio interface.
|
|
82
|
+
*/
|
|
83
|
+
export declare function instanceOfToolCallAttachmentUio(value: object): value is ToolCallAttachmentUio;
|
|
84
|
+
export declare function ToolCallAttachmentUioFromJSON(json: any): ToolCallAttachmentUio;
|
|
85
|
+
export declare function ToolCallAttachmentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolCallAttachmentUio;
|
|
86
|
+
export declare function ToolCallAttachmentUioToJSON(json: any): ToolCallAttachmentUio;
|
|
87
|
+
export declare function ToolCallAttachmentUioToJSONTyped(value?: ToolCallAttachmentUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.ToolCallAttachmentUioTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfToolCallAttachmentUio = instanceOfToolCallAttachmentUio;
|
|
18
|
+
exports.ToolCallAttachmentUioFromJSON = ToolCallAttachmentUioFromJSON;
|
|
19
|
+
exports.ToolCallAttachmentUioFromJSONTyped = ToolCallAttachmentUioFromJSONTyped;
|
|
20
|
+
exports.ToolCallAttachmentUioToJSON = ToolCallAttachmentUioToJSON;
|
|
21
|
+
exports.ToolCallAttachmentUioToJSONTyped = ToolCallAttachmentUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ToolCallAttachmentUioTypeEnum = {
|
|
26
|
+
Image: 'image'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the ToolCallAttachmentUio interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfToolCallAttachmentUio(value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function ToolCallAttachmentUioFromJSON(json) {
|
|
35
|
+
return ToolCallAttachmentUioFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ToolCallAttachmentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
43
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
44
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
45
|
+
'mimeType': json['mimeType'] == null ? undefined : json['mimeType'],
|
|
46
|
+
'ext': json['ext'] == null ? undefined : json['ext'],
|
|
47
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
48
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
49
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
50
|
+
'inlineDataUrl': json['inlineDataUrl'] == null ? undefined : json['inlineDataUrl'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function ToolCallAttachmentUioToJSON(json) {
|
|
54
|
+
return ToolCallAttachmentUioToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function ToolCallAttachmentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'type': value['type'],
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
'mimeType': value['mimeType'],
|
|
65
|
+
'ext': value['ext'],
|
|
66
|
+
'size': value['size'],
|
|
67
|
+
'key': value['key'],
|
|
68
|
+
'url': value['url'],
|
|
69
|
+
'inlineDataUrl': value['inlineDataUrl'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { ToolCallAttachmentUio } from './ToolCallAttachmentUio';
|
|
13
|
+
/**
|
|
14
|
+
* Result of a tool call, whatever the tool. output is handed to the model as the tool result; attachments are stored and added to the conversation context so the model can see them.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ToolCallResultRequestUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ToolCallResultRequestUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ToolCallResultRequestUio
|
|
23
|
+
*/
|
|
24
|
+
status: ToolCallResultRequestUioStatusEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Text handed to the model. A default sentence is used when omitted.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ToolCallResultRequestUio
|
|
29
|
+
*/
|
|
30
|
+
output?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Only read when status is completed.
|
|
33
|
+
* @type {Array<ToolCallAttachmentUio>}
|
|
34
|
+
* @memberof ToolCallResultRequestUio
|
|
35
|
+
*/
|
|
36
|
+
attachments?: Array<ToolCallAttachmentUio>;
|
|
37
|
+
/**
|
|
38
|
+
* Failure detail, surfaced to the model when status is failed.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ToolCallResultRequestUio
|
|
41
|
+
*/
|
|
42
|
+
error?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const ToolCallResultRequestUioStatusEnum: {
|
|
48
|
+
readonly Completed: "completed";
|
|
49
|
+
readonly Failed: "failed";
|
|
50
|
+
readonly Refused: "refused";
|
|
51
|
+
};
|
|
52
|
+
export type ToolCallResultRequestUioStatusEnum = typeof ToolCallResultRequestUioStatusEnum[keyof typeof ToolCallResultRequestUioStatusEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ToolCallResultRequestUio interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfToolCallResultRequestUio(value: object): value is ToolCallResultRequestUio;
|
|
57
|
+
export declare function ToolCallResultRequestUioFromJSON(json: any): ToolCallResultRequestUio;
|
|
58
|
+
export declare function ToolCallResultRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolCallResultRequestUio;
|
|
59
|
+
export declare function ToolCallResultRequestUioToJSON(json: any): ToolCallResultRequestUio;
|
|
60
|
+
export declare function ToolCallResultRequestUioToJSONTyped(value?: ToolCallResultRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.ToolCallResultRequestUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfToolCallResultRequestUio = instanceOfToolCallResultRequestUio;
|
|
18
|
+
exports.ToolCallResultRequestUioFromJSON = ToolCallResultRequestUioFromJSON;
|
|
19
|
+
exports.ToolCallResultRequestUioFromJSONTyped = ToolCallResultRequestUioFromJSONTyped;
|
|
20
|
+
exports.ToolCallResultRequestUioToJSON = ToolCallResultRequestUioToJSON;
|
|
21
|
+
exports.ToolCallResultRequestUioToJSONTyped = ToolCallResultRequestUioToJSONTyped;
|
|
22
|
+
const ToolCallAttachmentUio_1 = require("./ToolCallAttachmentUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ToolCallResultRequestUioStatusEnum = {
|
|
27
|
+
Completed: 'completed',
|
|
28
|
+
Failed: 'failed',
|
|
29
|
+
Refused: 'refused'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ToolCallResultRequestUio interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfToolCallResultRequestUio(value) {
|
|
35
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ToolCallResultRequestUioFromJSON(json) {
|
|
40
|
+
return ToolCallResultRequestUioFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ToolCallResultRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'status': json['status'],
|
|
48
|
+
'output': json['output'] == null ? undefined : json['output'],
|
|
49
|
+
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(ToolCallAttachmentUio_1.ToolCallAttachmentUioFromJSON)),
|
|
50
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function ToolCallResultRequestUioToJSON(json) {
|
|
54
|
+
return ToolCallResultRequestUioToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function ToolCallResultRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'status': value['status'],
|
|
62
|
+
'output': value['output'],
|
|
63
|
+
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(ToolCallAttachmentUio_1.ToolCallAttachmentUioToJSON)),
|
|
64
|
+
'error': value['error'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 ToolCallResultResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolCallResultResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ToolCallResultResponseUio
|
|
22
|
+
*/
|
|
23
|
+
callId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ToolCallResultResponseUio
|
|
28
|
+
*/
|
|
29
|
+
tool: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ToolCallResultResponseUio
|
|
34
|
+
*/
|
|
35
|
+
status: ToolCallResultResponseUioStatusEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ToolCallResultResponseUio
|
|
40
|
+
*/
|
|
41
|
+
conversationId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ToolCallResultResponseUio
|
|
46
|
+
*/
|
|
47
|
+
messageId: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const ToolCallResultResponseUioStatusEnum: {
|
|
53
|
+
readonly Completed: "completed";
|
|
54
|
+
readonly Failed: "failed";
|
|
55
|
+
readonly Refused: "refused";
|
|
56
|
+
};
|
|
57
|
+
export type ToolCallResultResponseUioStatusEnum = typeof ToolCallResultResponseUioStatusEnum[keyof typeof ToolCallResultResponseUioStatusEnum];
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the ToolCallResultResponseUio interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfToolCallResultResponseUio(value: object): value is ToolCallResultResponseUio;
|
|
62
|
+
export declare function ToolCallResultResponseUioFromJSON(json: any): ToolCallResultResponseUio;
|
|
63
|
+
export declare function ToolCallResultResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolCallResultResponseUio;
|
|
64
|
+
export declare function ToolCallResultResponseUioToJSON(json: any): ToolCallResultResponseUio;
|
|
65
|
+
export declare function ToolCallResultResponseUioToJSONTyped(value?: ToolCallResultResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.ToolCallResultResponseUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfToolCallResultResponseUio = instanceOfToolCallResultResponseUio;
|
|
18
|
+
exports.ToolCallResultResponseUioFromJSON = ToolCallResultResponseUioFromJSON;
|
|
19
|
+
exports.ToolCallResultResponseUioFromJSONTyped = ToolCallResultResponseUioFromJSONTyped;
|
|
20
|
+
exports.ToolCallResultResponseUioToJSON = ToolCallResultResponseUioToJSON;
|
|
21
|
+
exports.ToolCallResultResponseUioToJSONTyped = ToolCallResultResponseUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ToolCallResultResponseUioStatusEnum = {
|
|
26
|
+
Completed: 'completed',
|
|
27
|
+
Failed: 'failed',
|
|
28
|
+
Refused: 'refused'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ToolCallResultResponseUio interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfToolCallResultResponseUio(value) {
|
|
34
|
+
if (!('callId' in value) || value['callId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('tool' in value) || value['tool'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('conversationId' in value) || value['conversationId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('messageId' in value) || value['messageId'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function ToolCallResultResponseUioFromJSON(json) {
|
|
47
|
+
return ToolCallResultResponseUioFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ToolCallResultResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'callId': json['callId'],
|
|
55
|
+
'tool': json['tool'],
|
|
56
|
+
'status': json['status'],
|
|
57
|
+
'conversationId': json['conversationId'],
|
|
58
|
+
'messageId': json['messageId'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function ToolCallResultResponseUioToJSON(json) {
|
|
62
|
+
return ToolCallResultResponseUioToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function ToolCallResultResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'callId': value['callId'],
|
|
70
|
+
'tool': value['tool'],
|
|
71
|
+
'status': value['status'],
|
|
72
|
+
'conversationId': value['conversationId'],
|
|
73
|
+
'messageId': value['messageId'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
* A tool call whose result does not come from the server. The conversation turn stays suspended until a client posts the result, or until expiresAt passes.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ToolCallUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolCallUio {
|
|
18
|
+
/**
|
|
19
|
+
* Identifier to post the result to.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ToolCallUio
|
|
22
|
+
*/
|
|
23
|
+
callId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the tool the model called.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ToolCallUio
|
|
28
|
+
*/
|
|
29
|
+
tool: string;
|
|
30
|
+
/**
|
|
31
|
+
* pending and expired are set by the server; the others come from the client.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ToolCallUio
|
|
34
|
+
*/
|
|
35
|
+
status: ToolCallUioStatusEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ToolCallUio
|
|
40
|
+
*/
|
|
41
|
+
conversationId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Assistant message of the turn that issued the call.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ToolCallUio
|
|
46
|
+
*/
|
|
47
|
+
messageId?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Target device, informative only. Authorization goes through the conversation.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ToolCallUio
|
|
52
|
+
*/
|
|
53
|
+
deviceId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Arguments the model passed to the tool.
|
|
56
|
+
* @type {{ [key: string]: any; }}
|
|
57
|
+
* @memberof ToolCallUio
|
|
58
|
+
*/
|
|
59
|
+
arguments?: {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof ToolCallUio
|
|
66
|
+
*/
|
|
67
|
+
createdAt?: Date;
|
|
68
|
+
/**
|
|
69
|
+
* Past this point the call is expired and the conversation turn is released.
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof ToolCallUio
|
|
72
|
+
*/
|
|
73
|
+
expiresAt: Date;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const ToolCallUioStatusEnum: {
|
|
79
|
+
readonly Pending: "pending";
|
|
80
|
+
readonly Completed: "completed";
|
|
81
|
+
readonly Failed: "failed";
|
|
82
|
+
readonly Refused: "refused";
|
|
83
|
+
readonly Expired: "expired";
|
|
84
|
+
};
|
|
85
|
+
export type ToolCallUioStatusEnum = typeof ToolCallUioStatusEnum[keyof typeof ToolCallUioStatusEnum];
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the ToolCallUio interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfToolCallUio(value: object): value is ToolCallUio;
|
|
90
|
+
export declare function ToolCallUioFromJSON(json: any): ToolCallUio;
|
|
91
|
+
export declare function ToolCallUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolCallUio;
|
|
92
|
+
export declare function ToolCallUioToJSON(json: any): ToolCallUio;
|
|
93
|
+
export declare function ToolCallUioToJSONTyped(value?: ToolCallUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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.ToolCallUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfToolCallUio = instanceOfToolCallUio;
|
|
18
|
+
exports.ToolCallUioFromJSON = ToolCallUioFromJSON;
|
|
19
|
+
exports.ToolCallUioFromJSONTyped = ToolCallUioFromJSONTyped;
|
|
20
|
+
exports.ToolCallUioToJSON = ToolCallUioToJSON;
|
|
21
|
+
exports.ToolCallUioToJSONTyped = ToolCallUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ToolCallUioStatusEnum = {
|
|
26
|
+
Pending: 'pending',
|
|
27
|
+
Completed: 'completed',
|
|
28
|
+
Failed: 'failed',
|
|
29
|
+
Refused: 'refused',
|
|
30
|
+
Expired: 'expired'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ToolCallUio interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfToolCallUio(value) {
|
|
36
|
+
if (!('callId' in value) || value['callId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('tool' in value) || value['tool'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function ToolCallUioFromJSON(json) {
|
|
47
|
+
return ToolCallUioFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ToolCallUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'callId': json['callId'],
|
|
55
|
+
'tool': json['tool'],
|
|
56
|
+
'status': json['status'],
|
|
57
|
+
'conversationId': json['conversationId'] == null ? undefined : json['conversationId'],
|
|
58
|
+
'messageId': json['messageId'] == null ? undefined : json['messageId'],
|
|
59
|
+
'deviceId': json['deviceId'] == null ? undefined : json['deviceId'],
|
|
60
|
+
'arguments': json['arguments'] == null ? undefined : json['arguments'],
|
|
61
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
62
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function ToolCallUioToJSON(json) {
|
|
66
|
+
return ToolCallUioToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function ToolCallUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'callId': value['callId'],
|
|
74
|
+
'tool': value['tool'],
|
|
75
|
+
'status': value['status'],
|
|
76
|
+
'conversationId': value['conversationId'],
|
|
77
|
+
'messageId': value['messageId'],
|
|
78
|
+
'deviceId': value['deviceId'],
|
|
79
|
+
'arguments': value['arguments'],
|
|
80
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
81
|
+
'expiresAt': ((value['expiresAt']).toISOString()),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { ToolCallUio } from './ToolCallUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ToolCallsResponseUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ToolCallsResponseUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ToolCallUio>}
|
|
22
|
+
* @memberof ToolCallsResponseUio
|
|
23
|
+
*/
|
|
24
|
+
toolCalls: Array<ToolCallUio>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ToolCallsResponseUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfToolCallsResponseUio(value: object): value is ToolCallsResponseUio;
|
|
30
|
+
export declare function ToolCallsResponseUioFromJSON(json: any): ToolCallsResponseUio;
|
|
31
|
+
export declare function ToolCallsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolCallsResponseUio;
|
|
32
|
+
export declare function ToolCallsResponseUioToJSON(json: any): ToolCallsResponseUio;
|
|
33
|
+
export declare function ToolCallsResponseUioToJSONTyped(value?: ToolCallsResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfToolCallsResponseUio = instanceOfToolCallsResponseUio;
|
|
17
|
+
exports.ToolCallsResponseUioFromJSON = ToolCallsResponseUioFromJSON;
|
|
18
|
+
exports.ToolCallsResponseUioFromJSONTyped = ToolCallsResponseUioFromJSONTyped;
|
|
19
|
+
exports.ToolCallsResponseUioToJSON = ToolCallsResponseUioToJSON;
|
|
20
|
+
exports.ToolCallsResponseUioToJSONTyped = ToolCallsResponseUioToJSONTyped;
|
|
21
|
+
const ToolCallUio_1 = require("./ToolCallUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ToolCallsResponseUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfToolCallsResponseUio(value) {
|
|
26
|
+
if (!('toolCalls' in value) || value['toolCalls'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ToolCallsResponseUioFromJSON(json) {
|
|
31
|
+
return ToolCallsResponseUioFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ToolCallsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'toolCalls': (json['toolCalls'].map(ToolCallUio_1.ToolCallUioFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ToolCallsResponseUioToJSON(json) {
|
|
42
|
+
return ToolCallsResponseUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ToolCallsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'toolCalls': (value['toolCalls'].map(ToolCallUio_1.ToolCallUioToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|