@metad/contracts 3.6.0-beta.10 → 3.6.0-beta.6
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/index.cjs.js +23 -15
- package/index.esm.js +21 -12
- package/package.json +2 -2
- package/src/ai/knowledge-doc.model.d.ts +1 -9
- package/src/ai/knowledge-pipeline.d.ts +2 -2
- package/src/ai/knowledgebase-task.model.d.ts +0 -3
- package/src/ai/knowledgebase.model.d.ts +3 -3
- package/src/ai/xpert-workflow.model.d.ts +0 -1
- package/src/ai/xpert.model.d.ts +1 -33
- package/src/integration.model.d.ts +1 -5
package/index.cjs.js
CHANGED
|
@@ -2048,9 +2048,6 @@ exports.WorkflowComparisonOperator = void 0;
|
|
|
2048
2048
|
WorkflowComparisonOperator["LIKE"] = "like";
|
|
2049
2049
|
WorkflowComparisonOperator["NOT_LIKE"] = "not-like";
|
|
2050
2050
|
})(exports.WorkflowComparisonOperator || (exports.WorkflowComparisonOperator = {}));
|
|
2051
|
-
function genXpertTriggerKey() {
|
|
2052
|
-
return letterStartSUID("Trigger_");
|
|
2053
|
-
}
|
|
2054
2051
|
function genListOperatorKey() {
|
|
2055
2052
|
return letterStartSUID("ListOperator_");
|
|
2056
2053
|
}
|
|
@@ -2463,9 +2460,9 @@ exports.KnowledgebasePermission = void 0;
|
|
|
2463
2460
|
*/ var KnowledgeTask = "task_id";
|
|
2464
2461
|
/**
|
|
2465
2462
|
* Specify the data source to run
|
|
2466
|
-
*/ var
|
|
2467
|
-
var
|
|
2468
|
-
var
|
|
2463
|
+
*/ var KnowledgeSources = "sources";
|
|
2464
|
+
var KnowledgeDocuments = "documents";
|
|
2465
|
+
var KnowledgeFolderId = "folder_id";
|
|
2469
2466
|
var KNOWLEDGE_STAGE_NAME = "stage";
|
|
2470
2467
|
|
|
2471
2468
|
exports.KDocumentSourceType = void 0;
|
|
@@ -2506,8 +2503,7 @@ function isDocumentSheet(type) {
|
|
|
2506
2503
|
"csv",
|
|
2507
2504
|
"xls",
|
|
2508
2505
|
"xlsx",
|
|
2509
|
-
"ods"
|
|
2510
|
-
"vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
2506
|
+
"ods"
|
|
2511
2507
|
].includes(type);
|
|
2512
2508
|
}
|
|
2513
2509
|
|
|
@@ -3475,6 +3471,21 @@ var IntegrationLarkProvider = {
|
|
|
3475
3471
|
}
|
|
3476
3472
|
};
|
|
3477
3473
|
|
|
3474
|
+
var IntegrationWeComProvider = {
|
|
3475
|
+
name: exports.IntegrationEnum.WECOM,
|
|
3476
|
+
label: {
|
|
3477
|
+
en_US: "WeCom",
|
|
3478
|
+
zh_Hans: "企业微信"
|
|
3479
|
+
},
|
|
3480
|
+
avatar: "wecom.webp",
|
|
3481
|
+
webhook: true,
|
|
3482
|
+
schema: {
|
|
3483
|
+
type: "object",
|
|
3484
|
+
properties: {}
|
|
3485
|
+
},
|
|
3486
|
+
pro: true
|
|
3487
|
+
};
|
|
3488
|
+
|
|
3478
3489
|
function _define_property(obj, key, value) {
|
|
3479
3490
|
if (key in obj) {
|
|
3480
3491
|
Object.defineProperty(obj, key, {
|
|
@@ -3489,9 +3500,7 @@ function _define_property(obj, key, value) {
|
|
|
3489
3500
|
return obj;
|
|
3490
3501
|
}
|
|
3491
3502
|
var _obj;
|
|
3492
|
-
var INTEGRATION_PROVIDERS = (_obj = {}, // [IntegrationEnum.
|
|
3493
|
-
_define_property(_obj, exports.IntegrationEnum.DINGTALK, IntegrationDingTalkProvider), // [IntegrationEnum.WECOM]: IntegrationWeComProvider,
|
|
3494
|
-
// [IntegrationEnum.FIRECRAWL]: IntegrationFirecrawlProvider,
|
|
3503
|
+
var INTEGRATION_PROVIDERS = (_obj = {}, _define_property(_obj, exports.IntegrationEnum.LARK, IntegrationLarkProvider), _define_property(_obj, exports.IntegrationEnum.DINGTALK, IntegrationDingTalkProvider), _define_property(_obj, exports.IntegrationEnum.WECOM, IntegrationWeComProvider), // [IntegrationEnum.FIRECRAWL]: IntegrationFirecrawlProvider,
|
|
3495
3504
|
_define_property(_obj, exports.IntegrationEnum.GITHUB, IntegrationGitHubProvider), _obj);
|
|
3496
3505
|
|
|
3497
3506
|
exports.AiModelTypeEnum = void 0;
|
|
@@ -3910,10 +3919,10 @@ exports.IntegrationLarkProvider = IntegrationLarkProvider;
|
|
|
3910
3919
|
exports.IteratingIndexParameterName = IteratingIndexParameterName;
|
|
3911
3920
|
exports.IteratingItemParameterName = IteratingItemParameterName;
|
|
3912
3921
|
exports.KDocumentWebTypeOptions = KDocumentWebTypeOptions;
|
|
3913
|
-
exports.KNOWLEDGE_DOCUMENTS_NAME = KNOWLEDGE_DOCUMENTS_NAME;
|
|
3914
|
-
exports.KNOWLEDGE_FOLDER_ID_NAME = KNOWLEDGE_FOLDER_ID_NAME;
|
|
3915
|
-
exports.KNOWLEDGE_SOURCES_NAME = KNOWLEDGE_SOURCES_NAME;
|
|
3916
3922
|
exports.KNOWLEDGE_STAGE_NAME = KNOWLEDGE_STAGE_NAME;
|
|
3923
|
+
exports.KnowledgeDocuments = KnowledgeDocuments;
|
|
3924
|
+
exports.KnowledgeFolderId = KnowledgeFolderId;
|
|
3925
|
+
exports.KnowledgeSources = KnowledgeSources;
|
|
3917
3926
|
exports.KnowledgeTask = KnowledgeTask;
|
|
3918
3927
|
exports.KnowledgebaseChannel = KnowledgebaseChannel;
|
|
3919
3928
|
exports.LanguagesMap = LanguagesMap;
|
|
@@ -3955,7 +3964,6 @@ exports.genPipelineProcessorKey = genPipelineProcessorKey;
|
|
|
3955
3964
|
exports.genPipelineSourceKey = genPipelineSourceKey;
|
|
3956
3965
|
exports.genPipelineUnderstandingKey = genPipelineUnderstandingKey;
|
|
3957
3966
|
exports.genVariableAggregatorKey = genVariableAggregatorKey;
|
|
3958
|
-
exports.genXpertTriggerKey = genXpertTriggerKey;
|
|
3959
3967
|
exports.generateCronExpression = generateCronExpression;
|
|
3960
3968
|
exports.getAgentVarGroup = getAgentVarGroup;
|
|
3961
3969
|
exports.getCurrentGraph = getCurrentGraph;
|
package/index.esm.js
CHANGED
|
@@ -2046,9 +2046,6 @@ var WorkflowComparisonOperator;
|
|
|
2046
2046
|
WorkflowComparisonOperator["LIKE"] = "like";
|
|
2047
2047
|
WorkflowComparisonOperator["NOT_LIKE"] = "not-like";
|
|
2048
2048
|
})(WorkflowComparisonOperator || (WorkflowComparisonOperator = {}));
|
|
2049
|
-
function genXpertTriggerKey() {
|
|
2050
|
-
return letterStartSUID("Trigger_");
|
|
2051
|
-
}
|
|
2052
2049
|
function genListOperatorKey() {
|
|
2053
2050
|
return letterStartSUID("ListOperator_");
|
|
2054
2051
|
}
|
|
@@ -2461,9 +2458,9 @@ var KnowledgebasePermission;
|
|
|
2461
2458
|
*/ var KnowledgeTask = "task_id";
|
|
2462
2459
|
/**
|
|
2463
2460
|
* Specify the data source to run
|
|
2464
|
-
*/ var
|
|
2465
|
-
var
|
|
2466
|
-
var
|
|
2461
|
+
*/ var KnowledgeSources = "sources";
|
|
2462
|
+
var KnowledgeDocuments = "documents";
|
|
2463
|
+
var KnowledgeFolderId = "folder_id";
|
|
2467
2464
|
var KNOWLEDGE_STAGE_NAME = "stage";
|
|
2468
2465
|
|
|
2469
2466
|
var KDocumentSourceType;
|
|
@@ -2504,8 +2501,7 @@ function isDocumentSheet(type) {
|
|
|
2504
2501
|
"csv",
|
|
2505
2502
|
"xls",
|
|
2506
2503
|
"xlsx",
|
|
2507
|
-
"ods"
|
|
2508
|
-
"vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
2504
|
+
"ods"
|
|
2509
2505
|
].includes(type);
|
|
2510
2506
|
}
|
|
2511
2507
|
|
|
@@ -3473,6 +3469,21 @@ var IntegrationLarkProvider = {
|
|
|
3473
3469
|
}
|
|
3474
3470
|
};
|
|
3475
3471
|
|
|
3472
|
+
var IntegrationWeComProvider = {
|
|
3473
|
+
name: IntegrationEnum.WECOM,
|
|
3474
|
+
label: {
|
|
3475
|
+
en_US: "WeCom",
|
|
3476
|
+
zh_Hans: "企业微信"
|
|
3477
|
+
},
|
|
3478
|
+
avatar: "wecom.webp",
|
|
3479
|
+
webhook: true,
|
|
3480
|
+
schema: {
|
|
3481
|
+
type: "object",
|
|
3482
|
+
properties: {}
|
|
3483
|
+
},
|
|
3484
|
+
pro: true
|
|
3485
|
+
};
|
|
3486
|
+
|
|
3476
3487
|
function _define_property(obj, key, value) {
|
|
3477
3488
|
if (key in obj) {
|
|
3478
3489
|
Object.defineProperty(obj, key, {
|
|
@@ -3487,9 +3498,7 @@ function _define_property(obj, key, value) {
|
|
|
3487
3498
|
return obj;
|
|
3488
3499
|
}
|
|
3489
3500
|
var _obj;
|
|
3490
|
-
var INTEGRATION_PROVIDERS = (_obj = {}, // [IntegrationEnum.
|
|
3491
|
-
_define_property(_obj, IntegrationEnum.DINGTALK, IntegrationDingTalkProvider), // [IntegrationEnum.WECOM]: IntegrationWeComProvider,
|
|
3492
|
-
// [IntegrationEnum.FIRECRAWL]: IntegrationFirecrawlProvider,
|
|
3501
|
+
var INTEGRATION_PROVIDERS = (_obj = {}, _define_property(_obj, IntegrationEnum.LARK, IntegrationLarkProvider), _define_property(_obj, IntegrationEnum.DINGTALK, IntegrationDingTalkProvider), _define_property(_obj, IntegrationEnum.WECOM, IntegrationWeComProvider), // [IntegrationEnum.FIRECRAWL]: IntegrationFirecrawlProvider,
|
|
3493
3502
|
_define_property(_obj, IntegrationEnum.GITHUB, IntegrationGitHubProvider), _obj);
|
|
3494
3503
|
|
|
3495
3504
|
var AiModelTypeEnum;
|
|
@@ -3888,4 +3897,4 @@ var InterruptMessageType;
|
|
|
3888
3897
|
InterruptMessageType["Select"] = "select";
|
|
3889
3898
|
})(InterruptMessageType || (InterruptMessageType = {}));
|
|
3890
3899
|
|
|
3891
|
-
export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, AccessEnum, AgentEventType, AgentType, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, AnalyticsFeatures, AnalyticsPermissionsEnum, ApiAuthType, ApiProviderSchemaType, ApprovalPolicyTypesEnum, ApprovalPolicyTypesStringEnum, Attachment_Type_Options, AuthenticationEnum, BIInterruptMessageType, BonusTypeEnum, BusinessAreaRole, BusinessType, CONTEXT_VARIABLE_CURRENTSTATE, ChatDashboardMessageType, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FeatureEnum, FeatureStatusEnum, FeedTypeEnum, FetchFrom, FileStorageProviderEnum, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IndicatorOptionFields, IndicatorStatusEnum, IndicatorTagEnum, IndicatorType, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions,
|
|
3900
|
+
export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, AccessEnum, AgentEventType, AgentType, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, AnalyticsFeatures, AnalyticsPermissionsEnum, ApiAuthType, ApiProviderSchemaType, ApprovalPolicyTypesEnum, ApprovalPolicyTypesStringEnum, Attachment_Type_Options, AuthenticationEnum, BIInterruptMessageType, BonusTypeEnum, BusinessAreaRole, BusinessType, CONTEXT_VARIABLE_CURRENTSTATE, ChatDashboardMessageType, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FeatureEnum, FeatureStatusEnum, FeedTypeEnum, FetchFrom, FileStorageProviderEnum, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IndicatorOptionFields, IndicatorStatusEnum, IndicatorTagEnum, IndicatorType, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGE_STAGE_NAME, KnowledgeDocuments, KnowledgeFolderId, KnowledgeProviderEnum, KnowledgeSources, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseTypeEnum, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LocalAgentType, LongTermMemoryTypeEnum, MCPServerType, schema as MDX, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MinimumProjectSizeEnum, ModelEntityType, ModelFeature, ModelPropertyKey, ModelTypeEnum, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionApprovalStatus, PermissionApprovalStatusTypesEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProjectStatusEnum, ProviderEnum, ProviderType, QueryStatusEnum, RegionsEnum, RequestMethodEnum, RoleTypeEnum, RolesEnum, SMTPSecureEnum, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, ScheduleTaskStatus, SemanticModelStatusEnum, StoryStatusEnum, StoryTemplateType, SubscriptionType, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, TENANT_AGENT_LOCAL_URL, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, TimeGranularity, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, VisitEntityEnum, VisitTypeEnum, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, channelName, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createXpertGraph, createXpertNodes, embeddingCubeCollectionName, extractSemanticModelDraft, figureOutXpert, findStartNodes, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, generateCronExpression, getAgentVarGroup, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, isAgentKey, isDocumentSheet, isEnableTool, isIteratingKey, isMessageGroup, isRouterKey, isToolEnabled, isWorkflowKey, letterStartSUID, locateNodes, mapTranslationLanguage, messageContentText, omitXpertRelations, setStateVariable, shortTitle, transformInstallation, uuid, workflowNodeIdentifier, xpertLabel };
|
package/package.json
CHANGED
|
@@ -15,12 +15,10 @@ export type DocumentParserConfig = {
|
|
|
15
15
|
[key: string]: unknown;
|
|
16
16
|
};
|
|
17
17
|
transformerType?: string;
|
|
18
|
-
transformerIntegration?: string;
|
|
19
18
|
transformer?: {
|
|
20
19
|
[key: string]: unknown;
|
|
21
20
|
};
|
|
22
21
|
imageUnderstandingType?: string;
|
|
23
|
-
imageUnderstandingIntegration?: string;
|
|
24
22
|
imageUnderstanding?: {
|
|
25
23
|
[key: string]: unknown;
|
|
26
24
|
};
|
|
@@ -87,6 +85,7 @@ export type TDocSourceConfig = {
|
|
|
87
85
|
export type TKnowledgeDocument = {
|
|
88
86
|
disabled?: boolean;
|
|
89
87
|
knowledgebaseId?: string;
|
|
88
|
+
knowledgebase?: IKnowledgebase;
|
|
90
89
|
/**
|
|
91
90
|
* @deprecated use fileUrl instead
|
|
92
91
|
*/
|
|
@@ -101,7 +100,6 @@ export type TKnowledgeDocument = {
|
|
|
101
100
|
thumbnail?: string;
|
|
102
101
|
/**
|
|
103
102
|
* default parser ID
|
|
104
|
-
* @deprecated unused
|
|
105
103
|
*/
|
|
106
104
|
parserId: string;
|
|
107
105
|
parserConfig: DocumentTextParserConfig;
|
|
@@ -127,11 +125,6 @@ export type TKnowledgeDocument = {
|
|
|
127
125
|
*/
|
|
128
126
|
filePath: string;
|
|
129
127
|
fileUrl?: string;
|
|
130
|
-
/**
|
|
131
|
-
* Folder path in server for this document file.
|
|
132
|
-
* Init it in creating document entity.
|
|
133
|
-
*/
|
|
134
|
-
folder?: string;
|
|
135
128
|
size: string;
|
|
136
129
|
tokenNum?: number | null;
|
|
137
130
|
chunkNum?: number | null;
|
|
@@ -162,7 +155,6 @@ export type TKnowledgeDocument = {
|
|
|
162
155
|
export interface IKnowledgeDocument<T = Metadata> extends TKnowledgeDocument, IBasePerTenantAndOrganizationEntityModel {
|
|
163
156
|
parent?: IKnowledgeDocument | null;
|
|
164
157
|
children?: IKnowledgeDocument[];
|
|
165
|
-
knowledgebase?: IKnowledgebase;
|
|
166
158
|
chunks?: DocumentInterface[];
|
|
167
159
|
metadata?: T;
|
|
168
160
|
}
|
|
@@ -49,11 +49,11 @@ export interface IDocumentUnderstandingProvider extends IDocumentNodeProvider {
|
|
|
49
49
|
/**
|
|
50
50
|
* Knowledge Pipeline Source Node
|
|
51
51
|
*/
|
|
52
|
-
export interface IWFNSource
|
|
52
|
+
export interface IWFNSource extends IWorkflowNode {
|
|
53
53
|
type: WorkflowNodeTypeEnum.SOURCE;
|
|
54
54
|
provider: string;
|
|
55
55
|
parameters?: TXpertParameter[];
|
|
56
|
-
config:
|
|
56
|
+
config: any;
|
|
57
57
|
integrationId?: string;
|
|
58
58
|
}
|
|
59
59
|
export interface IWFNProcessor extends IWorkflowNode {
|
|
@@ -2,7 +2,6 @@ import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
|
|
|
2
2
|
import { IChatConversation } from './chat.model';
|
|
3
3
|
import { IKnowledgeDocument } from './knowledge-doc.model';
|
|
4
4
|
import { IKnowledgebase } from './knowledgebase.model';
|
|
5
|
-
import { IXpertAgentExecution } from './xpert-agent-execution.model';
|
|
6
5
|
/**
|
|
7
6
|
* Task executions of a knowledgebase
|
|
8
7
|
*/
|
|
@@ -11,8 +10,6 @@ export interface IKnowledgebaseTask extends IBasePerTenantAndOrganizationEntityM
|
|
|
11
10
|
knowledgebase?: IKnowledgebase;
|
|
12
11
|
conversationId?: string;
|
|
13
12
|
conversation?: IChatConversation;
|
|
14
|
-
executionId?: string;
|
|
15
|
-
execution?: IXpertAgentExecution;
|
|
16
13
|
taskType: string;
|
|
17
14
|
status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled';
|
|
18
15
|
steps: TaskStep[];
|
|
@@ -154,7 +154,7 @@ export declare const KnowledgeTask = "task_id";
|
|
|
154
154
|
/**
|
|
155
155
|
* Specify the data source to run
|
|
156
156
|
*/
|
|
157
|
-
export declare const
|
|
158
|
-
export declare const
|
|
159
|
-
export declare const
|
|
157
|
+
export declare const KnowledgeSources = "sources";
|
|
158
|
+
export declare const KnowledgeDocuments = "documents";
|
|
159
|
+
export declare const KnowledgeFolderId = "folder_id";
|
|
160
160
|
export declare const KNOWLEDGE_STAGE_NAME = "stage";
|
|
@@ -355,7 +355,6 @@ export interface IWFNTask extends IWorkflowNode {
|
|
|
355
355
|
descriptionPrefix?: string;
|
|
356
356
|
descriptionSuffix?: string;
|
|
357
357
|
}
|
|
358
|
-
export declare function genXpertTriggerKey(): string;
|
|
359
358
|
export declare function genListOperatorKey(): string;
|
|
360
359
|
export declare function genVariableAggregatorKey(): string;
|
|
361
360
|
export declare function isAgentKey(key: string): boolean;
|
package/src/ai/xpert.model.d.ts
CHANGED
|
@@ -61,34 +61,13 @@ export type TXpertFeatures = {
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
export type TXpert = {
|
|
64
|
-
/**
|
|
65
|
-
* Unique slug identifier, generated from name
|
|
66
|
-
*/
|
|
67
64
|
slug: string;
|
|
68
|
-
/**
|
|
69
|
-
* Expert name
|
|
70
|
-
*/
|
|
71
65
|
name: string;
|
|
72
|
-
/**
|
|
73
|
-
* Expert type
|
|
74
|
-
*/
|
|
75
66
|
type: XpertTypeEnum;
|
|
76
67
|
title?: string;
|
|
77
|
-
/**
|
|
78
|
-
* @deprecated use title
|
|
79
|
-
*/
|
|
80
68
|
titleCN?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Expert description
|
|
83
|
-
*/
|
|
84
69
|
description?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Is active
|
|
87
|
-
*/
|
|
88
70
|
active?: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Avatar Object
|
|
91
|
-
*/
|
|
92
71
|
avatar?: TAvatar;
|
|
93
72
|
/**
|
|
94
73
|
* Conversation starters
|
|
@@ -124,20 +103,15 @@ export type TXpert = {
|
|
|
124
103
|
*/
|
|
125
104
|
releaseNotes?: string;
|
|
126
105
|
/**
|
|
106
|
+
* Draft on current version
|
|
127
107
|
* Draft on current version
|
|
128
108
|
*/
|
|
129
109
|
draft?: TXpertTeamDraft;
|
|
130
|
-
/**
|
|
131
|
-
* Published graph
|
|
132
|
-
*/
|
|
133
110
|
graph?: TXpertGraph;
|
|
134
111
|
api?: TChatApi;
|
|
135
112
|
app?: TChatApp;
|
|
136
113
|
userId?: string;
|
|
137
114
|
user?: IUser;
|
|
138
|
-
/**
|
|
139
|
-
* Primary agent for this expert
|
|
140
|
-
*/
|
|
141
115
|
agent?: IXpertAgent;
|
|
142
116
|
copilotModel?: ICopilotModel;
|
|
143
117
|
copilotModelId?: string;
|
|
@@ -486,13 +460,7 @@ export type TChatRequest = {
|
|
|
486
460
|
};
|
|
487
461
|
export type TChatOptions = {
|
|
488
462
|
conversationId?: string;
|
|
489
|
-
/**
|
|
490
|
-
* @deprecated
|
|
491
|
-
*/
|
|
492
463
|
knowledgebases?: string[];
|
|
493
|
-
/**
|
|
494
|
-
* @deprecated
|
|
495
|
-
*/
|
|
496
464
|
toolsets?: string[];
|
|
497
465
|
/**
|
|
498
466
|
* The language used by the current browser page
|
|
@@ -81,10 +81,6 @@ export type TIntegrationProvider = {
|
|
|
81
81
|
schema?: TParameterSchema;
|
|
82
82
|
features?: IntegrationFeatureEnum[];
|
|
83
83
|
helpUrl?: string;
|
|
84
|
-
|
|
85
|
-
* Webhook URL generator, for example:
|
|
86
|
-
* `{{apiBaseUrl}}/api/integration/webhook/{{integrationId}}`
|
|
87
|
-
*/
|
|
88
|
-
webhookUrl?: string;
|
|
84
|
+
webhookUrl?: (integration: IIntegration, baseUrl: string) => string;
|
|
89
85
|
pro?: boolean;
|
|
90
86
|
};
|