@yuntijs/arcadia-bff-sdk 1.2.138 → 1.2.140

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/sdk.d.ts CHANGED
@@ -110,7 +110,12 @@ export type Agent = {
110
110
  numDocuments?: Maybe<Scalars['Int']['output']>;
111
111
  /** 知识库是否按需调用 */
112
112
  onDemand?: Maybe<Scalars['Boolean']['output']>;
113
- /** plugins 要使用的插件列表 */
113
+ /** pluginConfigs 插件及其调用配置列表 */
114
+ pluginConfigs?: Maybe<Array<Maybe<PluginConfig>>>;
115
+ /**
116
+ * LEGACY: plugins 要使用的插件列表
117
+ * 请使用 pluginConfigs 字段
118
+ */
114
119
  plugins?: Maybe<Array<Maybe<Plugin>>>;
115
120
  /** 对话开场白 */
116
121
  prologue?: Maybe<Scalars['String']['output']>;
@@ -2519,6 +2524,11 @@ export type PluginCategory = {
2519
2524
  name: Scalars['String']['output'];
2520
2525
  nameEn: Scalars['String']['output'];
2521
2526
  };
2527
+ export type PluginConfig = {
2528
+ __typename?: 'PluginConfig';
2529
+ plugin?: Maybe<Plugin>;
2530
+ toolConfigs?: Maybe<Array<Maybe<ToolConfig>>>;
2531
+ };
2522
2532
  export type PluginMutation = {
2523
2533
  __typename?: 'PluginMutation';
2524
2534
  createPlugin: Plugin;
@@ -2556,6 +2566,12 @@ export type PluginTool = {
2556
2566
  /** 插件的基本总结信息 */
2557
2567
  summary?: Maybe<Scalars['String']['output']>;
2558
2568
  };
2569
+ export type PluginToolConfigInput = {
2570
+ /** plugin 更新的插件 */
2571
+ plugin?: InputMaybe<TypedObjectReferenceInput>;
2572
+ /** toolConfigs 该插件使用的 API */
2573
+ toolConfigs?: InputMaybe<Array<InputMaybe<ToolConfigInput>>>;
2574
+ };
2559
2575
  export type PrecisionTestingRecord = {
2560
2576
  __typename?: 'PrecisionTestingRecord';
2561
2577
  createdAt?: Maybe<Scalars['Time']['output']>;
@@ -3072,6 +3088,17 @@ export type TokenUsage = {
3072
3088
  /** totalTokens 总token */
3073
3089
  totalTokens?: Maybe<Scalars['Int']['output']>;
3074
3090
  };
3091
+ export type ToolConfig = {
3092
+ __typename?: 'ToolConfig';
3093
+ params?: Maybe<Scalars['String']['output']>;
3094
+ toolName: Scalars['String']['output'];
3095
+ };
3096
+ export type ToolConfigInput = {
3097
+ /** params 工具(API)对应的参数的 JSON 字符串, 非必填 */
3098
+ params?: InputMaybe<Scalars['String']['input']>;
3099
+ /** toolName 工具(API)名称 */
3100
+ toolName: Scalars['String']['input'];
3101
+ };
3075
3102
  export type TuningDataSet = {
3076
3103
  __typename?: 'TuningDataSet';
3077
3104
  ID: Scalars['ID']['output'];
@@ -3377,8 +3404,8 @@ export type UpdateAgentPluginInput = {
3377
3404
  * 规则: 非空
3378
3405
  */
3379
3406
  namespace: Scalars['String']['input'];
3380
- /** plugins 要使用的插件列表 */
3381
- plugins?: InputMaybe<Array<InputMaybe<TypedObjectReferenceInput>>>;
3407
+ /** toolconfigs 要更新的插件配置 */
3408
+ pluginconfigs?: InputMaybe<Array<InputMaybe<PluginToolConfigInput>>>;
3382
3409
  };
3383
3410
  export type UpdateAgentPromptInput = {
3384
3411
  /**
@@ -4489,6 +4516,19 @@ export type GetAgentQuery = {
4489
4516
  name: string;
4490
4517
  namespace: string;
4491
4518
  } | null> | null;
4519
+ pluginConfigs?: Array<{
4520
+ __typename?: 'PluginConfig';
4521
+ plugin?: {
4522
+ __typename?: 'Plugin';
4523
+ name: string;
4524
+ namespace: string;
4525
+ } | null;
4526
+ toolConfigs?: Array<{
4527
+ __typename?: 'ToolConfig';
4528
+ toolName: string;
4529
+ params?: string | null;
4530
+ } | null> | null;
4531
+ } | null> | null;
4492
4532
  workflows?: Array<{
4493
4533
  __typename?: 'Workflow';
4494
4534
  name: string;
package/dist/cjs/sdk.js CHANGED
@@ -508,6 +508,20 @@ var GetAgentDocument = import_graphql_tag.default`
508
508
  name
509
509
  namespace
510
510
  }
511
+ pluginConfigs {
512
+ ... on PluginConfig {
513
+ plugin {
514
+ name
515
+ namespace
516
+ }
517
+ toolConfigs {
518
+ ... on ToolConfig {
519
+ toolName
520
+ params
521
+ }
522
+ }
523
+ }
524
+ }
511
525
  workflows {
512
526
  name
513
527
  namespace
package/dist/esm/sdk.d.ts CHANGED
@@ -110,7 +110,12 @@ export type Agent = {
110
110
  numDocuments?: Maybe<Scalars['Int']['output']>;
111
111
  /** 知识库是否按需调用 */
112
112
  onDemand?: Maybe<Scalars['Boolean']['output']>;
113
- /** plugins 要使用的插件列表 */
113
+ /** pluginConfigs 插件及其调用配置列表 */
114
+ pluginConfigs?: Maybe<Array<Maybe<PluginConfig>>>;
115
+ /**
116
+ * LEGACY: plugins 要使用的插件列表
117
+ * 请使用 pluginConfigs 字段
118
+ */
114
119
  plugins?: Maybe<Array<Maybe<Plugin>>>;
115
120
  /** 对话开场白 */
116
121
  prologue?: Maybe<Scalars['String']['output']>;
@@ -2519,6 +2524,11 @@ export type PluginCategory = {
2519
2524
  name: Scalars['String']['output'];
2520
2525
  nameEn: Scalars['String']['output'];
2521
2526
  };
2527
+ export type PluginConfig = {
2528
+ __typename?: 'PluginConfig';
2529
+ plugin?: Maybe<Plugin>;
2530
+ toolConfigs?: Maybe<Array<Maybe<ToolConfig>>>;
2531
+ };
2522
2532
  export type PluginMutation = {
2523
2533
  __typename?: 'PluginMutation';
2524
2534
  createPlugin: Plugin;
@@ -2556,6 +2566,12 @@ export type PluginTool = {
2556
2566
  /** 插件的基本总结信息 */
2557
2567
  summary?: Maybe<Scalars['String']['output']>;
2558
2568
  };
2569
+ export type PluginToolConfigInput = {
2570
+ /** plugin 更新的插件 */
2571
+ plugin?: InputMaybe<TypedObjectReferenceInput>;
2572
+ /** toolConfigs 该插件使用的 API */
2573
+ toolConfigs?: InputMaybe<Array<InputMaybe<ToolConfigInput>>>;
2574
+ };
2559
2575
  export type PrecisionTestingRecord = {
2560
2576
  __typename?: 'PrecisionTestingRecord';
2561
2577
  createdAt?: Maybe<Scalars['Time']['output']>;
@@ -3072,6 +3088,17 @@ export type TokenUsage = {
3072
3088
  /** totalTokens 总token */
3073
3089
  totalTokens?: Maybe<Scalars['Int']['output']>;
3074
3090
  };
3091
+ export type ToolConfig = {
3092
+ __typename?: 'ToolConfig';
3093
+ params?: Maybe<Scalars['String']['output']>;
3094
+ toolName: Scalars['String']['output'];
3095
+ };
3096
+ export type ToolConfigInput = {
3097
+ /** params 工具(API)对应的参数的 JSON 字符串, 非必填 */
3098
+ params?: InputMaybe<Scalars['String']['input']>;
3099
+ /** toolName 工具(API)名称 */
3100
+ toolName: Scalars['String']['input'];
3101
+ };
3075
3102
  export type TuningDataSet = {
3076
3103
  __typename?: 'TuningDataSet';
3077
3104
  ID: Scalars['ID']['output'];
@@ -3377,8 +3404,8 @@ export type UpdateAgentPluginInput = {
3377
3404
  * 规则: 非空
3378
3405
  */
3379
3406
  namespace: Scalars['String']['input'];
3380
- /** plugins 要使用的插件列表 */
3381
- plugins?: InputMaybe<Array<InputMaybe<TypedObjectReferenceInput>>>;
3407
+ /** toolconfigs 要更新的插件配置 */
3408
+ pluginconfigs?: InputMaybe<Array<InputMaybe<PluginToolConfigInput>>>;
3382
3409
  };
3383
3410
  export type UpdateAgentPromptInput = {
3384
3411
  /**
@@ -4489,6 +4516,19 @@ export type GetAgentQuery = {
4489
4516
  name: string;
4490
4517
  namespace: string;
4491
4518
  } | null> | null;
4519
+ pluginConfigs?: Array<{
4520
+ __typename?: 'PluginConfig';
4521
+ plugin?: {
4522
+ __typename?: 'Plugin';
4523
+ name: string;
4524
+ namespace: string;
4525
+ } | null;
4526
+ toolConfigs?: Array<{
4527
+ __typename?: 'ToolConfig';
4528
+ toolName: string;
4529
+ params?: string | null;
4530
+ } | null> | null;
4531
+ } | null> | null;
4492
4532
  workflows?: Array<{
4493
4533
  __typename?: 'Workflow';
4494
4534
  name: string;
package/dist/esm/sdk.js CHANGED
@@ -192,7 +192,7 @@ export var GenerateAgentSystemPromptDocument = gql(_templateObject17 || (_templa
192
192
  export var GenerateAgentPrologueDocument = gql(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n mutation generateAgentPrologue($namespacedname: String!, $currentPrologue: String!) {\n Agent {\n generateAgentPrologue(\n namespacedname: $namespacedname\n currentPrologue: $currentPrologue\n )\n }\n}\n "])));
193
193
  export var GeneratesAgentUserPromptDocument = gql(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n mutation generatesAgentUserPrompt($namespacedname: String!) {\n Agent {\n generatesAgentUserPrompt(namespacedname: $namespacedname)\n }\n}\n "])));
194
194
  export var GetAgentReleaseStatusDocument = gql(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n query getAgentReleaseStatus($name: String!, $namespace: String!) {\n Agent {\n getAgent(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n platformStatus\n platforms {\n icon\n name\n displayName\n }\n }\n }\n }\n}\n "])));
195
- export var GetAgentDocument = gql(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n query getAgent($name: String!, $namespace: String!) {\n Agent {\n getAgent(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n background\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n notReadyReasonCode\n platformStatus\n platforms {\n icon\n name\n displayName\n }\n modeConfig {\n mode\n workflow {\n name\n namespace\n }\n workflowInputVar\n }\n }\n prologue\n model\n llm {\n name\n namespace\n kind\n apiGroup\n }\n llmConnectID\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebases {\n name\n namespace\n }\n onDemand\n searchMode\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n systemPrompt\n showRetrievalInfo\n showNextGuide\n plugins {\n name\n namespace\n }\n workflows {\n name\n namespace\n }\n audioConfig {\n ttsReferenceID\n }\n rerankerModel\n rerankerName\n rerankerNamespace\n boxEngineConfig {\n enable\n }\n }\n }\n}\n "])));
195
+ export var GetAgentDocument = gql(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n query getAgent($name: String!, $namespace: String!) {\n Agent {\n getAgent(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n background\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n notReadyReasonCode\n platformStatus\n platforms {\n icon\n name\n displayName\n }\n modeConfig {\n mode\n workflow {\n name\n namespace\n }\n workflowInputVar\n }\n }\n prologue\n model\n llm {\n name\n namespace\n kind\n apiGroup\n }\n llmConnectID\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebases {\n name\n namespace\n }\n onDemand\n searchMode\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n systemPrompt\n showRetrievalInfo\n showNextGuide\n plugins {\n name\n namespace\n }\n pluginConfigs {\n ... on PluginConfig {\n plugin {\n name\n namespace\n }\n toolConfigs {\n ... on ToolConfig {\n toolName\n params\n }\n }\n }\n }\n workflows {\n name\n namespace\n }\n audioConfig {\n ttsReferenceID\n }\n rerankerModel\n rerankerName\n rerankerNamespace\n boxEngineConfig {\n enable\n }\n }\n }\n}\n "])));
196
196
  export var GetAgentLatestReleaseInEachPlatformDocument = gql(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n query getAgentLatestReleaseInEachPlatform($name: String!, $namespace: String!) {\n Agent {\n getAgentLatestReleaseInEachPlatform(name: $name, namespace: $namespace) {\n hasNextPage\n totalCount\n nodes {\n ... on AgentRelease {\n id\n platform\n name\n namesapce\n status\n log\n createdAt\n username\n extra\n version\n }\n }\n }\n }\n}\n "])));
197
197
  export var GetAgentReleaseHistoryDocument = gql(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n query getAgentReleaseHistory($name: String!, $namespace: String!, $page: Int, $pageSize: Int) {\n Agent {\n getAgentReleaseHistory(\n name: $name\n namespace: $namespace\n page: $page\n pageSize: $pageSize\n ) {\n hasNextPage\n totalCount\n nodes {\n ... on AgentReleaseHistory {\n date\n items {\n log\n time\n username\n platforms {\n name\n displayName\n icon\n status\n }\n version\n }\n }\n }\n }\n }\n}\n "])));
198
198
  export var ListAgentsDocument = gql(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n query listAgents($input: ListCommonInput!) {\n Agent {\n listAgentMetadata(input: $input) {\n page\n pageSize\n totalCount\n hasNextPage\n nodes {\n ... on AgentMetadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n background\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n notReadyReasonCode\n modeConfig {\n mode\n workflow {\n name\n namespace\n }\n workflowInputVar\n }\n }\n }\n }\n }\n}\n "])));