@knowledge-stack/ksapi 1.120.1 → 1.121.0
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/.openapi-generator/FILES +22 -8
- package/README.md +13 -6
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +3 -3
- package/dist/esm/models/CreateThreadMessageRequest.js +3 -3
- package/dist/esm/models/DocEditPart.d.ts +122 -0
- package/dist/esm/models/DocEditPart.js +92 -0
- package/dist/esm/models/Input.d.ts +41 -0
- package/dist/esm/models/Input.js +32 -0
- package/dist/esm/models/MessageUsage.d.ts +53 -0
- package/dist/esm/models/MessageUsage.js +57 -0
- package/dist/esm/models/ReasoningPart.d.ts +84 -0
- package/dist/esm/models/ReasoningPart.js +71 -0
- package/dist/esm/models/{StepInput.d.ts → Step.d.ts} +16 -22
- package/dist/esm/models/{StepInput.js → Step.js} +9 -11
- package/dist/esm/models/StepKind.d.ts +0 -1
- package/dist/esm/models/StepKind.js +1 -2
- package/dist/esm/models/TextPart.d.ts +91 -0
- package/dist/esm/models/TextPart.js +74 -0
- package/dist/esm/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.d.ts +33 -0
- package/dist/esm/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.js +57 -0
- package/dist/esm/models/ThreadMessageDetails.d.ts +75 -0
- package/dist/esm/models/ThreadMessageDetails.js +58 -0
- package/dist/esm/models/ThreadMessageResponse.d.ts +10 -3
- package/dist/esm/models/ThreadMessageResponse.js +6 -3
- package/dist/esm/models/ToolPart.d.ts +130 -0
- package/dist/esm/models/ToolPart.js +89 -0
- package/dist/esm/models/ToolStatus.d.ts +27 -0
- package/dist/esm/models/ToolStatus.js +45 -0
- package/dist/esm/models/WorkflowRunAsset.d.ts +87 -0
- package/dist/esm/models/WorkflowRunAsset.js +66 -0
- package/dist/esm/models/WorkflowRunResponse.d.ts +22 -3
- package/dist/esm/models/WorkflowRunResponse.js +12 -3
- package/dist/esm/models/index.d.ts +11 -4
- package/dist/esm/models/index.js +11 -4
- package/dist/models/CreateThreadMessageRequest.d.ts +3 -3
- package/dist/models/CreateThreadMessageRequest.js +3 -3
- package/dist/models/DocEditPart.d.ts +122 -0
- package/dist/models/DocEditPart.js +100 -0
- package/dist/models/Input.d.ts +41 -0
- package/dist/models/Input.js +40 -0
- package/dist/models/MessageUsage.d.ts +53 -0
- package/dist/models/MessageUsage.js +65 -0
- package/dist/models/ReasoningPart.d.ts +84 -0
- package/dist/models/ReasoningPart.js +79 -0
- package/dist/models/{StepInput.d.ts → Step.d.ts} +16 -22
- package/dist/models/{StepInput.js → Step.js} +15 -17
- package/dist/models/StepKind.d.ts +0 -1
- package/dist/models/StepKind.js +1 -2
- package/dist/models/TextPart.d.ts +91 -0
- package/dist/models/TextPart.js +82 -0
- package/dist/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.d.ts +33 -0
- package/dist/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.js +63 -0
- package/dist/models/ThreadMessageDetails.d.ts +75 -0
- package/dist/models/ThreadMessageDetails.js +66 -0
- package/dist/models/ThreadMessageResponse.d.ts +10 -3
- package/dist/models/ThreadMessageResponse.js +6 -3
- package/dist/models/ToolPart.d.ts +130 -0
- package/dist/models/ToolPart.js +97 -0
- package/dist/models/ToolStatus.d.ts +27 -0
- package/dist/models/ToolStatus.js +53 -0
- package/dist/models/WorkflowRunAsset.d.ts +87 -0
- package/dist/models/WorkflowRunAsset.js +74 -0
- package/dist/models/WorkflowRunResponse.d.ts +22 -3
- package/dist/models/WorkflowRunResponse.js +12 -3
- package/dist/models/index.d.ts +11 -4
- package/dist/models/index.js +11 -4
- package/docs/CreateThreadMessageRequest.md +1 -1
- package/docs/DocEditPart.md +54 -0
- package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.md +8 -2
- package/docs/{ThreadMessageDetailsInput.md → Input.md} +4 -10
- package/docs/MessageUsage.md +37 -0
- package/docs/{StepOutput.md → ReasoningPart.md} +10 -14
- package/docs/{StepInput.md → Step.md} +4 -6
- package/docs/TextPart.md +46 -0
- package/docs/TextPartOrReasoningPartOrToolPartOrDocEditPart.md +72 -0
- package/docs/{ThreadMessageDetailsOutput.md → ThreadMessageDetails.md} +9 -5
- package/docs/ThreadMessageResponse.md +3 -1
- package/docs/ToolPart.md +58 -0
- package/docs/ToolStatus.md +32 -0
- package/docs/WorkflowRunAsset.md +45 -0
- package/docs/WorkflowRunResponse.md +8 -2
- package/package.json +1 -1
- package/src/models/CreateThreadMessageRequest.ts +11 -11
- package/src/models/DocEditPart.ts +191 -0
- package/src/models/Input.ts +63 -0
- package/src/models/MessageUsage.ts +100 -0
- package/src/models/ReasoningPart.ts +140 -0
- package/src/models/{StepInput.ts → Step.ts} +18 -26
- package/src/models/StepKind.ts +1 -2
- package/src/models/TextPart.ts +156 -0
- package/src/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.ts +94 -0
- package/src/models/ThreadMessageDetails.ts +146 -0
- package/src/models/ThreadMessageResponse.ts +25 -10
- package/src/models/ToolPart.ts +212 -0
- package/src/models/ToolStatus.ts +55 -0
- package/src/models/WorkflowRunAsset.ts +153 -0
- package/src/models/WorkflowRunResponse.ts +38 -6
- package/src/models/index.ts +11 -4
- package/dist/esm/models/StepOutput.d.ts +0 -91
- package/dist/esm/models/StepOutput.js +0 -66
- package/dist/esm/models/ThreadMessageDetailsInput.d.ts +0 -61
- package/dist/esm/models/ThreadMessageDetailsInput.js +0 -52
- package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +0 -61
- package/dist/esm/models/ThreadMessageDetailsOutput.js +0 -52
- package/dist/models/StepOutput.d.ts +0 -91
- package/dist/models/StepOutput.js +0 -74
- package/dist/models/ThreadMessageDetailsInput.d.ts +0 -61
- package/dist/models/ThreadMessageDetailsInput.js +0 -60
- package/dist/models/ThreadMessageDetailsOutput.d.ts +0 -61
- package/dist/models/ThreadMessageDetailsOutput.js +0 -60
- package/src/models/StepOutput.ts +0 -159
- package/src/models/ThreadMessageDetailsInput.ts +0 -116
- package/src/models/ThreadMessageDetailsOutput.ts +0 -116
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Knowledge Stack API
|
|
6
|
-
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.0
|
|
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.ThreadMessageDetailsOutputPropertyValidationAttributesMap = void 0;
|
|
17
|
-
exports.instanceOfThreadMessageDetailsOutput = instanceOfThreadMessageDetailsOutput;
|
|
18
|
-
exports.ThreadMessageDetailsOutputFromJSON = ThreadMessageDetailsOutputFromJSON;
|
|
19
|
-
exports.ThreadMessageDetailsOutputFromJSONTyped = ThreadMessageDetailsOutputFromJSONTyped;
|
|
20
|
-
exports.ThreadMessageDetailsOutputToJSON = ThreadMessageDetailsOutputToJSON;
|
|
21
|
-
exports.ThreadMessageDetailsOutputToJSONTyped = ThreadMessageDetailsOutputToJSONTyped;
|
|
22
|
-
const StepOutput_1 = require("./StepOutput");
|
|
23
|
-
const CheckpointDetails_1 = require("./CheckpointDetails");
|
|
24
|
-
exports.ThreadMessageDetailsOutputPropertyValidationAttributesMap = {
|
|
25
|
-
modelId: {
|
|
26
|
-
maxLength: 64,
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Check if a given object implements the ThreadMessageDetailsOutput interface.
|
|
31
|
-
*/
|
|
32
|
-
function instanceOfThreadMessageDetailsOutput(value) {
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
function ThreadMessageDetailsOutputFromJSON(json) {
|
|
36
|
-
return ThreadMessageDetailsOutputFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
function ThreadMessageDetailsOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (json == null) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'steps': json['steps'] == null ? undefined : (json['steps'].map(StepOutput_1.StepOutputFromJSON)),
|
|
44
|
-
'checkpoint': json['checkpoint'] == null ? undefined : (0, CheckpointDetails_1.CheckpointDetailsFromJSON)(json['checkpoint']),
|
|
45
|
-
'modelId': json['model_id'] == null ? undefined : json['model_id'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function ThreadMessageDetailsOutputToJSON(json) {
|
|
49
|
-
return ThreadMessageDetailsOutputToJSONTyped(json, false);
|
|
50
|
-
}
|
|
51
|
-
function ThreadMessageDetailsOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
-
if (value == null) {
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
'steps': value['steps'] == null ? undefined : (value['steps'].map(StepOutput_1.StepOutputToJSON)),
|
|
57
|
-
'checkpoint': (0, CheckpointDetails_1.CheckpointDetailsToJSON)(value['checkpoint']),
|
|
58
|
-
'model_id': value['modelId'],
|
|
59
|
-
};
|
|
60
|
-
}
|
package/src/models/StepOutput.ts
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Knowledge Stack API
|
|
5
|
-
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { Args } from './Args';
|
|
17
|
-
import {
|
|
18
|
-
ArgsFromJSON,
|
|
19
|
-
ArgsFromJSONTyped,
|
|
20
|
-
ArgsToJSON,
|
|
21
|
-
ArgsToJSONTyped,
|
|
22
|
-
} from './Args';
|
|
23
|
-
import type { StepKind } from './StepKind';
|
|
24
|
-
import {
|
|
25
|
-
StepKindFromJSON,
|
|
26
|
-
StepKindFromJSONTyped,
|
|
27
|
-
StepKindToJSON,
|
|
28
|
-
StepKindToJSONTyped,
|
|
29
|
-
} from './StepKind';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface StepOutput
|
|
35
|
-
*/
|
|
36
|
-
export interface StepOutput {
|
|
37
|
-
/**
|
|
38
|
-
* Stable step identifier within the message
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof StepOutput
|
|
41
|
-
*/
|
|
42
|
-
id: string;
|
|
43
|
-
/**
|
|
44
|
-
* The name of the step
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof StepOutput
|
|
47
|
-
*/
|
|
48
|
-
name: string;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {StepKind}
|
|
52
|
-
* @memberof StepOutput
|
|
53
|
-
*/
|
|
54
|
-
kind: StepKind;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {Args}
|
|
58
|
-
* @memberof StepOutput
|
|
59
|
-
*/
|
|
60
|
-
args?: Args | null;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof StepOutput
|
|
65
|
-
*/
|
|
66
|
-
detail?: string | null;
|
|
67
|
-
/**
|
|
68
|
-
* The start time of the step
|
|
69
|
-
* @type {Date}
|
|
70
|
-
* @memberof StepOutput
|
|
71
|
-
*/
|
|
72
|
-
startTime: Date;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {Date}
|
|
76
|
-
* @memberof StepOutput
|
|
77
|
-
*/
|
|
78
|
-
endTime?: Date | null;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {Array<StepOutput>}
|
|
82
|
-
* @memberof StepOutput
|
|
83
|
-
*/
|
|
84
|
-
steps?: Array<StepOutput> | null;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
export const StepOutputPropertyValidationAttributesMap: {
|
|
89
|
-
[property: string]: {
|
|
90
|
-
maxLength?: number,
|
|
91
|
-
minLength?: number,
|
|
92
|
-
pattern?: string,
|
|
93
|
-
maximum?: number,
|
|
94
|
-
exclusiveMaximum?: boolean,
|
|
95
|
-
minimum?: number,
|
|
96
|
-
exclusiveMinimum?: boolean,
|
|
97
|
-
multipleOf?: number,
|
|
98
|
-
maxItems?: number,
|
|
99
|
-
minItems?: number,
|
|
100
|
-
uniqueItems?: boolean
|
|
101
|
-
}
|
|
102
|
-
} = {
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Check if a given object implements the StepOutput interface.
|
|
108
|
-
*/
|
|
109
|
-
export function instanceOfStepOutput(value: object): value is StepOutput {
|
|
110
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
111
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
112
|
-
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
113
|
-
if (!('startTime' in value) || value['startTime'] === undefined) return false;
|
|
114
|
-
return true;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export function StepOutputFromJSON(json: any): StepOutput {
|
|
118
|
-
return StepOutputFromJSONTyped(json, false);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export function StepOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): StepOutput {
|
|
122
|
-
if (json == null) {
|
|
123
|
-
return json;
|
|
124
|
-
}
|
|
125
|
-
return {
|
|
126
|
-
|
|
127
|
-
'id': json['id'],
|
|
128
|
-
'name': json['name'],
|
|
129
|
-
'kind': StepKindFromJSON(json['kind']),
|
|
130
|
-
'args': json['args'] == null ? undefined : ArgsFromJSON(json['args']),
|
|
131
|
-
'detail': json['detail'] == null ? undefined : json['detail'],
|
|
132
|
-
'startTime': (new Date(json['start_time'])),
|
|
133
|
-
'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
|
|
134
|
-
'steps': json['steps'] == null ? undefined : ((json['steps'] as Array<any>).map(StepOutputFromJSON)),
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export function StepOutputToJSON(json: any): StepOutput {
|
|
139
|
-
return StepOutputToJSONTyped(json, false);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export function StepOutputToJSONTyped(value?: StepOutput | null, ignoreDiscriminator: boolean = false): any {
|
|
143
|
-
if (value == null) {
|
|
144
|
-
return value;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return {
|
|
148
|
-
|
|
149
|
-
'id': value['id'],
|
|
150
|
-
'name': value['name'],
|
|
151
|
-
'kind': StepKindToJSON(value['kind']),
|
|
152
|
-
'args': ArgsToJSON(value['args']),
|
|
153
|
-
'detail': value['detail'],
|
|
154
|
-
'start_time': value['startTime'].toISOString(),
|
|
155
|
-
'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
|
|
156
|
-
'steps': value['steps'] == null ? undefined : ((value['steps'] as Array<any>).map(StepOutputToJSON)),
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Knowledge Stack API
|
|
5
|
-
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { CheckpointDetails } from './CheckpointDetails';
|
|
17
|
-
import {
|
|
18
|
-
CheckpointDetailsFromJSON,
|
|
19
|
-
CheckpointDetailsFromJSONTyped,
|
|
20
|
-
CheckpointDetailsToJSON,
|
|
21
|
-
CheckpointDetailsToJSONTyped,
|
|
22
|
-
} from './CheckpointDetails';
|
|
23
|
-
import type { StepInput } from './StepInput';
|
|
24
|
-
import {
|
|
25
|
-
StepInputFromJSON,
|
|
26
|
-
StepInputFromJSONTyped,
|
|
27
|
-
StepInputToJSON,
|
|
28
|
-
StepInputToJSONTyped,
|
|
29
|
-
} from './StepInput';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface ThreadMessageDetailsInput
|
|
35
|
-
*/
|
|
36
|
-
export interface ThreadMessageDetailsInput {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<StepInput>}
|
|
40
|
-
* @memberof ThreadMessageDetailsInput
|
|
41
|
-
*/
|
|
42
|
-
steps?: Array<StepInput>;
|
|
43
|
-
/**
|
|
44
|
-
* Agent history checkpoint. Present only on role=SYSTEM messages written by the agent's archival path.
|
|
45
|
-
* @type {CheckpointDetails}
|
|
46
|
-
* @memberof ThreadMessageDetailsInput
|
|
47
|
-
*/
|
|
48
|
-
checkpoint?: CheckpointDetails | null;
|
|
49
|
-
/**
|
|
50
|
-
* Model registry id (FE-stable, e.g. ``qwen-flash``) that produced this assistant message. ``None`` for legacy rows that pre-date model selection.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof ThreadMessageDetailsInput
|
|
53
|
-
*/
|
|
54
|
-
modelId?: string | null;
|
|
55
|
-
}
|
|
56
|
-
export const ThreadMessageDetailsInputPropertyValidationAttributesMap: {
|
|
57
|
-
[property: string]: {
|
|
58
|
-
maxLength?: number,
|
|
59
|
-
minLength?: number,
|
|
60
|
-
pattern?: string,
|
|
61
|
-
maximum?: number,
|
|
62
|
-
exclusiveMaximum?: boolean,
|
|
63
|
-
minimum?: number,
|
|
64
|
-
exclusiveMinimum?: boolean,
|
|
65
|
-
multipleOf?: number,
|
|
66
|
-
maxItems?: number,
|
|
67
|
-
minItems?: number,
|
|
68
|
-
uniqueItems?: boolean
|
|
69
|
-
}
|
|
70
|
-
} = {
|
|
71
|
-
modelId: {
|
|
72
|
-
maxLength: 64,
|
|
73
|
-
},
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Check if a given object implements the ThreadMessageDetailsInput interface.
|
|
79
|
-
*/
|
|
80
|
-
export function instanceOfThreadMessageDetailsInput(value: object): value is ThreadMessageDetailsInput {
|
|
81
|
-
return true;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function ThreadMessageDetailsInputFromJSON(json: any): ThreadMessageDetailsInput {
|
|
85
|
-
return ThreadMessageDetailsInputFromJSONTyped(json, false);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export function ThreadMessageDetailsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThreadMessageDetailsInput {
|
|
89
|
-
if (json == null) {
|
|
90
|
-
return json;
|
|
91
|
-
}
|
|
92
|
-
return {
|
|
93
|
-
|
|
94
|
-
'steps': json['steps'] == null ? undefined : ((json['steps'] as Array<any>).map(StepInputFromJSON)),
|
|
95
|
-
'checkpoint': json['checkpoint'] == null ? undefined : CheckpointDetailsFromJSON(json['checkpoint']),
|
|
96
|
-
'modelId': json['model_id'] == null ? undefined : json['model_id'],
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function ThreadMessageDetailsInputToJSON(json: any): ThreadMessageDetailsInput {
|
|
101
|
-
return ThreadMessageDetailsInputToJSONTyped(json, false);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export function ThreadMessageDetailsInputToJSONTyped(value?: ThreadMessageDetailsInput | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
-
if (value == null) {
|
|
106
|
-
return value;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
return {
|
|
110
|
-
|
|
111
|
-
'steps': value['steps'] == null ? undefined : ((value['steps'] as Array<any>).map(StepInputToJSON)),
|
|
112
|
-
'checkpoint': CheckpointDetailsToJSON(value['checkpoint']),
|
|
113
|
-
'model_id': value['modelId'],
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Knowledge Stack API
|
|
5
|
-
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { StepOutput } from './StepOutput';
|
|
17
|
-
import {
|
|
18
|
-
StepOutputFromJSON,
|
|
19
|
-
StepOutputFromJSONTyped,
|
|
20
|
-
StepOutputToJSON,
|
|
21
|
-
StepOutputToJSONTyped,
|
|
22
|
-
} from './StepOutput';
|
|
23
|
-
import type { CheckpointDetails } from './CheckpointDetails';
|
|
24
|
-
import {
|
|
25
|
-
CheckpointDetailsFromJSON,
|
|
26
|
-
CheckpointDetailsFromJSONTyped,
|
|
27
|
-
CheckpointDetailsToJSON,
|
|
28
|
-
CheckpointDetailsToJSONTyped,
|
|
29
|
-
} from './CheckpointDetails';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface ThreadMessageDetailsOutput
|
|
35
|
-
*/
|
|
36
|
-
export interface ThreadMessageDetailsOutput {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<StepOutput>}
|
|
40
|
-
* @memberof ThreadMessageDetailsOutput
|
|
41
|
-
*/
|
|
42
|
-
steps?: Array<StepOutput>;
|
|
43
|
-
/**
|
|
44
|
-
* Agent history checkpoint. Present only on role=SYSTEM messages written by the agent's archival path.
|
|
45
|
-
* @type {CheckpointDetails}
|
|
46
|
-
* @memberof ThreadMessageDetailsOutput
|
|
47
|
-
*/
|
|
48
|
-
checkpoint?: CheckpointDetails | null;
|
|
49
|
-
/**
|
|
50
|
-
* Model registry id (FE-stable, e.g. ``qwen-flash``) that produced this assistant message. ``None`` for legacy rows that pre-date model selection.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof ThreadMessageDetailsOutput
|
|
53
|
-
*/
|
|
54
|
-
modelId?: string | null;
|
|
55
|
-
}
|
|
56
|
-
export const ThreadMessageDetailsOutputPropertyValidationAttributesMap: {
|
|
57
|
-
[property: string]: {
|
|
58
|
-
maxLength?: number,
|
|
59
|
-
minLength?: number,
|
|
60
|
-
pattern?: string,
|
|
61
|
-
maximum?: number,
|
|
62
|
-
exclusiveMaximum?: boolean,
|
|
63
|
-
minimum?: number,
|
|
64
|
-
exclusiveMinimum?: boolean,
|
|
65
|
-
multipleOf?: number,
|
|
66
|
-
maxItems?: number,
|
|
67
|
-
minItems?: number,
|
|
68
|
-
uniqueItems?: boolean
|
|
69
|
-
}
|
|
70
|
-
} = {
|
|
71
|
-
modelId: {
|
|
72
|
-
maxLength: 64,
|
|
73
|
-
},
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Check if a given object implements the ThreadMessageDetailsOutput interface.
|
|
79
|
-
*/
|
|
80
|
-
export function instanceOfThreadMessageDetailsOutput(value: object): value is ThreadMessageDetailsOutput {
|
|
81
|
-
return true;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function ThreadMessageDetailsOutputFromJSON(json: any): ThreadMessageDetailsOutput {
|
|
85
|
-
return ThreadMessageDetailsOutputFromJSONTyped(json, false);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export function ThreadMessageDetailsOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThreadMessageDetailsOutput {
|
|
89
|
-
if (json == null) {
|
|
90
|
-
return json;
|
|
91
|
-
}
|
|
92
|
-
return {
|
|
93
|
-
|
|
94
|
-
'steps': json['steps'] == null ? undefined : ((json['steps'] as Array<any>).map(StepOutputFromJSON)),
|
|
95
|
-
'checkpoint': json['checkpoint'] == null ? undefined : CheckpointDetailsFromJSON(json['checkpoint']),
|
|
96
|
-
'modelId': json['model_id'] == null ? undefined : json['model_id'],
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function ThreadMessageDetailsOutputToJSON(json: any): ThreadMessageDetailsOutput {
|
|
101
|
-
return ThreadMessageDetailsOutputToJSONTyped(json, false);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export function ThreadMessageDetailsOutputToJSONTyped(value?: ThreadMessageDetailsOutput | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
-
if (value == null) {
|
|
106
|
-
return value;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
return {
|
|
110
|
-
|
|
111
|
-
'steps': value['steps'] == null ? undefined : ((value['steps'] as Array<any>).map(StepOutputToJSON)),
|
|
112
|
-
'checkpoint': CheckpointDetailsToJSON(value['checkpoint']),
|
|
113
|
-
'model_id': value['modelId'],
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
|