Skip to content

Commit 82fc8e6

Browse files
authored
Merge pull request #373 from iceljc/features/refine-chat-window
Features/refine chat window
2 parents c2b14dc + f86dcc8 commit 82fc8e6

File tree

20 files changed

+1480
-224
lines changed

20 files changed

+1480
-224
lines changed

src/lib/helpers/enums.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ const routingMode = {
8383
};
8484
export const RoutingMode = Object.freeze(routingMode);
8585

86+
const functionVisMode = {
87+
Manual: "manual",
88+
Auto: "auto"
89+
};
90+
export const FunctionVisMode = Object.freeze(functionVisMode);
91+
8692
const agentTaskStatus = {
8793
Scheduled: 'scheduled',
8894
New: 'new',
@@ -117,6 +123,24 @@ const knowledgePayloadName = {
117123
};
118124
export const KnowledgePayloadName = Object.freeze(knowledgePayloadName);
119125

126+
const vectorPayloadDataType = {
127+
String: Object.freeze({ id: 1, name: 'String' }),
128+
Boolean: Object.freeze({ id: 2, name: 'Boolean' }),
129+
Integer: Object.freeze({ id: 3, name: 'Integer' }),
130+
Double: Object.freeze({ id: 4, name: 'Double' }),
131+
Datetime: Object.freeze({ id: 5, name: 'Datetime' }),
132+
};
133+
export const VectorPayloadDataType = Object.freeze(vectorPayloadDataType);
134+
135+
const vectorIndexSchemaType = {
136+
Text: "text",
137+
Integer: "integer",
138+
Float: "float",
139+
Boolean: "bool",
140+
Datetime: "datetime"
141+
};
142+
export const VectorIndexSchemaType = Object.freeze(vectorIndexSchemaType);
143+
120144
const vectorDataSource = {
121145
Api: 'api',
122146
User: 'user',

src/lib/helpers/types/agentTypes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
* @property {string} description - Agent description.
4747
* @property {string} type - Agent type
4848
* @property {string?} mode - Agent routing mode
49+
* @property {string?} function_visibility_mode - Agent function visibility mode
4950
* @property {string} instruction - System prompt
5051
* @property {ChannelInstruction[]} channel_instructions - Channel instructions
5152
* @property {boolean} disabled

src/lib/helpers/types/commonTypes.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
* @typedef {Object} LlmModelSetting
5656
* @property {string} name
5757
* @property {string} type
58+
* @property {any} reasoning
5859
*/
5960

6061

@@ -70,4 +71,10 @@
7071
* @property {string?} [displayName]
7172
*/
7273

74+
/**
75+
* @typedef {Object} SuccessFailResponse
76+
* @property {any[]} success
77+
* @property {any[]} fail
78+
*/
79+
7380
export default {};

src/lib/helpers/types/knowledgeTypes.js

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,41 @@
3030

3131
/**
3232
* @typedef {Object} VectorFilterGroup
33-
* @property {string} [filter_operator] - The filter operator.
34-
* @property {{ key: string, value: string }[]} [filters] - Search filters.
33+
* @property {string} [logical_operator] - The logical operator.
34+
* @property {VectorFilterSubGroup[]} [filters] - Search filters.
35+
*/
36+
37+
/**
38+
* @typedef {Object} VectorFilterSubGroup
39+
* @property {string} [logical_operator] - The logical operator.
40+
* @property {VectorFilterOperand[]} [operands] - Search operands.
41+
*/
42+
43+
/**
44+
* @typedef {Object} VectorFilterOperand
45+
* @property {VectorFilterMatch?} [match] - The match filter.
46+
* @property {VectorFilterRange?} [range] -The range filter.
47+
*/
48+
49+
/**
50+
* @typedef {Object} VectorFilterMatch
51+
* @property {string} key - The field name.
52+
* @property {string} value - The field value.
53+
* @property {string} operator - The operator.
54+
* @property {string} data_type -The field data type.
55+
*/
56+
57+
/**
58+
* @typedef {Object} VectorFilterRange
59+
* @property {string} key - The field name.
60+
* @property {string} data_type -The field data type.
61+
* @property {VectorFilterRangeCondition[]} conditions -The conditions.
62+
*/
63+
64+
/**
65+
* @typedef {Object} VectorFilterRangeCondition
66+
* @property {string} value - The field value.
67+
* @property {string} operator -The operator.
3568
*/
3669

3770
/**
@@ -100,4 +133,25 @@
100133
* @property {number} dimension
101134
*/
102135

136+
/**
137+
* @typedef {Object} VectorCollectionDetails
138+
* @property {string} status
139+
* @property {number} vectors_count
140+
* @property {number} points_count
141+
* @property {PayloadSchemaDetail[]} payload_schema
142+
*/
143+
144+
/**
145+
* @typedef {Object} PayloadSchemaDetail
146+
* @property {string} field_name
147+
* @property {string} field_data_type
148+
* @property {number} data_count
149+
*/
150+
151+
/**
152+
* @typedef {Object} VectorCollectionIndexOptions
153+
* @property {string} field_name
154+
* @property {string} field_schema_type
155+
*/
156+
103157
export default {};

0 commit comments

Comments
 (0)