@yuntijs/arcadia-bff-sdk 1.2.38 → 1.2.39
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 +12 -0
- package/dist/cjs/sdk.d.ts +40 -0
- package/dist/cjs/sdk.js +16 -0
- package/dist/cjs/taro.d.ts +9 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/sdk.d.ts +40 -0
- package/dist/esm/sdk.js +93 -87
- package/dist/esm/taro.d.ts +9 -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/cjs/index.d.ts
CHANGED
|
@@ -211,6 +211,9 @@ export declare const sdk: {
|
|
|
211
211
|
updateAgentKnowledgeBase(variables: import("./sdk").Exact<{
|
|
212
212
|
input: import("./sdk").UpdateAgentKnowledgebaseInput;
|
|
213
213
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentKnowledgeBaseMutation>;
|
|
214
|
+
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
215
|
+
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
216
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
214
217
|
deleteAgentPrompt(variables: import("./sdk").Exact<{
|
|
215
218
|
namespacedname: string;
|
|
216
219
|
ids?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
@@ -554,6 +557,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
554
557
|
updateAgentKnowledgeBase(variables: import("./sdk").Exact<{
|
|
555
558
|
input: import("./sdk").UpdateAgentKnowledgebaseInput;
|
|
556
559
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentKnowledgeBaseMutation>;
|
|
560
|
+
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
561
|
+
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
562
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
557
563
|
deleteAgentPrompt(variables: import("./sdk").Exact<{
|
|
558
564
|
namespacedname: string;
|
|
559
565
|
ids?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
@@ -1049,6 +1055,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1049
1055
|
updateAgentKnowledgeBase(variables: import("./sdk").Exact<{
|
|
1050
1056
|
input: import("./sdk").UpdateAgentKnowledgebaseInput;
|
|
1051
1057
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentKnowledgeBaseMutation>;
|
|
1058
|
+
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
1059
|
+
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
1060
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
1052
1061
|
deleteAgentPrompt(variables: import("./sdk").Exact<{
|
|
1053
1062
|
namespacedname: string;
|
|
1054
1063
|
ids?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
@@ -1544,6 +1553,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1544
1553
|
updateAgentKnowledgeBase(variables: import("./sdk").Exact<{
|
|
1545
1554
|
input: import("./sdk").UpdateAgentKnowledgebaseInput;
|
|
1546
1555
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentKnowledgeBaseMutation>;
|
|
1556
|
+
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
1557
|
+
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
1558
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
1547
1559
|
deleteAgentPrompt(variables: import("./sdk").Exact<{
|
|
1548
1560
|
namespacedname: string;
|
|
1549
1561
|
ids?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
package/dist/cjs/sdk.d.ts
CHANGED
|
@@ -115,6 +115,8 @@ export type Agent = {
|
|
|
115
115
|
temperature?: Maybe<Scalars['Float']['output']>;
|
|
116
116
|
/** userPrompt 用户级别的 Prompt */
|
|
117
117
|
userPrompt?: Maybe<Scalars['String']['output']>;
|
|
118
|
+
/** workflows 使用的工作流列表 */
|
|
119
|
+
workflows?: Maybe<Array<Maybe<Workflow>>>;
|
|
118
120
|
};
|
|
119
121
|
/**
|
|
120
122
|
* Agent
|
|
@@ -191,6 +193,7 @@ export type AgentMutation = {
|
|
|
191
193
|
updateAgentModel?: Maybe<Scalars['Void']['output']>;
|
|
192
194
|
updateAgentPlugin?: Maybe<Scalars['Void']['output']>;
|
|
193
195
|
updateAgentPrompt?: Maybe<Scalars['Void']['output']>;
|
|
196
|
+
updateAgentWorkflow?: Maybe<Scalars['Void']['output']>;
|
|
194
197
|
};
|
|
195
198
|
export type AgentMutationCreateAgentArgs = {
|
|
196
199
|
input: CreateAgentMetadataInput;
|
|
@@ -226,6 +229,9 @@ export type AgentMutationUpdateAgentPluginArgs = {
|
|
|
226
229
|
export type AgentMutationUpdateAgentPromptArgs = {
|
|
227
230
|
input: UpdateAgentPromptInput;
|
|
228
231
|
};
|
|
232
|
+
export type AgentMutationUpdateAgentWorkflowArgs = {
|
|
233
|
+
input: UpdateAgentWorkflowInput;
|
|
234
|
+
};
|
|
229
235
|
export type AgentPrompt = {
|
|
230
236
|
__typename?: 'AgentPrompt';
|
|
231
237
|
content: Scalars['String']['output'];
|
|
@@ -2481,6 +2487,20 @@ export type UpdateAgentPromptInput = {
|
|
|
2481
2487
|
/** userPrompt 用户级别的 Prompt */
|
|
2482
2488
|
userPrompt?: InputMaybe<Scalars['String']['input']>;
|
|
2483
2489
|
};
|
|
2490
|
+
export type UpdateAgentWorkflowInput = {
|
|
2491
|
+
/**
|
|
2492
|
+
* 应用名称, 用于确定要更新哪个应用
|
|
2493
|
+
* 规则: 遵循 k8s 命名
|
|
2494
|
+
*/
|
|
2495
|
+
name: Scalars['String']['input'];
|
|
2496
|
+
/**
|
|
2497
|
+
* 应用所在的 namespace, 用于确定要更新哪个应用
|
|
2498
|
+
* 规则: 非空
|
|
2499
|
+
*/
|
|
2500
|
+
namespace: Scalars['String']['input'];
|
|
2501
|
+
/** workflows 要使用的工作流列表 */
|
|
2502
|
+
workflows?: InputMaybe<Array<InputMaybe<TypedObjectReferenceInput>>>;
|
|
2503
|
+
};
|
|
2484
2504
|
/** 数据集更新的输入 */
|
|
2485
2505
|
export type UpdateDatasetInput = {
|
|
2486
2506
|
annotations?: InputMaybe<Scalars['Map']['input']>;
|
|
@@ -3311,6 +3331,16 @@ export type UpdateAgentKnowledgeBaseMutation = {
|
|
|
3311
3331
|
updateAgentKnowledgeBase?: any | null;
|
|
3312
3332
|
} | null;
|
|
3313
3333
|
};
|
|
3334
|
+
export type UpdateAgentWorkflowMutationVariables = Exact<{
|
|
3335
|
+
input: UpdateAgentWorkflowInput;
|
|
3336
|
+
}>;
|
|
3337
|
+
export type UpdateAgentWorkflowMutation = {
|
|
3338
|
+
__typename?: 'Mutation';
|
|
3339
|
+
Agent?: {
|
|
3340
|
+
__typename?: 'AgentMutation';
|
|
3341
|
+
updateAgentWorkflow?: any | null;
|
|
3342
|
+
} | null;
|
|
3343
|
+
};
|
|
3314
3344
|
export type DeleteAgentPromptMutationVariables = Exact<{
|
|
3315
3345
|
namespacedname: Scalars['String']['input'];
|
|
3316
3346
|
ids?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
@@ -3408,6 +3438,11 @@ export type GetAgentQuery = {
|
|
|
3408
3438
|
name: string;
|
|
3409
3439
|
namespace: string;
|
|
3410
3440
|
} | null> | null;
|
|
3441
|
+
workflows?: Array<{
|
|
3442
|
+
__typename?: 'Workflow';
|
|
3443
|
+
name: string;
|
|
3444
|
+
namespace: string;
|
|
3445
|
+
} | null> | null;
|
|
3411
3446
|
};
|
|
3412
3447
|
} | null;
|
|
3413
3448
|
};
|
|
@@ -7058,6 +7093,7 @@ export declare const UpdateAgentPromptDocument: import("../node_modules/.pnpm/gr
|
|
|
7058
7093
|
export declare const UpdateAgentModelDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7059
7094
|
export declare const UpdateAgentPluginDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7060
7095
|
export declare const UpdateAgentKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7096
|
+
export declare const UpdateAgentWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7061
7097
|
export declare const DeleteAgentPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7062
7098
|
export declare const GetAgentReleaseStatusDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7063
7099
|
export declare const GetAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -7155,6 +7191,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
7155
7191
|
updateAgentModel(variables: UpdateAgentModelMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentModelMutation>;
|
|
7156
7192
|
updateAgentPlugin(variables: UpdateAgentPluginMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentPluginMutation>;
|
|
7157
7193
|
updateAgentKnowledgeBase(variables: UpdateAgentKnowledgeBaseMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentKnowledgeBaseMutation>;
|
|
7194
|
+
updateAgentWorkflow(variables: UpdateAgentWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentWorkflowMutation>;
|
|
7158
7195
|
deleteAgentPrompt(variables: DeleteAgentPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteAgentPromptMutation>;
|
|
7159
7196
|
getAgentReleaseStatus(variables: GetAgentReleaseStatusQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetAgentReleaseStatusQuery>;
|
|
7160
7197
|
getAgent(variables: GetAgentQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetAgentQuery>;
|
|
@@ -7321,6 +7358,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
7321
7358
|
updateAgentKnowledgeBase(variables: Exact<{
|
|
7322
7359
|
input: UpdateAgentKnowledgebaseInput;
|
|
7323
7360
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateAgentKnowledgeBaseMutation>;
|
|
7361
|
+
updateAgentWorkflow(variables: Exact<{
|
|
7362
|
+
input: UpdateAgentWorkflowInput;
|
|
7363
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateAgentWorkflowMutation>;
|
|
7324
7364
|
deleteAgentPrompt(variables: Exact<{
|
|
7325
7365
|
namespacedname: string;
|
|
7326
7366
|
ids?: InputMaybe<string | string[]> | undefined;
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -112,6 +112,7 @@ __export(sdk_exports, {
|
|
|
112
112
|
UpdateAgentModelDocument: () => UpdateAgentModelDocument,
|
|
113
113
|
UpdateAgentPluginDocument: () => UpdateAgentPluginDocument,
|
|
114
114
|
UpdateAgentPromptDocument: () => UpdateAgentPromptDocument,
|
|
115
|
+
UpdateAgentWorkflowDocument: () => UpdateAgentWorkflowDocument,
|
|
115
116
|
UpdateDatasetDocument: () => UpdateDatasetDocument,
|
|
116
117
|
UpdateDatasourceDocument: () => UpdateDatasourceDocument,
|
|
117
118
|
UpdateEmbedderDocument: () => UpdateEmbedderDocument,
|
|
@@ -259,6 +260,13 @@ var UpdateAgentKnowledgeBaseDocument = import_graphql_tag.default`
|
|
|
259
260
|
}
|
|
260
261
|
}
|
|
261
262
|
`;
|
|
263
|
+
var UpdateAgentWorkflowDocument = import_graphql_tag.default`
|
|
264
|
+
mutation updateAgentWorkflow($input: UpdateAgentWorkflowInput!) {
|
|
265
|
+
Agent {
|
|
266
|
+
updateAgentWorkflow(input: $input)
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
`;
|
|
262
270
|
var DeleteAgentPromptDocument = import_graphql_tag.default`
|
|
263
271
|
mutation deleteAgentPrompt($namespacedname: String!, $ids: [String!]) {
|
|
264
272
|
Agent {
|
|
@@ -335,6 +343,10 @@ var GetAgentDocument = import_graphql_tag.default`
|
|
|
335
343
|
name
|
|
336
344
|
namespace
|
|
337
345
|
}
|
|
346
|
+
workflows {
|
|
347
|
+
name
|
|
348
|
+
namespace
|
|
349
|
+
}
|
|
338
350
|
}
|
|
339
351
|
}
|
|
340
352
|
}
|
|
@@ -2628,6 +2640,9 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2628
2640
|
updateAgentKnowledgeBase(variables, requestHeaders) {
|
|
2629
2641
|
return withWrapper((wrappedRequestHeaders) => client.request(UpdateAgentKnowledgeBaseDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "updateAgentKnowledgeBase", "mutation", variables);
|
|
2630
2642
|
},
|
|
2643
|
+
updateAgentWorkflow(variables, requestHeaders) {
|
|
2644
|
+
return withWrapper((wrappedRequestHeaders) => client.request(UpdateAgentWorkflowDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "updateAgentWorkflow", "mutation", variables);
|
|
2645
|
+
},
|
|
2631
2646
|
deleteAgentPrompt(variables, requestHeaders) {
|
|
2632
2647
|
return withWrapper((wrappedRequestHeaders) => client.request(DeleteAgentPromptDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "deleteAgentPrompt", "mutation", variables);
|
|
2633
2648
|
},
|
|
@@ -3121,6 +3136,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
3121
3136
|
UpdateAgentModelDocument,
|
|
3122
3137
|
UpdateAgentPluginDocument,
|
|
3123
3138
|
UpdateAgentPromptDocument,
|
|
3139
|
+
UpdateAgentWorkflowDocument,
|
|
3124
3140
|
UpdateDatasetDocument,
|
|
3125
3141
|
UpdateDatasourceDocument,
|
|
3126
3142
|
UpdateEmbedderDocument,
|
package/dist/cjs/taro.d.ts
CHANGED
|
@@ -62,6 +62,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
62
62
|
updateAgentKnowledgeBase(variables: import("./sdk").Exact<{
|
|
63
63
|
input: import("./sdk").UpdateAgentKnowledgebaseInput;
|
|
64
64
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentKnowledgeBaseMutation>;
|
|
65
|
+
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
66
|
+
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
67
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
65
68
|
deleteAgentPrompt(variables: import("./sdk").Exact<{
|
|
66
69
|
namespacedname: string;
|
|
67
70
|
ids?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
@@ -557,6 +560,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
557
560
|
updateAgentKnowledgeBase(variables: import("./sdk").Exact<{
|
|
558
561
|
input: import("./sdk").UpdateAgentKnowledgebaseInput;
|
|
559
562
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentKnowledgeBaseMutation>;
|
|
563
|
+
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
564
|
+
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
565
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
560
566
|
deleteAgentPrompt(variables: import("./sdk").Exact<{
|
|
561
567
|
namespacedname: string;
|
|
562
568
|
ids?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
@@ -1052,6 +1058,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1052
1058
|
updateAgentKnowledgeBase(variables: import("./sdk").Exact<{
|
|
1053
1059
|
input: import("./sdk").UpdateAgentKnowledgebaseInput;
|
|
1054
1060
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentKnowledgeBaseMutation>;
|
|
1061
|
+
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
1062
|
+
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
1063
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
1055
1064
|
deleteAgentPrompt(variables: import("./sdk").Exact<{
|
|
1056
1065
|
namespacedname: string;
|
|
1057
1066
|
ids?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -211,6 +211,9 @@ export declare const sdk: {
|
|
|
211
211
|
updateAgentKnowledgeBase(variables: import("./sdk").Exact<{
|
|
212
212
|
input: import("./sdk").UpdateAgentKnowledgebaseInput;
|
|
213
213
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentKnowledgeBaseMutation>;
|
|
214
|
+
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
215
|
+
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
216
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
214
217
|
deleteAgentPrompt(variables: import("./sdk").Exact<{
|
|
215
218
|
namespacedname: string;
|
|
216
219
|
ids?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
@@ -554,6 +557,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
554
557
|
updateAgentKnowledgeBase(variables: import("./sdk").Exact<{
|
|
555
558
|
input: import("./sdk").UpdateAgentKnowledgebaseInput;
|
|
556
559
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentKnowledgeBaseMutation>;
|
|
560
|
+
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
561
|
+
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
562
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
557
563
|
deleteAgentPrompt(variables: import("./sdk").Exact<{
|
|
558
564
|
namespacedname: string;
|
|
559
565
|
ids?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
@@ -1049,6 +1055,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1049
1055
|
updateAgentKnowledgeBase(variables: import("./sdk").Exact<{
|
|
1050
1056
|
input: import("./sdk").UpdateAgentKnowledgebaseInput;
|
|
1051
1057
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentKnowledgeBaseMutation>;
|
|
1058
|
+
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
1059
|
+
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
1060
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
1052
1061
|
deleteAgentPrompt(variables: import("./sdk").Exact<{
|
|
1053
1062
|
namespacedname: string;
|
|
1054
1063
|
ids?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
@@ -1544,6 +1553,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1544
1553
|
updateAgentKnowledgeBase(variables: import("./sdk").Exact<{
|
|
1545
1554
|
input: import("./sdk").UpdateAgentKnowledgebaseInput;
|
|
1546
1555
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentKnowledgeBaseMutation>;
|
|
1556
|
+
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
1557
|
+
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
1558
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
1547
1559
|
deleteAgentPrompt(variables: import("./sdk").Exact<{
|
|
1548
1560
|
namespacedname: string;
|
|
1549
1561
|
ids?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -115,6 +115,8 @@ export type Agent = {
|
|
|
115
115
|
temperature?: Maybe<Scalars['Float']['output']>;
|
|
116
116
|
/** userPrompt 用户级别的 Prompt */
|
|
117
117
|
userPrompt?: Maybe<Scalars['String']['output']>;
|
|
118
|
+
/** workflows 使用的工作流列表 */
|
|
119
|
+
workflows?: Maybe<Array<Maybe<Workflow>>>;
|
|
118
120
|
};
|
|
119
121
|
/**
|
|
120
122
|
* Agent
|
|
@@ -191,6 +193,7 @@ export type AgentMutation = {
|
|
|
191
193
|
updateAgentModel?: Maybe<Scalars['Void']['output']>;
|
|
192
194
|
updateAgentPlugin?: Maybe<Scalars['Void']['output']>;
|
|
193
195
|
updateAgentPrompt?: Maybe<Scalars['Void']['output']>;
|
|
196
|
+
updateAgentWorkflow?: Maybe<Scalars['Void']['output']>;
|
|
194
197
|
};
|
|
195
198
|
export type AgentMutationCreateAgentArgs = {
|
|
196
199
|
input: CreateAgentMetadataInput;
|
|
@@ -226,6 +229,9 @@ export type AgentMutationUpdateAgentPluginArgs = {
|
|
|
226
229
|
export type AgentMutationUpdateAgentPromptArgs = {
|
|
227
230
|
input: UpdateAgentPromptInput;
|
|
228
231
|
};
|
|
232
|
+
export type AgentMutationUpdateAgentWorkflowArgs = {
|
|
233
|
+
input: UpdateAgentWorkflowInput;
|
|
234
|
+
};
|
|
229
235
|
export type AgentPrompt = {
|
|
230
236
|
__typename?: 'AgentPrompt';
|
|
231
237
|
content: Scalars['String']['output'];
|
|
@@ -2481,6 +2487,20 @@ export type UpdateAgentPromptInput = {
|
|
|
2481
2487
|
/** userPrompt 用户级别的 Prompt */
|
|
2482
2488
|
userPrompt?: InputMaybe<Scalars['String']['input']>;
|
|
2483
2489
|
};
|
|
2490
|
+
export type UpdateAgentWorkflowInput = {
|
|
2491
|
+
/**
|
|
2492
|
+
* 应用名称, 用于确定要更新哪个应用
|
|
2493
|
+
* 规则: 遵循 k8s 命名
|
|
2494
|
+
*/
|
|
2495
|
+
name: Scalars['String']['input'];
|
|
2496
|
+
/**
|
|
2497
|
+
* 应用所在的 namespace, 用于确定要更新哪个应用
|
|
2498
|
+
* 规则: 非空
|
|
2499
|
+
*/
|
|
2500
|
+
namespace: Scalars['String']['input'];
|
|
2501
|
+
/** workflows 要使用的工作流列表 */
|
|
2502
|
+
workflows?: InputMaybe<Array<InputMaybe<TypedObjectReferenceInput>>>;
|
|
2503
|
+
};
|
|
2484
2504
|
/** 数据集更新的输入 */
|
|
2485
2505
|
export type UpdateDatasetInput = {
|
|
2486
2506
|
annotations?: InputMaybe<Scalars['Map']['input']>;
|
|
@@ -3311,6 +3331,16 @@ export type UpdateAgentKnowledgeBaseMutation = {
|
|
|
3311
3331
|
updateAgentKnowledgeBase?: any | null;
|
|
3312
3332
|
} | null;
|
|
3313
3333
|
};
|
|
3334
|
+
export type UpdateAgentWorkflowMutationVariables = Exact<{
|
|
3335
|
+
input: UpdateAgentWorkflowInput;
|
|
3336
|
+
}>;
|
|
3337
|
+
export type UpdateAgentWorkflowMutation = {
|
|
3338
|
+
__typename?: 'Mutation';
|
|
3339
|
+
Agent?: {
|
|
3340
|
+
__typename?: 'AgentMutation';
|
|
3341
|
+
updateAgentWorkflow?: any | null;
|
|
3342
|
+
} | null;
|
|
3343
|
+
};
|
|
3314
3344
|
export type DeleteAgentPromptMutationVariables = Exact<{
|
|
3315
3345
|
namespacedname: Scalars['String']['input'];
|
|
3316
3346
|
ids?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
@@ -3408,6 +3438,11 @@ export type GetAgentQuery = {
|
|
|
3408
3438
|
name: string;
|
|
3409
3439
|
namespace: string;
|
|
3410
3440
|
} | null> | null;
|
|
3441
|
+
workflows?: Array<{
|
|
3442
|
+
__typename?: 'Workflow';
|
|
3443
|
+
name: string;
|
|
3444
|
+
namespace: string;
|
|
3445
|
+
} | null> | null;
|
|
3411
3446
|
};
|
|
3412
3447
|
} | null;
|
|
3413
3448
|
};
|
|
@@ -7058,6 +7093,7 @@ export declare const UpdateAgentPromptDocument: import("../node_modules/.pnpm/gr
|
|
|
7058
7093
|
export declare const UpdateAgentModelDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7059
7094
|
export declare const UpdateAgentPluginDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7060
7095
|
export declare const UpdateAgentKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7096
|
+
export declare const UpdateAgentWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7061
7097
|
export declare const DeleteAgentPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7062
7098
|
export declare const GetAgentReleaseStatusDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7063
7099
|
export declare const GetAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -7155,6 +7191,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
7155
7191
|
updateAgentModel(variables: UpdateAgentModelMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentModelMutation>;
|
|
7156
7192
|
updateAgentPlugin(variables: UpdateAgentPluginMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentPluginMutation>;
|
|
7157
7193
|
updateAgentKnowledgeBase(variables: UpdateAgentKnowledgeBaseMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentKnowledgeBaseMutation>;
|
|
7194
|
+
updateAgentWorkflow(variables: UpdateAgentWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentWorkflowMutation>;
|
|
7158
7195
|
deleteAgentPrompt(variables: DeleteAgentPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteAgentPromptMutation>;
|
|
7159
7196
|
getAgentReleaseStatus(variables: GetAgentReleaseStatusQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetAgentReleaseStatusQuery>;
|
|
7160
7197
|
getAgent(variables: GetAgentQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetAgentQuery>;
|
|
@@ -7321,6 +7358,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
7321
7358
|
updateAgentKnowledgeBase(variables: Exact<{
|
|
7322
7359
|
input: UpdateAgentKnowledgebaseInput;
|
|
7323
7360
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateAgentKnowledgeBaseMutation>;
|
|
7361
|
+
updateAgentWorkflow(variables: Exact<{
|
|
7362
|
+
input: UpdateAgentWorkflowInput;
|
|
7363
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateAgentWorkflowMutation>;
|
|
7324
7364
|
deleteAgentPrompt(variables: Exact<{
|
|
7325
7365
|
namespacedname: string;
|
|
7326
7366
|
ids?: InputMaybe<string | string[]> | undefined;
|