@yuntijs/arcadia-bff-sdk 1.2.153 → 1.2.154
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 +59 -2
- package/dist/cjs/sdk.js +20 -0
- package/dist/cjs/taro.d.ts +9 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/sdk.d.ts +59 -2
- package/dist/esm/sdk.js +147 -141
- 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
|
@@ -290,6 +290,9 @@ export declare const sdk: {
|
|
|
290
290
|
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
291
291
|
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
292
292
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
293
|
+
updateAgentMCPServerConfig(variables: import("./sdk").Exact<{
|
|
294
|
+
input: import("./sdk").UpdateAgentMcpServerConfigInput;
|
|
295
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentMcpServerConfigMutation>;
|
|
293
296
|
updateAgentReranker(variables: import("./sdk").Exact<{
|
|
294
297
|
input: import("./sdk").UpdateAgentRerankerInput;
|
|
295
298
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentRerankerMutation>;
|
|
@@ -828,6 +831,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
828
831
|
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
829
832
|
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
830
833
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
834
|
+
updateAgentMCPServerConfig(variables: import("./sdk").Exact<{
|
|
835
|
+
input: import("./sdk").UpdateAgentMcpServerConfigInput;
|
|
836
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentMcpServerConfigMutation>;
|
|
831
837
|
updateAgentReranker(variables: import("./sdk").Exact<{
|
|
832
838
|
input: import("./sdk").UpdateAgentRerankerInput;
|
|
833
839
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentRerankerMutation>;
|
|
@@ -1584,6 +1590,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1584
1590
|
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
1585
1591
|
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
1586
1592
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
1593
|
+
updateAgentMCPServerConfig(variables: import("./sdk").Exact<{
|
|
1594
|
+
input: import("./sdk").UpdateAgentMcpServerConfigInput;
|
|
1595
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentMcpServerConfigMutation>;
|
|
1587
1596
|
updateAgentReranker(variables: import("./sdk").Exact<{
|
|
1588
1597
|
input: import("./sdk").UpdateAgentRerankerInput;
|
|
1589
1598
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentRerankerMutation>;
|
|
@@ -2340,6 +2349,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2340
2349
|
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
2341
2350
|
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
2342
2351
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
2352
|
+
updateAgentMCPServerConfig(variables: import("./sdk").Exact<{
|
|
2353
|
+
input: import("./sdk").UpdateAgentMcpServerConfigInput;
|
|
2354
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentMcpServerConfigMutation>;
|
|
2343
2355
|
updateAgentReranker(variables: import("./sdk").Exact<{
|
|
2344
2356
|
input: import("./sdk").UpdateAgentRerankerInput;
|
|
2345
2357
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentRerankerMutation>;
|
package/dist/cjs/sdk.d.ts
CHANGED
|
@@ -106,6 +106,8 @@ export type Agent = {
|
|
|
106
106
|
maxLength?: Maybe<Scalars['Int']['output']>;
|
|
107
107
|
/** maxTokens 最大输出token */
|
|
108
108
|
maxTokens?: Maybe<Scalars['Int']['output']>;
|
|
109
|
+
/** mcpServerToolConfigs mcp server 工具配置列表 */
|
|
110
|
+
mcpServerToolConfigs?: Maybe<Array<Maybe<McpServerToolConfig>>>;
|
|
109
111
|
/** Applicatioin的基本信息 */
|
|
110
112
|
metadata?: Maybe<AgentMetadata>;
|
|
111
113
|
/** model 指具体使用的模型名称,比如 gpt-3.5-turbo 或者 chatglm_turbo */
|
|
@@ -296,6 +298,7 @@ export type AgentMutation = {
|
|
|
296
298
|
updateAgentAudioConfig?: Maybe<Scalars['Void']['output']>;
|
|
297
299
|
updateAgentBoxEngineConfig?: Maybe<Scalars['Void']['output']>;
|
|
298
300
|
updateAgentKnowledgeBase?: Maybe<Scalars['Void']['output']>;
|
|
301
|
+
updateAgentMCPServerConfig?: Maybe<Scalars['Void']['output']>;
|
|
299
302
|
updateAgentModeConfig?: Maybe<Scalars['Void']['output']>;
|
|
300
303
|
updateAgentModel?: Maybe<Scalars['Void']['output']>;
|
|
301
304
|
updateAgentPlugin?: Maybe<Scalars['Void']['output']>;
|
|
@@ -349,6 +352,9 @@ export type AgentMutationUpdateAgentBoxEngineConfigArgs = {
|
|
|
349
352
|
export type AgentMutationUpdateAgentKnowledgeBaseArgs = {
|
|
350
353
|
input: UpdateAgentKnowledgebaseInput;
|
|
351
354
|
};
|
|
355
|
+
export type AgentMutationUpdateAgentMcpServerConfigArgs = {
|
|
356
|
+
input: UpdateAgentMcpServerConfigInput;
|
|
357
|
+
};
|
|
352
358
|
export type AgentMutationUpdateAgentModeConfigArgs = {
|
|
353
359
|
input: UpdateAgentModeConfigInput;
|
|
354
360
|
};
|
|
@@ -2163,6 +2169,21 @@ export type ListWorkflowInput = {
|
|
|
2163
2169
|
*/
|
|
2164
2170
|
pageSize?: InputMaybe<Scalars['Int']['input']>;
|
|
2165
2171
|
};
|
|
2172
|
+
export type McpServerConfigInput = {
|
|
2173
|
+
/** 要配置的 MCP Server 的名称 */
|
|
2174
|
+
mcpServerName: Scalars['String']['input'];
|
|
2175
|
+
/** 要配置的 MCP Server 的 namespace */
|
|
2176
|
+
mcpServerNamespace: Scalars['String']['input'];
|
|
2177
|
+
/** 要配置的工具参数列表 */
|
|
2178
|
+
toolConfigs?: InputMaybe<Array<InputMaybe<ToolConfigInput>>>;
|
|
2179
|
+
};
|
|
2180
|
+
export type McpServerToolConfig = {
|
|
2181
|
+
__typename?: 'MCPServerToolConfig';
|
|
2182
|
+
mcpServerName: Scalars['String']['output'];
|
|
2183
|
+
mcpServerNamespace: Scalars['String']['output'];
|
|
2184
|
+
params?: Maybe<Scalars['String']['output']>;
|
|
2185
|
+
toolName: Scalars['String']['output'];
|
|
2186
|
+
};
|
|
2166
2187
|
/** 模型 */
|
|
2167
2188
|
export type Model = {
|
|
2168
2189
|
__typename?: 'Model';
|
|
@@ -3173,9 +3194,9 @@ export type ToolConfig = {
|
|
|
3173
3194
|
toolName: Scalars['String']['output'];
|
|
3174
3195
|
};
|
|
3175
3196
|
export type ToolConfigInput = {
|
|
3176
|
-
/** params 工具(API)对应的参数的 JSON 字符串, 非必填 */
|
|
3197
|
+
/** params 工具(API/MCP)对应的参数的 JSON 字符串, 非必填 */
|
|
3177
3198
|
params?: InputMaybe<Scalars['String']['input']>;
|
|
3178
|
-
/** toolName 工具(API)名称 */
|
|
3199
|
+
/** toolName 工具(API/MCP)名称 */
|
|
3179
3200
|
toolName: Scalars['String']['input'];
|
|
3180
3201
|
};
|
|
3181
3202
|
export type TuningDataSet = {
|
|
@@ -3388,6 +3409,20 @@ export type UpdateAgentKnowledgebaseInput = {
|
|
|
3388
3409
|
*/
|
|
3389
3410
|
searchMode?: InputMaybe<Scalars['String']['input']>;
|
|
3390
3411
|
};
|
|
3412
|
+
export type UpdateAgentMcpServerConfigInput = {
|
|
3413
|
+
/** 为 Agent 配置的 MCP Server Tool 的列表 */
|
|
3414
|
+
mcpServerToolConfigs?: InputMaybe<Array<InputMaybe<McpServerConfigInput>>>;
|
|
3415
|
+
/**
|
|
3416
|
+
* 应用名称, 用于确定要更新哪个 Agent 应用
|
|
3417
|
+
* 规则: 遵循 k8s 命名
|
|
3418
|
+
*/
|
|
3419
|
+
name: Scalars['String']['input'];
|
|
3420
|
+
/**
|
|
3421
|
+
* 应用所在的 namespace, 用于确定要更新哪个 Agent 应用
|
|
3422
|
+
* 规则: 非空
|
|
3423
|
+
*/
|
|
3424
|
+
namespace: Scalars['String']['input'];
|
|
3425
|
+
};
|
|
3391
3426
|
export type UpdateAgentMetadataInput = {
|
|
3392
3427
|
/** Background, 智能体对话背景,图片访问路径 */
|
|
3393
3428
|
background?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -4454,6 +4489,16 @@ export type UpdateAgentWorkflowMutation = {
|
|
|
4454
4489
|
updateAgentWorkflow?: any | null;
|
|
4455
4490
|
} | null;
|
|
4456
4491
|
};
|
|
4492
|
+
export type UpdateAgentMcpServerConfigMutationVariables = Exact<{
|
|
4493
|
+
input: UpdateAgentMcpServerConfigInput;
|
|
4494
|
+
}>;
|
|
4495
|
+
export type UpdateAgentMcpServerConfigMutation = {
|
|
4496
|
+
__typename?: 'Mutation';
|
|
4497
|
+
Agent?: {
|
|
4498
|
+
__typename?: 'AgentMutation';
|
|
4499
|
+
updateAgentMCPServerConfig?: any | null;
|
|
4500
|
+
} | null;
|
|
4501
|
+
};
|
|
4457
4502
|
export type UpdateAgentRerankerMutationVariables = Exact<{
|
|
4458
4503
|
input: UpdateAgentRerankerInput;
|
|
4459
4504
|
}>;
|
|
@@ -4645,6 +4690,13 @@ export type GetAgentQuery = {
|
|
|
4645
4690
|
name: string;
|
|
4646
4691
|
namespace: string;
|
|
4647
4692
|
} | null> | null;
|
|
4693
|
+
mcpServerToolConfigs?: Array<{
|
|
4694
|
+
__typename?: 'MCPServerToolConfig';
|
|
4695
|
+
mcpServerName: string;
|
|
4696
|
+
mcpServerNamespace: string;
|
|
4697
|
+
toolName: string;
|
|
4698
|
+
params?: string | null;
|
|
4699
|
+
} | null> | null;
|
|
4648
4700
|
audioConfig?: {
|
|
4649
4701
|
__typename?: 'AudioConfig';
|
|
4650
4702
|
ttsReferenceID?: string | null;
|
|
@@ -10908,6 +10960,7 @@ export declare const UpdateAgentModelDocument: import("../node_modules/.pnpm/gra
|
|
|
10908
10960
|
export declare const UpdateAgentPluginDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10909
10961
|
export declare const UpdateAgentKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10910
10962
|
export declare const UpdateAgentWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10963
|
+
export declare const UpdateAgentMcpServerConfigDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10911
10964
|
export declare const UpdateAgentRerankerDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10912
10965
|
export declare const UpdateAgentAudioConfigDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10913
10966
|
export declare const DeleteAgentPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -11063,6 +11116,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
11063
11116
|
updateAgentPlugin(variables: UpdateAgentPluginMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentPluginMutation>;
|
|
11064
11117
|
updateAgentKnowledgeBase(variables: UpdateAgentKnowledgeBaseMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentKnowledgeBaseMutation>;
|
|
11065
11118
|
updateAgentWorkflow(variables: UpdateAgentWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentWorkflowMutation>;
|
|
11119
|
+
updateAgentMCPServerConfig(variables: UpdateAgentMcpServerConfigMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentMcpServerConfigMutation>;
|
|
11066
11120
|
updateAgentReranker(variables: UpdateAgentRerankerMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentRerankerMutation>;
|
|
11067
11121
|
updateAgentAudioConfig(variables: UpdateAgentAudioConfigMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentAudioConfigMutation>;
|
|
11068
11122
|
deleteAgentPrompt(variables: DeleteAgentPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteAgentPromptMutation>;
|
|
@@ -11315,6 +11369,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
11315
11369
|
updateAgentWorkflow(variables: Exact<{
|
|
11316
11370
|
input: UpdateAgentWorkflowInput;
|
|
11317
11371
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateAgentWorkflowMutation>;
|
|
11372
|
+
updateAgentMCPServerConfig(variables: Exact<{
|
|
11373
|
+
input: UpdateAgentMcpServerConfigInput;
|
|
11374
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateAgentMcpServerConfigMutation>;
|
|
11318
11375
|
updateAgentReranker(variables: Exact<{
|
|
11319
11376
|
input: UpdateAgentRerankerInput;
|
|
11320
11377
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateAgentRerankerMutation>;
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -160,6 +160,7 @@ __export(sdk_exports, {
|
|
|
160
160
|
UpdateAgentBoxEngineConfigDocument: () => UpdateAgentBoxEngineConfigDocument,
|
|
161
161
|
UpdateAgentDocument: () => UpdateAgentDocument,
|
|
162
162
|
UpdateAgentKnowledgeBaseDocument: () => UpdateAgentKnowledgeBaseDocument,
|
|
163
|
+
UpdateAgentMcpServerConfigDocument: () => UpdateAgentMcpServerConfigDocument,
|
|
163
164
|
UpdateAgentModeConfigDocument: () => UpdateAgentModeConfigDocument,
|
|
164
165
|
UpdateAgentModelDocument: () => UpdateAgentModelDocument,
|
|
165
166
|
UpdateAgentPluginDocument: () => UpdateAgentPluginDocument,
|
|
@@ -378,6 +379,13 @@ var UpdateAgentWorkflowDocument = import_graphql_tag.default`
|
|
|
378
379
|
}
|
|
379
380
|
}
|
|
380
381
|
`;
|
|
382
|
+
var UpdateAgentMcpServerConfigDocument = import_graphql_tag.default`
|
|
383
|
+
mutation updateAgentMCPServerConfig($input: UpdateAgentMCPServerConfigInput!) {
|
|
384
|
+
Agent {
|
|
385
|
+
updateAgentMCPServerConfig(input: $input)
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
`;
|
|
381
389
|
var UpdateAgentRerankerDocument = import_graphql_tag.default`
|
|
382
390
|
mutation updateAgentReranker($input: UpdateAgentRerankerInput!) {
|
|
383
391
|
Agent {
|
|
@@ -531,6 +539,14 @@ var GetAgentDocument = import_graphql_tag.default`
|
|
|
531
539
|
name
|
|
532
540
|
namespace
|
|
533
541
|
}
|
|
542
|
+
mcpServerToolConfigs {
|
|
543
|
+
... on MCPServerToolConfig {
|
|
544
|
+
mcpServerName
|
|
545
|
+
mcpServerNamespace
|
|
546
|
+
toolName
|
|
547
|
+
params
|
|
548
|
+
}
|
|
549
|
+
}
|
|
534
550
|
audioConfig {
|
|
535
551
|
ttsReferenceID
|
|
536
552
|
}
|
|
@@ -3818,6 +3834,9 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
3818
3834
|
updateAgentWorkflow(variables, requestHeaders) {
|
|
3819
3835
|
return withWrapper((wrappedRequestHeaders) => client.request(UpdateAgentWorkflowDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "updateAgentWorkflow", "mutation", variables);
|
|
3820
3836
|
},
|
|
3837
|
+
updateAgentMCPServerConfig(variables, requestHeaders) {
|
|
3838
|
+
return withWrapper((wrappedRequestHeaders) => client.request(UpdateAgentMcpServerConfigDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "updateAgentMCPServerConfig", "mutation", variables);
|
|
3839
|
+
},
|
|
3821
3840
|
updateAgentReranker(variables, requestHeaders) {
|
|
3822
3841
|
return withWrapper((wrappedRequestHeaders) => client.request(UpdateAgentRerankerDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "updateAgentReranker", "mutation", variables);
|
|
3823
3842
|
},
|
|
@@ -4578,6 +4597,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
4578
4597
|
UpdateAgentBoxEngineConfigDocument,
|
|
4579
4598
|
UpdateAgentDocument,
|
|
4580
4599
|
UpdateAgentKnowledgeBaseDocument,
|
|
4600
|
+
UpdateAgentMcpServerConfigDocument,
|
|
4581
4601
|
UpdateAgentModeConfigDocument,
|
|
4582
4602
|
UpdateAgentModelDocument,
|
|
4583
4603
|
UpdateAgentPluginDocument,
|
package/dist/cjs/taro.d.ts
CHANGED
|
@@ -75,6 +75,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
75
75
|
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
76
76
|
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
77
77
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
78
|
+
updateAgentMCPServerConfig(variables: import("./sdk").Exact<{
|
|
79
|
+
input: import("./sdk").UpdateAgentMcpServerConfigInput;
|
|
80
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentMcpServerConfigMutation>;
|
|
78
81
|
updateAgentReranker(variables: import("./sdk").Exact<{
|
|
79
82
|
input: import("./sdk").UpdateAgentRerankerInput;
|
|
80
83
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentRerankerMutation>;
|
|
@@ -831,6 +834,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
831
834
|
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
832
835
|
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
833
836
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
837
|
+
updateAgentMCPServerConfig(variables: import("./sdk").Exact<{
|
|
838
|
+
input: import("./sdk").UpdateAgentMcpServerConfigInput;
|
|
839
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentMcpServerConfigMutation>;
|
|
834
840
|
updateAgentReranker(variables: import("./sdk").Exact<{
|
|
835
841
|
input: import("./sdk").UpdateAgentRerankerInput;
|
|
836
842
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentRerankerMutation>;
|
|
@@ -1587,6 +1593,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1587
1593
|
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
1588
1594
|
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
1589
1595
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
1596
|
+
updateAgentMCPServerConfig(variables: import("./sdk").Exact<{
|
|
1597
|
+
input: import("./sdk").UpdateAgentMcpServerConfigInput;
|
|
1598
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentMcpServerConfigMutation>;
|
|
1590
1599
|
updateAgentReranker(variables: import("./sdk").Exact<{
|
|
1591
1600
|
input: import("./sdk").UpdateAgentRerankerInput;
|
|
1592
1601
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentRerankerMutation>;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -290,6 +290,9 @@ export declare const sdk: {
|
|
|
290
290
|
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
291
291
|
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
292
292
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
293
|
+
updateAgentMCPServerConfig(variables: import("./sdk").Exact<{
|
|
294
|
+
input: import("./sdk").UpdateAgentMcpServerConfigInput;
|
|
295
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentMcpServerConfigMutation>;
|
|
293
296
|
updateAgentReranker(variables: import("./sdk").Exact<{
|
|
294
297
|
input: import("./sdk").UpdateAgentRerankerInput;
|
|
295
298
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentRerankerMutation>;
|
|
@@ -828,6 +831,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
828
831
|
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
829
832
|
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
830
833
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
834
|
+
updateAgentMCPServerConfig(variables: import("./sdk").Exact<{
|
|
835
|
+
input: import("./sdk").UpdateAgentMcpServerConfigInput;
|
|
836
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentMcpServerConfigMutation>;
|
|
831
837
|
updateAgentReranker(variables: import("./sdk").Exact<{
|
|
832
838
|
input: import("./sdk").UpdateAgentRerankerInput;
|
|
833
839
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentRerankerMutation>;
|
|
@@ -1584,6 +1590,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1584
1590
|
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
1585
1591
|
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
1586
1592
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
1593
|
+
updateAgentMCPServerConfig(variables: import("./sdk").Exact<{
|
|
1594
|
+
input: import("./sdk").UpdateAgentMcpServerConfigInput;
|
|
1595
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentMcpServerConfigMutation>;
|
|
1587
1596
|
updateAgentReranker(variables: import("./sdk").Exact<{
|
|
1588
1597
|
input: import("./sdk").UpdateAgentRerankerInput;
|
|
1589
1598
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentRerankerMutation>;
|
|
@@ -2340,6 +2349,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2340
2349
|
updateAgentWorkflow(variables: import("./sdk").Exact<{
|
|
2341
2350
|
input: import("./sdk").UpdateAgentWorkflowInput;
|
|
2342
2351
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentWorkflowMutation>;
|
|
2352
|
+
updateAgentMCPServerConfig(variables: import("./sdk").Exact<{
|
|
2353
|
+
input: import("./sdk").UpdateAgentMcpServerConfigInput;
|
|
2354
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentMcpServerConfigMutation>;
|
|
2343
2355
|
updateAgentReranker(variables: import("./sdk").Exact<{
|
|
2344
2356
|
input: import("./sdk").UpdateAgentRerankerInput;
|
|
2345
2357
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateAgentRerankerMutation>;
|
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -106,6 +106,8 @@ export type Agent = {
|
|
|
106
106
|
maxLength?: Maybe<Scalars['Int']['output']>;
|
|
107
107
|
/** maxTokens 最大输出token */
|
|
108
108
|
maxTokens?: Maybe<Scalars['Int']['output']>;
|
|
109
|
+
/** mcpServerToolConfigs mcp server 工具配置列表 */
|
|
110
|
+
mcpServerToolConfigs?: Maybe<Array<Maybe<McpServerToolConfig>>>;
|
|
109
111
|
/** Applicatioin的基本信息 */
|
|
110
112
|
metadata?: Maybe<AgentMetadata>;
|
|
111
113
|
/** model 指具体使用的模型名称,比如 gpt-3.5-turbo 或者 chatglm_turbo */
|
|
@@ -296,6 +298,7 @@ export type AgentMutation = {
|
|
|
296
298
|
updateAgentAudioConfig?: Maybe<Scalars['Void']['output']>;
|
|
297
299
|
updateAgentBoxEngineConfig?: Maybe<Scalars['Void']['output']>;
|
|
298
300
|
updateAgentKnowledgeBase?: Maybe<Scalars['Void']['output']>;
|
|
301
|
+
updateAgentMCPServerConfig?: Maybe<Scalars['Void']['output']>;
|
|
299
302
|
updateAgentModeConfig?: Maybe<Scalars['Void']['output']>;
|
|
300
303
|
updateAgentModel?: Maybe<Scalars['Void']['output']>;
|
|
301
304
|
updateAgentPlugin?: Maybe<Scalars['Void']['output']>;
|
|
@@ -349,6 +352,9 @@ export type AgentMutationUpdateAgentBoxEngineConfigArgs = {
|
|
|
349
352
|
export type AgentMutationUpdateAgentKnowledgeBaseArgs = {
|
|
350
353
|
input: UpdateAgentKnowledgebaseInput;
|
|
351
354
|
};
|
|
355
|
+
export type AgentMutationUpdateAgentMcpServerConfigArgs = {
|
|
356
|
+
input: UpdateAgentMcpServerConfigInput;
|
|
357
|
+
};
|
|
352
358
|
export type AgentMutationUpdateAgentModeConfigArgs = {
|
|
353
359
|
input: UpdateAgentModeConfigInput;
|
|
354
360
|
};
|
|
@@ -2163,6 +2169,21 @@ export type ListWorkflowInput = {
|
|
|
2163
2169
|
*/
|
|
2164
2170
|
pageSize?: InputMaybe<Scalars['Int']['input']>;
|
|
2165
2171
|
};
|
|
2172
|
+
export type McpServerConfigInput = {
|
|
2173
|
+
/** 要配置的 MCP Server 的名称 */
|
|
2174
|
+
mcpServerName: Scalars['String']['input'];
|
|
2175
|
+
/** 要配置的 MCP Server 的 namespace */
|
|
2176
|
+
mcpServerNamespace: Scalars['String']['input'];
|
|
2177
|
+
/** 要配置的工具参数列表 */
|
|
2178
|
+
toolConfigs?: InputMaybe<Array<InputMaybe<ToolConfigInput>>>;
|
|
2179
|
+
};
|
|
2180
|
+
export type McpServerToolConfig = {
|
|
2181
|
+
__typename?: 'MCPServerToolConfig';
|
|
2182
|
+
mcpServerName: Scalars['String']['output'];
|
|
2183
|
+
mcpServerNamespace: Scalars['String']['output'];
|
|
2184
|
+
params?: Maybe<Scalars['String']['output']>;
|
|
2185
|
+
toolName: Scalars['String']['output'];
|
|
2186
|
+
};
|
|
2166
2187
|
/** 模型 */
|
|
2167
2188
|
export type Model = {
|
|
2168
2189
|
__typename?: 'Model';
|
|
@@ -3173,9 +3194,9 @@ export type ToolConfig = {
|
|
|
3173
3194
|
toolName: Scalars['String']['output'];
|
|
3174
3195
|
};
|
|
3175
3196
|
export type ToolConfigInput = {
|
|
3176
|
-
/** params 工具(API)对应的参数的 JSON 字符串, 非必填 */
|
|
3197
|
+
/** params 工具(API/MCP)对应的参数的 JSON 字符串, 非必填 */
|
|
3177
3198
|
params?: InputMaybe<Scalars['String']['input']>;
|
|
3178
|
-
/** toolName 工具(API)名称 */
|
|
3199
|
+
/** toolName 工具(API/MCP)名称 */
|
|
3179
3200
|
toolName: Scalars['String']['input'];
|
|
3180
3201
|
};
|
|
3181
3202
|
export type TuningDataSet = {
|
|
@@ -3388,6 +3409,20 @@ export type UpdateAgentKnowledgebaseInput = {
|
|
|
3388
3409
|
*/
|
|
3389
3410
|
searchMode?: InputMaybe<Scalars['String']['input']>;
|
|
3390
3411
|
};
|
|
3412
|
+
export type UpdateAgentMcpServerConfigInput = {
|
|
3413
|
+
/** 为 Agent 配置的 MCP Server Tool 的列表 */
|
|
3414
|
+
mcpServerToolConfigs?: InputMaybe<Array<InputMaybe<McpServerConfigInput>>>;
|
|
3415
|
+
/**
|
|
3416
|
+
* 应用名称, 用于确定要更新哪个 Agent 应用
|
|
3417
|
+
* 规则: 遵循 k8s 命名
|
|
3418
|
+
*/
|
|
3419
|
+
name: Scalars['String']['input'];
|
|
3420
|
+
/**
|
|
3421
|
+
* 应用所在的 namespace, 用于确定要更新哪个 Agent 应用
|
|
3422
|
+
* 规则: 非空
|
|
3423
|
+
*/
|
|
3424
|
+
namespace: Scalars['String']['input'];
|
|
3425
|
+
};
|
|
3391
3426
|
export type UpdateAgentMetadataInput = {
|
|
3392
3427
|
/** Background, 智能体对话背景,图片访问路径 */
|
|
3393
3428
|
background?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -4454,6 +4489,16 @@ export type UpdateAgentWorkflowMutation = {
|
|
|
4454
4489
|
updateAgentWorkflow?: any | null;
|
|
4455
4490
|
} | null;
|
|
4456
4491
|
};
|
|
4492
|
+
export type UpdateAgentMcpServerConfigMutationVariables = Exact<{
|
|
4493
|
+
input: UpdateAgentMcpServerConfigInput;
|
|
4494
|
+
}>;
|
|
4495
|
+
export type UpdateAgentMcpServerConfigMutation = {
|
|
4496
|
+
__typename?: 'Mutation';
|
|
4497
|
+
Agent?: {
|
|
4498
|
+
__typename?: 'AgentMutation';
|
|
4499
|
+
updateAgentMCPServerConfig?: any | null;
|
|
4500
|
+
} | null;
|
|
4501
|
+
};
|
|
4457
4502
|
export type UpdateAgentRerankerMutationVariables = Exact<{
|
|
4458
4503
|
input: UpdateAgentRerankerInput;
|
|
4459
4504
|
}>;
|
|
@@ -4645,6 +4690,13 @@ export type GetAgentQuery = {
|
|
|
4645
4690
|
name: string;
|
|
4646
4691
|
namespace: string;
|
|
4647
4692
|
} | null> | null;
|
|
4693
|
+
mcpServerToolConfigs?: Array<{
|
|
4694
|
+
__typename?: 'MCPServerToolConfig';
|
|
4695
|
+
mcpServerName: string;
|
|
4696
|
+
mcpServerNamespace: string;
|
|
4697
|
+
toolName: string;
|
|
4698
|
+
params?: string | null;
|
|
4699
|
+
} | null> | null;
|
|
4648
4700
|
audioConfig?: {
|
|
4649
4701
|
__typename?: 'AudioConfig';
|
|
4650
4702
|
ttsReferenceID?: string | null;
|
|
@@ -10908,6 +10960,7 @@ export declare const UpdateAgentModelDocument: import("../node_modules/.pnpm/gra
|
|
|
10908
10960
|
export declare const UpdateAgentPluginDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10909
10961
|
export declare const UpdateAgentKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10910
10962
|
export declare const UpdateAgentWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10963
|
+
export declare const UpdateAgentMcpServerConfigDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10911
10964
|
export declare const UpdateAgentRerankerDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10912
10965
|
export declare const UpdateAgentAudioConfigDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10913
10966
|
export declare const DeleteAgentPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -11063,6 +11116,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
11063
11116
|
updateAgentPlugin(variables: UpdateAgentPluginMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentPluginMutation>;
|
|
11064
11117
|
updateAgentKnowledgeBase(variables: UpdateAgentKnowledgeBaseMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentKnowledgeBaseMutation>;
|
|
11065
11118
|
updateAgentWorkflow(variables: UpdateAgentWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentWorkflowMutation>;
|
|
11119
|
+
updateAgentMCPServerConfig(variables: UpdateAgentMcpServerConfigMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentMcpServerConfigMutation>;
|
|
11066
11120
|
updateAgentReranker(variables: UpdateAgentRerankerMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentRerankerMutation>;
|
|
11067
11121
|
updateAgentAudioConfig(variables: UpdateAgentAudioConfigMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentAudioConfigMutation>;
|
|
11068
11122
|
deleteAgentPrompt(variables: DeleteAgentPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteAgentPromptMutation>;
|
|
@@ -11315,6 +11369,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
11315
11369
|
updateAgentWorkflow(variables: Exact<{
|
|
11316
11370
|
input: UpdateAgentWorkflowInput;
|
|
11317
11371
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateAgentWorkflowMutation>;
|
|
11372
|
+
updateAgentMCPServerConfig(variables: Exact<{
|
|
11373
|
+
input: UpdateAgentMcpServerConfigInput;
|
|
11374
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateAgentMcpServerConfigMutation>;
|
|
11318
11375
|
updateAgentReranker(variables: Exact<{
|
|
11319
11376
|
input: UpdateAgentRerankerInput;
|
|
11320
11377
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateAgentRerankerMutation>;
|