@yuntijs/arcadia-bff-sdk 1.2.128 → 1.2.130
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 +16 -0
- package/dist/cjs/sdk.d.ts +26 -0
- package/dist/cjs/sdk.js +13 -0
- package/dist/cjs/taro.d.ts +12 -0
- package/dist/esm/index.d.ts +16 -0
- package/dist/esm/sdk.d.ts +26 -0
- package/dist/esm/sdk.js +138 -132
- package/dist/esm/taro.d.ts +12 -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
|
@@ -309,6 +309,10 @@ export declare const sdk: {
|
|
|
309
309
|
namespacedname: string;
|
|
310
310
|
currentSystemPrompt: string;
|
|
311
311
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GenerateAgentSystemPromptMutation>;
|
|
312
|
+
enableNextPromptSuggestion(variables: import("./sdk").Exact<{
|
|
313
|
+
namespacedname: string;
|
|
314
|
+
enable: boolean;
|
|
315
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").EnableNextPromptSuggestionMutation>;
|
|
312
316
|
generateAgentPrologue(variables: import("./sdk").Exact<{
|
|
313
317
|
namespacedname: string;
|
|
314
318
|
currentPrologue: string;
|
|
@@ -823,6 +827,10 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
823
827
|
namespacedname: string;
|
|
824
828
|
currentSystemPrompt: string;
|
|
825
829
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GenerateAgentSystemPromptMutation>;
|
|
830
|
+
enableNextPromptSuggestion(variables: import("./sdk").Exact<{
|
|
831
|
+
namespacedname: string;
|
|
832
|
+
enable: boolean;
|
|
833
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").EnableNextPromptSuggestionMutation>;
|
|
826
834
|
generateAgentPrologue(variables: import("./sdk").Exact<{
|
|
827
835
|
namespacedname: string;
|
|
828
836
|
currentPrologue: string;
|
|
@@ -1564,6 +1572,10 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1564
1572
|
namespacedname: string;
|
|
1565
1573
|
currentSystemPrompt: string;
|
|
1566
1574
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GenerateAgentSystemPromptMutation>;
|
|
1575
|
+
enableNextPromptSuggestion(variables: import("./sdk").Exact<{
|
|
1576
|
+
namespacedname: string;
|
|
1577
|
+
enable: boolean;
|
|
1578
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").EnableNextPromptSuggestionMutation>;
|
|
1567
1579
|
generateAgentPrologue(variables: import("./sdk").Exact<{
|
|
1568
1580
|
namespacedname: string;
|
|
1569
1581
|
currentPrologue: string;
|
|
@@ -2305,6 +2317,10 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2305
2317
|
namespacedname: string;
|
|
2306
2318
|
currentSystemPrompt: string;
|
|
2307
2319
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GenerateAgentSystemPromptMutation>;
|
|
2320
|
+
enableNextPromptSuggestion(variables: import("./sdk").Exact<{
|
|
2321
|
+
namespacedname: string;
|
|
2322
|
+
enable: boolean;
|
|
2323
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").EnableNextPromptSuggestionMutation>;
|
|
2308
2324
|
generateAgentPrologue(variables: import("./sdk").Exact<{
|
|
2309
2325
|
namespacedname: string;
|
|
2310
2326
|
currentPrologue: string;
|
package/dist/cjs/sdk.d.ts
CHANGED
|
@@ -188,6 +188,8 @@ export type AgentInvocationLog = {
|
|
|
188
188
|
timeToFirstToken?: Maybe<Scalars['Int64']['output']>;
|
|
189
189
|
/** tokenUsage 会话的token消耗 */
|
|
190
190
|
tokenUsage: TokenUsage;
|
|
191
|
+
/** userId 创建会话的用户的 ID */
|
|
192
|
+
userId?: Maybe<Scalars['String']['output']>;
|
|
191
193
|
/** 用户反馈 */
|
|
192
194
|
vote?: Maybe<Scalars['Int64']['output']>;
|
|
193
195
|
};
|
|
@@ -287,6 +289,7 @@ export type AgentMutation = {
|
|
|
287
289
|
createOrUpdateAgentPrompt?: Maybe<Scalars['Void']['output']>;
|
|
288
290
|
deleteAgent?: Maybe<Scalars['Void']['output']>;
|
|
289
291
|
deleteAgentPrompt?: Maybe<Scalars['Void']['output']>;
|
|
292
|
+
enableNextPromptSuggestion?: Maybe<Scalars['Void']['output']>;
|
|
290
293
|
generateAgentPrologue: Scalars['String']['output'];
|
|
291
294
|
generateAgentSystemPrompt: Scalars['String']['output'];
|
|
292
295
|
generatesAgentUserPrompt: Array<Scalars['String']['output']>;
|
|
@@ -316,6 +319,10 @@ export type AgentMutationDeleteAgentPromptArgs = {
|
|
|
316
319
|
ids?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
317
320
|
namespacedname: Scalars['String']['input'];
|
|
318
321
|
};
|
|
322
|
+
export type AgentMutationEnableNextPromptSuggestionArgs = {
|
|
323
|
+
enable: Scalars['Boolean']['input'];
|
|
324
|
+
namespacedname: Scalars['String']['input'];
|
|
325
|
+
};
|
|
319
326
|
export type AgentMutationGenerateAgentPrologueArgs = {
|
|
320
327
|
currentPrologue: Scalars['String']['input'];
|
|
321
328
|
namespacedname: Scalars['String']['input'];
|
|
@@ -1897,6 +1904,7 @@ export type ListAgentInvocationLogsInput = {
|
|
|
1897
1904
|
size?: InputMaybe<Scalars['Int']['input']>;
|
|
1898
1905
|
startTime?: InputMaybe<Scalars['Time']['input']>;
|
|
1899
1906
|
status?: InputMaybe<Scalars['String']['input']>;
|
|
1907
|
+
userId?: InputMaybe<Scalars['String']['input']>;
|
|
1900
1908
|
vote?: InputMaybe<Scalars['Int64']['input']>;
|
|
1901
1909
|
};
|
|
1902
1910
|
export type ListCommonInput = {
|
|
@@ -4414,6 +4422,17 @@ export type GenerateAgentSystemPromptMutation = {
|
|
|
4414
4422
|
generateAgentSystemPrompt: string;
|
|
4415
4423
|
} | null;
|
|
4416
4424
|
};
|
|
4425
|
+
export type EnableNextPromptSuggestionMutationVariables = Exact<{
|
|
4426
|
+
namespacedname: Scalars['String']['input'];
|
|
4427
|
+
enable: Scalars['Boolean']['input'];
|
|
4428
|
+
}>;
|
|
4429
|
+
export type EnableNextPromptSuggestionMutation = {
|
|
4430
|
+
__typename?: 'Mutation';
|
|
4431
|
+
Agent?: {
|
|
4432
|
+
__typename?: 'AgentMutation';
|
|
4433
|
+
enableNextPromptSuggestion?: any | null;
|
|
4434
|
+
} | null;
|
|
4435
|
+
};
|
|
4417
4436
|
export type GenerateAgentPrologueMutationVariables = Exact<{
|
|
4418
4437
|
namespacedname: Scalars['String']['input'];
|
|
4419
4438
|
currentPrologue: Scalars['String']['input'];
|
|
@@ -4994,6 +5013,7 @@ export type ListAgentInvocationLogsQuery = {
|
|
|
4994
5013
|
createdAt?: any | null;
|
|
4995
5014
|
vote?: any | null;
|
|
4996
5015
|
status?: string | null;
|
|
5016
|
+
userId?: string | null;
|
|
4997
5017
|
events?: Array<{
|
|
4998
5018
|
__typename?: 'Event';
|
|
4999
5019
|
eventType: string;
|
|
@@ -10671,6 +10691,7 @@ export declare const UpdateAgentRerankerDocument: import("../node_modules/.pnpm/
|
|
|
10671
10691
|
export declare const UpdateAgentAudioConfigDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10672
10692
|
export declare const DeleteAgentPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10673
10693
|
export declare const GenerateAgentSystemPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10694
|
+
export declare const EnableNextPromptSuggestionDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10674
10695
|
export declare const GenerateAgentPrologueDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10675
10696
|
export declare const GeneratesAgentUserPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10676
10697
|
export declare const GetAgentReleaseStatusDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -10820,6 +10841,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
10820
10841
|
updateAgentAudioConfig(variables: UpdateAgentAudioConfigMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentAudioConfigMutation>;
|
|
10821
10842
|
deleteAgentPrompt(variables: DeleteAgentPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteAgentPromptMutation>;
|
|
10822
10843
|
generateAgentSystemPrompt(variables: GenerateAgentSystemPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<GenerateAgentSystemPromptMutation>;
|
|
10844
|
+
enableNextPromptSuggestion(variables: EnableNextPromptSuggestionMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<EnableNextPromptSuggestionMutation>;
|
|
10823
10845
|
generateAgentPrologue(variables: GenerateAgentPrologueMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<GenerateAgentPrologueMutation>;
|
|
10824
10846
|
generatesAgentUserPrompt(variables: GeneratesAgentUserPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<GeneratesAgentUserPromptMutation>;
|
|
10825
10847
|
getAgentReleaseStatus(variables: GetAgentReleaseStatusQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetAgentReleaseStatusQuery>;
|
|
@@ -11076,6 +11098,10 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
11076
11098
|
namespacedname: string;
|
|
11077
11099
|
currentSystemPrompt: string;
|
|
11078
11100
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GenerateAgentSystemPromptMutation>;
|
|
11101
|
+
enableNextPromptSuggestion(variables: Exact<{
|
|
11102
|
+
namespacedname: string;
|
|
11103
|
+
enable: boolean;
|
|
11104
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<EnableNextPromptSuggestionMutation>;
|
|
11079
11105
|
generateAgentPrologue(variables: Exact<{
|
|
11080
11106
|
namespacedname: string;
|
|
11081
11107
|
currentPrologue: string;
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -84,6 +84,7 @@ __export(sdk_exports, {
|
|
|
84
84
|
DeleteVersionsDocument: () => DeleteVersionsDocument,
|
|
85
85
|
DeleteWorkersDocument: () => DeleteWorkersDocument,
|
|
86
86
|
DeleteWorkflowDocument: () => DeleteWorkflowDocument,
|
|
87
|
+
EnableNextPromptSuggestionDocument: () => EnableNextPromptSuggestionDocument,
|
|
87
88
|
ExportSftDocument: () => ExportSftDocument,
|
|
88
89
|
GenerateAgentPrologueDocument: () => GenerateAgentPrologueDocument,
|
|
89
90
|
GenerateAgentSystemPromptDocument: () => GenerateAgentSystemPromptDocument,
|
|
@@ -378,6 +379,13 @@ var GenerateAgentSystemPromptDocument = import_graphql_tag.default`
|
|
|
378
379
|
}
|
|
379
380
|
}
|
|
380
381
|
`;
|
|
382
|
+
var EnableNextPromptSuggestionDocument = import_graphql_tag.default`
|
|
383
|
+
mutation enableNextPromptSuggestion($namespacedname: String!, $enable: Boolean!) {
|
|
384
|
+
Agent {
|
|
385
|
+
enableNextPromptSuggestion(namespacedname: $namespacedname, enable: $enable)
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
`;
|
|
381
389
|
var GenerateAgentPrologueDocument = import_graphql_tag.default`
|
|
382
390
|
mutation generateAgentPrologue($namespacedname: String!, $currentPrologue: String!) {
|
|
383
391
|
Agent {
|
|
@@ -683,6 +691,7 @@ var ListAgentInvocationLogsDocument = import_graphql_tag.default`
|
|
|
683
691
|
promptTokens
|
|
684
692
|
totalTokens
|
|
685
693
|
}
|
|
694
|
+
userId
|
|
686
695
|
}
|
|
687
696
|
}
|
|
688
697
|
}
|
|
@@ -3871,6 +3880,9 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
3871
3880
|
generateAgentSystemPrompt(variables, requestHeaders) {
|
|
3872
3881
|
return withWrapper((wrappedRequestHeaders) => client.request(GenerateAgentSystemPromptDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "generateAgentSystemPrompt", "mutation", variables);
|
|
3873
3882
|
},
|
|
3883
|
+
enableNextPromptSuggestion(variables, requestHeaders) {
|
|
3884
|
+
return withWrapper((wrappedRequestHeaders) => client.request(EnableNextPromptSuggestionDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "enableNextPromptSuggestion", "mutation", variables);
|
|
3885
|
+
},
|
|
3874
3886
|
generateAgentPrologue(variables, requestHeaders) {
|
|
3875
3887
|
return withWrapper((wrappedRequestHeaders) => client.request(GenerateAgentPrologueDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "generateAgentPrologue", "mutation", variables);
|
|
3876
3888
|
},
|
|
@@ -4537,6 +4549,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
4537
4549
|
DeleteVersionsDocument,
|
|
4538
4550
|
DeleteWorkersDocument,
|
|
4539
4551
|
DeleteWorkflowDocument,
|
|
4552
|
+
EnableNextPromptSuggestionDocument,
|
|
4540
4553
|
ExportSftDocument,
|
|
4541
4554
|
GenerateAgentPrologueDocument,
|
|
4542
4555
|
GenerateAgentSystemPromptDocument,
|
package/dist/cjs/taro.d.ts
CHANGED
|
@@ -85,6 +85,10 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
85
85
|
namespacedname: string;
|
|
86
86
|
currentSystemPrompt: string;
|
|
87
87
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GenerateAgentSystemPromptMutation>;
|
|
88
|
+
enableNextPromptSuggestion(variables: import("./sdk").Exact<{
|
|
89
|
+
namespacedname: string;
|
|
90
|
+
enable: boolean;
|
|
91
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").EnableNextPromptSuggestionMutation>;
|
|
88
92
|
generateAgentPrologue(variables: import("./sdk").Exact<{
|
|
89
93
|
namespacedname: string;
|
|
90
94
|
currentPrologue: string;
|
|
@@ -826,6 +830,10 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
826
830
|
namespacedname: string;
|
|
827
831
|
currentSystemPrompt: string;
|
|
828
832
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GenerateAgentSystemPromptMutation>;
|
|
833
|
+
enableNextPromptSuggestion(variables: import("./sdk").Exact<{
|
|
834
|
+
namespacedname: string;
|
|
835
|
+
enable: boolean;
|
|
836
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").EnableNextPromptSuggestionMutation>;
|
|
829
837
|
generateAgentPrologue(variables: import("./sdk").Exact<{
|
|
830
838
|
namespacedname: string;
|
|
831
839
|
currentPrologue: string;
|
|
@@ -1567,6 +1575,10 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1567
1575
|
namespacedname: string;
|
|
1568
1576
|
currentSystemPrompt: string;
|
|
1569
1577
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GenerateAgentSystemPromptMutation>;
|
|
1578
|
+
enableNextPromptSuggestion(variables: import("./sdk").Exact<{
|
|
1579
|
+
namespacedname: string;
|
|
1580
|
+
enable: boolean;
|
|
1581
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").EnableNextPromptSuggestionMutation>;
|
|
1570
1582
|
generateAgentPrologue(variables: import("./sdk").Exact<{
|
|
1571
1583
|
namespacedname: string;
|
|
1572
1584
|
currentPrologue: string;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -309,6 +309,10 @@ export declare const sdk: {
|
|
|
309
309
|
namespacedname: string;
|
|
310
310
|
currentSystemPrompt: string;
|
|
311
311
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GenerateAgentSystemPromptMutation>;
|
|
312
|
+
enableNextPromptSuggestion(variables: import("./sdk").Exact<{
|
|
313
|
+
namespacedname: string;
|
|
314
|
+
enable: boolean;
|
|
315
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").EnableNextPromptSuggestionMutation>;
|
|
312
316
|
generateAgentPrologue(variables: import("./sdk").Exact<{
|
|
313
317
|
namespacedname: string;
|
|
314
318
|
currentPrologue: string;
|
|
@@ -823,6 +827,10 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
823
827
|
namespacedname: string;
|
|
824
828
|
currentSystemPrompt: string;
|
|
825
829
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GenerateAgentSystemPromptMutation>;
|
|
830
|
+
enableNextPromptSuggestion(variables: import("./sdk").Exact<{
|
|
831
|
+
namespacedname: string;
|
|
832
|
+
enable: boolean;
|
|
833
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").EnableNextPromptSuggestionMutation>;
|
|
826
834
|
generateAgentPrologue(variables: import("./sdk").Exact<{
|
|
827
835
|
namespacedname: string;
|
|
828
836
|
currentPrologue: string;
|
|
@@ -1564,6 +1572,10 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1564
1572
|
namespacedname: string;
|
|
1565
1573
|
currentSystemPrompt: string;
|
|
1566
1574
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GenerateAgentSystemPromptMutation>;
|
|
1575
|
+
enableNextPromptSuggestion(variables: import("./sdk").Exact<{
|
|
1576
|
+
namespacedname: string;
|
|
1577
|
+
enable: boolean;
|
|
1578
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").EnableNextPromptSuggestionMutation>;
|
|
1567
1579
|
generateAgentPrologue(variables: import("./sdk").Exact<{
|
|
1568
1580
|
namespacedname: string;
|
|
1569
1581
|
currentPrologue: string;
|
|
@@ -2305,6 +2317,10 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2305
2317
|
namespacedname: string;
|
|
2306
2318
|
currentSystemPrompt: string;
|
|
2307
2319
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GenerateAgentSystemPromptMutation>;
|
|
2320
|
+
enableNextPromptSuggestion(variables: import("./sdk").Exact<{
|
|
2321
|
+
namespacedname: string;
|
|
2322
|
+
enable: boolean;
|
|
2323
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").EnableNextPromptSuggestionMutation>;
|
|
2308
2324
|
generateAgentPrologue(variables: import("./sdk").Exact<{
|
|
2309
2325
|
namespacedname: string;
|
|
2310
2326
|
currentPrologue: string;
|
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -188,6 +188,8 @@ export type AgentInvocationLog = {
|
|
|
188
188
|
timeToFirstToken?: Maybe<Scalars['Int64']['output']>;
|
|
189
189
|
/** tokenUsage 会话的token消耗 */
|
|
190
190
|
tokenUsage: TokenUsage;
|
|
191
|
+
/** userId 创建会话的用户的 ID */
|
|
192
|
+
userId?: Maybe<Scalars['String']['output']>;
|
|
191
193
|
/** 用户反馈 */
|
|
192
194
|
vote?: Maybe<Scalars['Int64']['output']>;
|
|
193
195
|
};
|
|
@@ -287,6 +289,7 @@ export type AgentMutation = {
|
|
|
287
289
|
createOrUpdateAgentPrompt?: Maybe<Scalars['Void']['output']>;
|
|
288
290
|
deleteAgent?: Maybe<Scalars['Void']['output']>;
|
|
289
291
|
deleteAgentPrompt?: Maybe<Scalars['Void']['output']>;
|
|
292
|
+
enableNextPromptSuggestion?: Maybe<Scalars['Void']['output']>;
|
|
290
293
|
generateAgentPrologue: Scalars['String']['output'];
|
|
291
294
|
generateAgentSystemPrompt: Scalars['String']['output'];
|
|
292
295
|
generatesAgentUserPrompt: Array<Scalars['String']['output']>;
|
|
@@ -316,6 +319,10 @@ export type AgentMutationDeleteAgentPromptArgs = {
|
|
|
316
319
|
ids?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
317
320
|
namespacedname: Scalars['String']['input'];
|
|
318
321
|
};
|
|
322
|
+
export type AgentMutationEnableNextPromptSuggestionArgs = {
|
|
323
|
+
enable: Scalars['Boolean']['input'];
|
|
324
|
+
namespacedname: Scalars['String']['input'];
|
|
325
|
+
};
|
|
319
326
|
export type AgentMutationGenerateAgentPrologueArgs = {
|
|
320
327
|
currentPrologue: Scalars['String']['input'];
|
|
321
328
|
namespacedname: Scalars['String']['input'];
|
|
@@ -1897,6 +1904,7 @@ export type ListAgentInvocationLogsInput = {
|
|
|
1897
1904
|
size?: InputMaybe<Scalars['Int']['input']>;
|
|
1898
1905
|
startTime?: InputMaybe<Scalars['Time']['input']>;
|
|
1899
1906
|
status?: InputMaybe<Scalars['String']['input']>;
|
|
1907
|
+
userId?: InputMaybe<Scalars['String']['input']>;
|
|
1900
1908
|
vote?: InputMaybe<Scalars['Int64']['input']>;
|
|
1901
1909
|
};
|
|
1902
1910
|
export type ListCommonInput = {
|
|
@@ -4414,6 +4422,17 @@ export type GenerateAgentSystemPromptMutation = {
|
|
|
4414
4422
|
generateAgentSystemPrompt: string;
|
|
4415
4423
|
} | null;
|
|
4416
4424
|
};
|
|
4425
|
+
export type EnableNextPromptSuggestionMutationVariables = Exact<{
|
|
4426
|
+
namespacedname: Scalars['String']['input'];
|
|
4427
|
+
enable: Scalars['Boolean']['input'];
|
|
4428
|
+
}>;
|
|
4429
|
+
export type EnableNextPromptSuggestionMutation = {
|
|
4430
|
+
__typename?: 'Mutation';
|
|
4431
|
+
Agent?: {
|
|
4432
|
+
__typename?: 'AgentMutation';
|
|
4433
|
+
enableNextPromptSuggestion?: any | null;
|
|
4434
|
+
} | null;
|
|
4435
|
+
};
|
|
4417
4436
|
export type GenerateAgentPrologueMutationVariables = Exact<{
|
|
4418
4437
|
namespacedname: Scalars['String']['input'];
|
|
4419
4438
|
currentPrologue: Scalars['String']['input'];
|
|
@@ -4994,6 +5013,7 @@ export type ListAgentInvocationLogsQuery = {
|
|
|
4994
5013
|
createdAt?: any | null;
|
|
4995
5014
|
vote?: any | null;
|
|
4996
5015
|
status?: string | null;
|
|
5016
|
+
userId?: string | null;
|
|
4997
5017
|
events?: Array<{
|
|
4998
5018
|
__typename?: 'Event';
|
|
4999
5019
|
eventType: string;
|
|
@@ -10671,6 +10691,7 @@ export declare const UpdateAgentRerankerDocument: import("../node_modules/.pnpm/
|
|
|
10671
10691
|
export declare const UpdateAgentAudioConfigDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10672
10692
|
export declare const DeleteAgentPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10673
10693
|
export declare const GenerateAgentSystemPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10694
|
+
export declare const EnableNextPromptSuggestionDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10674
10695
|
export declare const GenerateAgentPrologueDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10675
10696
|
export declare const GeneratesAgentUserPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10676
10697
|
export declare const GetAgentReleaseStatusDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -10820,6 +10841,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
10820
10841
|
updateAgentAudioConfig(variables: UpdateAgentAudioConfigMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentAudioConfigMutation>;
|
|
10821
10842
|
deleteAgentPrompt(variables: DeleteAgentPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteAgentPromptMutation>;
|
|
10822
10843
|
generateAgentSystemPrompt(variables: GenerateAgentSystemPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<GenerateAgentSystemPromptMutation>;
|
|
10844
|
+
enableNextPromptSuggestion(variables: EnableNextPromptSuggestionMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<EnableNextPromptSuggestionMutation>;
|
|
10823
10845
|
generateAgentPrologue(variables: GenerateAgentPrologueMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<GenerateAgentPrologueMutation>;
|
|
10824
10846
|
generatesAgentUserPrompt(variables: GeneratesAgentUserPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<GeneratesAgentUserPromptMutation>;
|
|
10825
10847
|
getAgentReleaseStatus(variables: GetAgentReleaseStatusQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetAgentReleaseStatusQuery>;
|
|
@@ -11076,6 +11098,10 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
11076
11098
|
namespacedname: string;
|
|
11077
11099
|
currentSystemPrompt: string;
|
|
11078
11100
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GenerateAgentSystemPromptMutation>;
|
|
11101
|
+
enableNextPromptSuggestion(variables: Exact<{
|
|
11102
|
+
namespacedname: string;
|
|
11103
|
+
enable: boolean;
|
|
11104
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<EnableNextPromptSuggestionMutation>;
|
|
11079
11105
|
generateAgentPrologue(variables: Exact<{
|
|
11080
11106
|
namespacedname: string;
|
|
11081
11107
|
currentPrologue: string;
|