@yuntijs/arcadia-bff-sdk 1.2.83 → 1.2.85
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/cjs/index.d.ts +48 -0
- package/dist/cjs/sdk.d.ts +76 -2
- package/dist/cjs/sdk.js +49 -0
- package/dist/cjs/taro.d.ts +36 -0
- package/dist/esm/index.d.ts +48 -0
- package/dist/esm/sdk.d.ts +76 -2
- package/dist/esm/sdk.js +142 -124
- package/dist/esm/taro.d.ts +36 -0
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -208,6 +208,9 @@ export type AgentMutation = {
|
|
|
208
208
|
createOrUpdateAgentPrompt?: Maybe<Scalars['Void']['output']>;
|
|
209
209
|
deleteAgent?: Maybe<Scalars['Void']['output']>;
|
|
210
210
|
deleteAgentPrompt?: Maybe<Scalars['Void']['output']>;
|
|
211
|
+
generateAgentPrologue: Scalars['String']['output'];
|
|
212
|
+
generateAgentSystemPrompt: Scalars['String']['output'];
|
|
213
|
+
generatesAgentUserPrompt: Scalars['String']['output'];
|
|
211
214
|
releaseAgent: AgentMetadata;
|
|
212
215
|
updateAgent: AgentMetadata;
|
|
213
216
|
updateAgentKnowledgeBase?: Maybe<Scalars['Void']['output']>;
|
|
@@ -230,6 +233,18 @@ export type AgentMutationDeleteAgentPromptArgs = {
|
|
|
230
233
|
ids?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
231
234
|
namespacedname: Scalars['String']['input'];
|
|
232
235
|
};
|
|
236
|
+
export type AgentMutationGenerateAgentPrologueArgs = {
|
|
237
|
+
currentPrologue: Scalars['String']['input'];
|
|
238
|
+
namespacedname: Scalars['String']['input'];
|
|
239
|
+
};
|
|
240
|
+
export type AgentMutationGenerateAgentSystemPromptArgs = {
|
|
241
|
+
currentSystemPrompt: Scalars['String']['input'];
|
|
242
|
+
namespacedname: Scalars['String']['input'];
|
|
243
|
+
};
|
|
244
|
+
export type AgentMutationGeneratesAgentUserPromptArgs = {
|
|
245
|
+
currentUserPrompt: Scalars['String']['input'];
|
|
246
|
+
namespacedname: Scalars['String']['input'];
|
|
247
|
+
};
|
|
233
248
|
export type AgentMutationReleaseAgentArgs = {
|
|
234
249
|
input: ReleaseAgentInput;
|
|
235
250
|
name: Scalars['String']['input'];
|
|
@@ -525,7 +540,7 @@ export type CreateKnowledgeBaseInput = {
|
|
|
525
540
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
526
541
|
/** 知识库资源展示名称作为显示,并提供编辑 */
|
|
527
542
|
displayName?: InputMaybe<Scalars['String']['input']>;
|
|
528
|
-
/** embedder指当前知识库使用的embedding
|
|
543
|
+
/** embedder指当前知识库使用的embedding向量化模型所属的embedder */
|
|
529
544
|
embedder: TypedObjectReferenceInput;
|
|
530
545
|
/** headers结构化数据列 */
|
|
531
546
|
headers?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
@@ -533,6 +548,8 @@ export type CreateKnowledgeBaseInput = {
|
|
|
533
548
|
indexHeader?: InputMaybe<Scalars['Int']['input']>;
|
|
534
549
|
/** 知识库资源标签 */
|
|
535
550
|
labels?: InputMaybe<Scalars['Map']['input']>;
|
|
551
|
+
/** model指当前知识库具体使用的向量化模型ID */
|
|
552
|
+
model: Scalars['String']['input'];
|
|
536
553
|
/** 知识库资源名称(不可同名) */
|
|
537
554
|
name: Scalars['String']['input'];
|
|
538
555
|
/** 知识库创建命名空间 */
|
|
@@ -1406,7 +1423,7 @@ export type KnowledgeBase = {
|
|
|
1406
1423
|
description?: Maybe<Scalars['String']['output']>;
|
|
1407
1424
|
/** 展示名 */
|
|
1408
1425
|
displayName?: Maybe<Scalars['String']['output']>;
|
|
1409
|
-
/** embedder指当前知识库使用的embedding
|
|
1426
|
+
/** embedder指当前知识库使用的embedding向量化模型资源,即 Kind 为 Embedder */
|
|
1410
1427
|
embedder?: Maybe<TypedObjectReference>;
|
|
1411
1428
|
embedderType?: Maybe<Scalars['String']['output']>;
|
|
1412
1429
|
/** 结构化知识库:headers */
|
|
@@ -1419,6 +1436,8 @@ export type KnowledgeBase = {
|
|
|
1419
1436
|
labels?: Maybe<Scalars['Map']['output']>;
|
|
1420
1437
|
/** 知识库状态的原因的详细内容 */
|
|
1421
1438
|
message?: Maybe<Scalars['String']['output']>;
|
|
1439
|
+
/** model指当前知识库所使用的向量化模型(embedder可能包含多个,默认使用第一个) */
|
|
1440
|
+
model: Scalars['String']['output'];
|
|
1422
1441
|
/**
|
|
1423
1442
|
* 名称
|
|
1424
1443
|
* 规则: 遵循k8s命名
|
|
@@ -3933,6 +3952,39 @@ export type DeleteAgentPromptMutation = {
|
|
|
3933
3952
|
deleteAgentPrompt?: any | null;
|
|
3934
3953
|
} | null;
|
|
3935
3954
|
};
|
|
3955
|
+
export type GenerateAgentSystemPromptMutationVariables = Exact<{
|
|
3956
|
+
namespacedname: Scalars['String']['input'];
|
|
3957
|
+
currentSystemPrompt: Scalars['String']['input'];
|
|
3958
|
+
}>;
|
|
3959
|
+
export type GenerateAgentSystemPromptMutation = {
|
|
3960
|
+
__typename?: 'Mutation';
|
|
3961
|
+
Agent?: {
|
|
3962
|
+
__typename?: 'AgentMutation';
|
|
3963
|
+
generateAgentSystemPrompt: string;
|
|
3964
|
+
} | null;
|
|
3965
|
+
};
|
|
3966
|
+
export type GenerateAgentPrologueMutationVariables = Exact<{
|
|
3967
|
+
namespacedname: Scalars['String']['input'];
|
|
3968
|
+
currentPrologue: Scalars['String']['input'];
|
|
3969
|
+
}>;
|
|
3970
|
+
export type GenerateAgentPrologueMutation = {
|
|
3971
|
+
__typename?: 'Mutation';
|
|
3972
|
+
Agent?: {
|
|
3973
|
+
__typename?: 'AgentMutation';
|
|
3974
|
+
generateAgentPrologue: string;
|
|
3975
|
+
} | null;
|
|
3976
|
+
};
|
|
3977
|
+
export type GeneratesAgentUserPromptMutationVariables = Exact<{
|
|
3978
|
+
namespacedname: Scalars['String']['input'];
|
|
3979
|
+
currentUserPrompt: Scalars['String']['input'];
|
|
3980
|
+
}>;
|
|
3981
|
+
export type GeneratesAgentUserPromptMutation = {
|
|
3982
|
+
__typename?: 'Mutation';
|
|
3983
|
+
Agent?: {
|
|
3984
|
+
__typename?: 'AgentMutation';
|
|
3985
|
+
generatesAgentUserPrompt: string;
|
|
3986
|
+
} | null;
|
|
3987
|
+
};
|
|
3936
3988
|
export type GetAgentReleaseStatusQueryVariables = Exact<{
|
|
3937
3989
|
name: Scalars['String']['input'];
|
|
3938
3990
|
namespace: Scalars['String']['input'];
|
|
@@ -5404,6 +5456,7 @@ export type ListKnowledgeBasesQuery = {
|
|
|
5404
5456
|
message?: string | null;
|
|
5405
5457
|
updateTimestamp?: any | null;
|
|
5406
5458
|
embedderType?: string | null;
|
|
5459
|
+
model: string;
|
|
5407
5460
|
embedder?: {
|
|
5408
5461
|
__typename?: 'TypedObjectReference';
|
|
5409
5462
|
kind: string;
|
|
@@ -5490,6 +5543,7 @@ export type GetKnowledgeBaseQuery = {
|
|
|
5490
5543
|
message?: string | null;
|
|
5491
5544
|
updateTimestamp?: any | null;
|
|
5492
5545
|
embedderType?: string | null;
|
|
5546
|
+
model: string;
|
|
5493
5547
|
embedder?: {
|
|
5494
5548
|
__typename?: 'TypedObjectReference';
|
|
5495
5549
|
kind: string;
|
|
@@ -5533,6 +5587,7 @@ export type CreateKnowledgeBaseMutation = {
|
|
|
5533
5587
|
reason?: string | null;
|
|
5534
5588
|
message?: string | null;
|
|
5535
5589
|
updateTimestamp?: any | null;
|
|
5590
|
+
model: string;
|
|
5536
5591
|
embedderType?: string | null;
|
|
5537
5592
|
embedder?: {
|
|
5538
5593
|
__typename?: 'TypedObjectReference';
|
|
@@ -5577,6 +5632,7 @@ export type UpdateKnowledgeBaseMutation = {
|
|
|
5577
5632
|
reason?: string | null;
|
|
5578
5633
|
message?: string | null;
|
|
5579
5634
|
updateTimestamp?: any | null;
|
|
5635
|
+
model: string;
|
|
5580
5636
|
embedderType?: string | null;
|
|
5581
5637
|
embedder?: {
|
|
5582
5638
|
__typename?: 'TypedObjectReference';
|
|
@@ -9638,6 +9694,9 @@ export declare const UpdateAgentPluginDocument: import("../node_modules/.pnpm/gr
|
|
|
9638
9694
|
export declare const UpdateAgentKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9639
9695
|
export declare const UpdateAgentWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9640
9696
|
export declare const DeleteAgentPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9697
|
+
export declare const GenerateAgentSystemPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9698
|
+
export declare const GenerateAgentPrologueDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9699
|
+
export declare const GeneratesAgentUserPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9641
9700
|
export declare const GetAgentReleaseStatusDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9642
9701
|
export declare const GetAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9643
9702
|
export declare const GetAgentLatestReleaseInEachPlatformDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -9774,6 +9833,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
9774
9833
|
updateAgentKnowledgeBase(variables: UpdateAgentKnowledgeBaseMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentKnowledgeBaseMutation>;
|
|
9775
9834
|
updateAgentWorkflow(variables: UpdateAgentWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentWorkflowMutation>;
|
|
9776
9835
|
deleteAgentPrompt(variables: DeleteAgentPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteAgentPromptMutation>;
|
|
9836
|
+
generateAgentSystemPrompt(variables: GenerateAgentSystemPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<GenerateAgentSystemPromptMutation>;
|
|
9837
|
+
generateAgentPrologue(variables: GenerateAgentPrologueMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<GenerateAgentPrologueMutation>;
|
|
9838
|
+
generatesAgentUserPrompt(variables: GeneratesAgentUserPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<GeneratesAgentUserPromptMutation>;
|
|
9777
9839
|
getAgentReleaseStatus(variables: GetAgentReleaseStatusQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetAgentReleaseStatusQuery>;
|
|
9778
9840
|
getAgent(variables: GetAgentQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetAgentQuery>;
|
|
9779
9841
|
getAgentLatestReleaseInEachPlatform(variables: GetAgentLatestReleaseInEachPlatformQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetAgentLatestReleaseInEachPlatformQuery>;
|
|
@@ -10002,6 +10064,18 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
10002
10064
|
namespacedname: string;
|
|
10003
10065
|
ids?: InputMaybe<string | string[]> | undefined;
|
|
10004
10066
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<DeleteAgentPromptMutation>;
|
|
10067
|
+
generateAgentSystemPrompt(variables: Exact<{
|
|
10068
|
+
namespacedname: string;
|
|
10069
|
+
currentSystemPrompt: string;
|
|
10070
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GenerateAgentSystemPromptMutation>;
|
|
10071
|
+
generateAgentPrologue(variables: Exact<{
|
|
10072
|
+
namespacedname: string;
|
|
10073
|
+
currentPrologue: string;
|
|
10074
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GenerateAgentPrologueMutation>;
|
|
10075
|
+
generatesAgentUserPrompt(variables: Exact<{
|
|
10076
|
+
namespacedname: string;
|
|
10077
|
+
currentUserPrompt: string;
|
|
10078
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GeneratesAgentUserPromptMutation>;
|
|
10005
10079
|
getAgentReleaseStatus(variables: Exact<{
|
|
10006
10080
|
name: string;
|
|
10007
10081
|
namespace: string;
|