@vendasta/ai-assistants 0.26.0 → 0.28.0
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/esm2020/lib/_internal/assistant.api.service.mjs +7 -2
- package/esm2020/lib/_internal/enums/answer.enum.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/function.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +109 -45
- package/esm2020/lib/_internal/objects/function.mjs +73 -1
- package/esm2020/lib/_internal/objects/index.mjs +3 -3
- package/fesm2015/vendasta-ai-assistants.mjs +186 -44
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +186 -44
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/assistant.api.service.d.ts +3 -2
- package/lib/_internal/enums/answer.enum.d.ts +2 -1
- package/lib/_internal/interfaces/api.interface.d.ts +21 -11
- package/lib/_internal/interfaces/function.interface.d.ts +10 -0
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/objects/api.d.ts +43 -27
- package/lib/_internal/objects/function.d.ts +19 -0
- package/lib/_internal/objects/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, DeleteAssistantRequest, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, SetAssistantConnectionsRequest, UpsertAssistantRequest, UpsertAssistantResponse } from './objects/';
|
|
2
|
-
import { BuildDefaultAssistantRequestInterface, DeleteAssistantRequestInterface, GenerateChatAnswerRequestInterface, GetAssistantRequestInterface, GetChatAnswerFunctionExecutionJobRequestInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAssistantRequestInterface, SetAssistantConnectionsRequestInterface, UpsertAssistantRequestInterface } from './interfaces/';
|
|
1
|
+
import { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, DeleteAssistantRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, SetAssistantConnectionsRequest, UpsertAssistantRequest, UpsertAssistantResponse } from './objects/';
|
|
2
|
+
import { BuildDefaultAssistantRequestInterface, DeleteAssistantRequestInterface, ExecuteFunctionRequestInterface, GenerateChatAnswerRequestInterface, GetAssistantRequestInterface, GetChatAnswerFunctionExecutionJobRequestInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAssistantRequestInterface, SetAssistantConnectionsRequestInterface, UpsertAssistantRequestInterface } from './interfaces/';
|
|
3
3
|
import { HttpResponse } from '@angular/common/http';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -17,6 +17,7 @@ export declare class AssistantApiService {
|
|
|
17
17
|
generateChatAnswer(r: GenerateChatAnswerRequest | GenerateChatAnswerRequestInterface): Observable<GenerateChatAnswerResponse>;
|
|
18
18
|
getChatAnswerFunctionExecutionJob(r: GetChatAnswerFunctionExecutionJobRequest | GetChatAnswerFunctionExecutionJobRequestInterface): Observable<GetChatAnswerFunctionExecutionJobResponse>;
|
|
19
19
|
setAssistantConnections(r: SetAssistantConnectionsRequest | SetAssistantConnectionsRequestInterface): Observable<HttpResponse<null>>;
|
|
20
|
+
executeFunction(r: ExecuteFunctionRequest | ExecuteFunctionRequestInterface): Observable<ExecuteFunctionResponse>;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssistantApiService, never>;
|
|
21
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<AssistantApiService>;
|
|
22
23
|
}
|
|
@@ -12,7 +12,8 @@ export declare enum ChatChannel {
|
|
|
12
12
|
CHAT_CHANNEL_WHATSAPP = 4,
|
|
13
13
|
CHAT_CHANNEL_FACEBOOK = 5,
|
|
14
14
|
CHAT_CHANNEL_INSTAGRAM = 7,
|
|
15
|
-
CHAT_CHANNEL_AUTOMATION = 8
|
|
15
|
+
CHAT_CHANNEL_AUTOMATION = 8,
|
|
16
|
+
CHAT_CHANNEL_PLATFORM = 9
|
|
16
17
|
}
|
|
17
18
|
export declare enum ChatMessageRole {
|
|
18
19
|
CHAT_MESSAGE_ROLE_INVALID = 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AssistantInterface, AssistantKeyInterface } from './assistant.interface';
|
|
2
2
|
import { ChatMessageInterface, ChatUserInfoInterface, ChatAnswerFunctionExecutionJobInterface } from './answer.interface';
|
|
3
3
|
import { ConnectionKeyInterface, ConnectionInterface } from './connection.interface';
|
|
4
|
-
import {
|
|
4
|
+
import { FunctionKeyInterface, FunctionInterface } from './function.interface';
|
|
5
5
|
import { GoalInterface, GoalKeyInterface } from './goal.interface';
|
|
6
6
|
import { KeyValuePairInterface } from './common.interface';
|
|
7
7
|
import { NamespaceInterface } from './namespace.interface';
|
|
@@ -81,21 +81,30 @@ export interface DeployPromptRequestInterface {
|
|
|
81
81
|
id?: string;
|
|
82
82
|
version?: string;
|
|
83
83
|
}
|
|
84
|
-
export interface
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
export interface ExecuteFunctionRequestInterface {
|
|
85
|
+
assistantKey?: AssistantKeyInterface;
|
|
86
|
+
functionKey?: FunctionKeyInterface;
|
|
87
|
+
arguments?: string;
|
|
87
88
|
}
|
|
88
|
-
export interface
|
|
89
|
+
export interface ExecuteFunctionResponseInterface {
|
|
90
|
+
output?: string;
|
|
91
|
+
metadata?: KeyValuePairInterface[];
|
|
92
|
+
}
|
|
93
|
+
export interface ListAssistantRequestFiltersInterface {
|
|
89
94
|
namespace?: NamespaceInterface;
|
|
95
|
+
type?: e.AssistantType;
|
|
90
96
|
}
|
|
91
97
|
export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
92
98
|
type?: e.AssistantType;
|
|
93
99
|
}
|
|
94
|
-
export interface
|
|
100
|
+
export interface ListFunctionRequestFiltersInterface {
|
|
95
101
|
namespace?: NamespaceInterface;
|
|
96
|
-
type?: e.AssistantType;
|
|
97
102
|
}
|
|
98
|
-
export interface
|
|
103
|
+
export interface ListConnectionsRequestFiltersInterface {
|
|
104
|
+
namespace?: NamespaceInterface;
|
|
105
|
+
assistantType?: e.AssistantType;
|
|
106
|
+
}
|
|
107
|
+
export interface ListPromptModuleRequestFiltersInterface {
|
|
99
108
|
namespace?: NamespaceInterface;
|
|
100
109
|
}
|
|
101
110
|
export interface ListGoalsRequestFiltersInterface {
|
|
@@ -109,6 +118,7 @@ export interface GenerateChatAnswerRequestInterface {
|
|
|
109
118
|
chatUserInfo?: ChatUserInfoInterface;
|
|
110
119
|
chatChannel?: e.ChatChannel;
|
|
111
120
|
options?: GenerateChatAnswerRequestOptionsInterface;
|
|
121
|
+
assistantKey?: AssistantKeyInterface;
|
|
112
122
|
}
|
|
113
123
|
export interface GenerateChatAnswerResponseInterface {
|
|
114
124
|
answer?: string;
|
|
@@ -308,14 +318,14 @@ export interface ListPromptVersionsResponseInterface {
|
|
|
308
318
|
promptVersions?: PromptVersionInterface[];
|
|
309
319
|
metadata?: PagedResponseMetadataInterface;
|
|
310
320
|
}
|
|
311
|
-
export interface UpsertAssistantRequestOptionsInterface {
|
|
312
|
-
applyDefaults?: boolean;
|
|
313
|
-
}
|
|
314
321
|
export interface GenerateChatAnswerRequestOptionsInterface {
|
|
315
322
|
includeAllCitations?: boolean;
|
|
316
323
|
enableAsyncFunctions?: boolean;
|
|
317
324
|
maxTokens?: number;
|
|
318
325
|
}
|
|
326
|
+
export interface UpsertAssistantRequestOptionsInterface {
|
|
327
|
+
applyDefaults?: boolean;
|
|
328
|
+
}
|
|
319
329
|
export interface CreatePromptModuleVersionRequestOptionsInterface {
|
|
320
330
|
shouldDeploy?: boolean;
|
|
321
331
|
}
|
|
@@ -11,6 +11,11 @@ export interface FunctionInterface {
|
|
|
11
11
|
updated?: Date;
|
|
12
12
|
headers?: FunctionHeaderInterface[];
|
|
13
13
|
managed?: boolean;
|
|
14
|
+
authStrategy?: FunctionAuthStrategyInterface;
|
|
15
|
+
}
|
|
16
|
+
export interface FunctionAuthStrategyInterface {
|
|
17
|
+
unspecified?: FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface;
|
|
18
|
+
platformManaged?: FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface;
|
|
14
19
|
}
|
|
15
20
|
export interface FunctionHeaderInterface {
|
|
16
21
|
key?: string;
|
|
@@ -29,3 +34,8 @@ export interface FunctionParameterInterface {
|
|
|
29
34
|
value?: string;
|
|
30
35
|
location?: e.FunctionParameterParameterLocation;
|
|
31
36
|
}
|
|
37
|
+
export interface FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface {
|
|
38
|
+
requiredScopes?: string[];
|
|
39
|
+
}
|
|
40
|
+
export interface FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface {
|
|
41
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { NamespaceAccountGroupNamespaceInterface, NamespaceAccountGroupsForGroupNamespaceInterface, NamespaceAccountGroupsForPartnerNamespaceInterface, NamespaceGlobalNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
|
|
2
|
-
export { FunctionInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, } from './function.interface';
|
|
2
|
+
export { FunctionInterface, FunctionAuthStrategyInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface, FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface, } from './function.interface';
|
|
3
3
|
export { PromptInterface, PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInterface, PromptVersionInterface, } from './prompt.interface';
|
|
4
4
|
export { GoalInterface, GoalKeyInterface, } from './goal.interface';
|
|
5
5
|
export { KeyValuePairInterface, } from './common.interface';
|
|
@@ -8,4 +8,4 @@ export { ConnectionInterface, ConnectionKeyInterface, } from './connection.inter
|
|
|
8
8
|
export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, } from './answer.interface';
|
|
9
9
|
export { AccessInterface, } from './annotations.interface';
|
|
10
10
|
export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
|
|
11
|
-
export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface,
|
|
11
|
+
export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface, ListAssistantRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, ListFunctionRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListPromptModuleRequestFiltersInterface, ListGoalsRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptModuleVersionRequestInterface, GetDeployedPromptModuleVersionResponseInterface, GetDeployedPromptVersionRequestInterface, GetDeployedPromptVersionResponseInterface, GetFunctionRequestInterface, GetFunctionResponseInterface, GetGoalRequestInterface, GetGoalResponseInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionResponseInterface, GetMultiDeployedPromptVersionRequestInterface, GetMultiDeployedPromptVersionResponseInterface, GetMultiFunctionRequestInterface, GetMultiFunctionResponseInterface, GetMultiGoalRequestInterface, GetMultiGoalResponseInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionResponseInterface, GetPromptModuleRequestInterface, GetPromptModuleResponseInterface, GetPromptModuleVersionRequestInterface, GetPromptModuleVersionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, GoalsDisabledForAccountGroupRequestInterface, GoalsDisabledForAccountGroupResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListFunctionRequestInterface, ListFunctionResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, GenerateChatAnswerRequestOptionsInterface, UpsertAssistantRequestOptionsInterface, CreatePromptModuleVersionRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdateGoalRequestInterface, UpdatePromptModuleRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, } from './api.interface';
|
|
@@ -2,7 +2,7 @@ import * as i from '../interfaces';
|
|
|
2
2
|
import { Assistant, AssistantKey } from './assistant';
|
|
3
3
|
import { ChatMessage, ChatUserInfo, ChatAnswerFunctionExecutionJob } from './answer';
|
|
4
4
|
import { ConnectionKey, Connection } from './connection';
|
|
5
|
-
import {
|
|
5
|
+
import { FunctionKey, Function } from './function';
|
|
6
6
|
import { Goal, GoalKey } from './goal';
|
|
7
7
|
import { KeyValuePair } from './common';
|
|
8
8
|
import { Namespace } from './namespace';
|
|
@@ -134,17 +134,27 @@ export declare class DeployPromptRequest implements i.DeployPromptRequestInterfa
|
|
|
134
134
|
constructor(kwargs?: i.DeployPromptRequestInterface);
|
|
135
135
|
toApiJson(): object;
|
|
136
136
|
}
|
|
137
|
-
export declare class
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
export declare class ExecuteFunctionRequest implements i.ExecuteFunctionRequestInterface {
|
|
138
|
+
assistantKey: AssistantKey;
|
|
139
|
+
functionKey: FunctionKey;
|
|
140
|
+
arguments: string;
|
|
141
|
+
static fromProto(proto: any): ExecuteFunctionRequest;
|
|
142
|
+
constructor(kwargs?: i.ExecuteFunctionRequestInterface);
|
|
142
143
|
toApiJson(): object;
|
|
143
144
|
}
|
|
144
|
-
export declare class
|
|
145
|
+
export declare class ExecuteFunctionResponse implements i.ExecuteFunctionResponseInterface {
|
|
146
|
+
output: string;
|
|
147
|
+
metadata: KeyValuePair[];
|
|
148
|
+
static fromProto(proto: any): ExecuteFunctionResponse;
|
|
149
|
+
constructor(kwargs?: i.ExecuteFunctionResponseInterface);
|
|
150
|
+
toApiJson(): object;
|
|
151
|
+
}
|
|
152
|
+
export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFiltersInterface {
|
|
145
153
|
namespace: Namespace;
|
|
146
|
-
|
|
147
|
-
|
|
154
|
+
type: e.GoalType;
|
|
155
|
+
supportedChannels: e.GoalChannel[];
|
|
156
|
+
static fromProto(proto: any): ListGoalsRequestFilters;
|
|
157
|
+
constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
|
|
148
158
|
toApiJson(): object;
|
|
149
159
|
}
|
|
150
160
|
export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
@@ -153,6 +163,12 @@ export declare class ListAllAssistantsAssociatedToConnectionRequestFilters imple
|
|
|
153
163
|
constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
|
|
154
164
|
toApiJson(): object;
|
|
155
165
|
}
|
|
166
|
+
export declare class ListFunctionRequestFilters implements i.ListFunctionRequestFiltersInterface {
|
|
167
|
+
namespace: Namespace;
|
|
168
|
+
static fromProto(proto: any): ListFunctionRequestFilters;
|
|
169
|
+
constructor(kwargs?: i.ListFunctionRequestFiltersInterface);
|
|
170
|
+
toApiJson(): object;
|
|
171
|
+
}
|
|
156
172
|
export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
|
|
157
173
|
namespace: Namespace;
|
|
158
174
|
type: e.AssistantType;
|
|
@@ -160,18 +176,17 @@ export declare class ListAssistantRequestFilters implements i.ListAssistantReque
|
|
|
160
176
|
constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
|
|
161
177
|
toApiJson(): object;
|
|
162
178
|
}
|
|
163
|
-
export declare class
|
|
179
|
+
export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
|
|
164
180
|
namespace: Namespace;
|
|
165
|
-
static fromProto(proto: any):
|
|
166
|
-
constructor(kwargs?: i.
|
|
181
|
+
static fromProto(proto: any): ListPromptModuleRequestFilters;
|
|
182
|
+
constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
|
|
167
183
|
toApiJson(): object;
|
|
168
184
|
}
|
|
169
|
-
export declare class
|
|
185
|
+
export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
|
|
170
186
|
namespace: Namespace;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
|
|
187
|
+
assistantType: e.AssistantType;
|
|
188
|
+
static fromProto(proto: any): ListConnectionsRequestFilters;
|
|
189
|
+
constructor(kwargs?: i.ListConnectionsRequestFiltersInterface);
|
|
175
190
|
toApiJson(): object;
|
|
176
191
|
}
|
|
177
192
|
export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRequestInterface {
|
|
@@ -180,6 +195,7 @@ export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRe
|
|
|
180
195
|
chatUserInfo: ChatUserInfo;
|
|
181
196
|
chatChannel: e.ChatChannel;
|
|
182
197
|
options: GenerateChatAnswerRequestOptions;
|
|
198
|
+
assistantKey: AssistantKey;
|
|
183
199
|
static fromProto(proto: any): GenerateChatAnswerRequest;
|
|
184
200
|
constructor(kwargs?: i.GenerateChatAnswerRequestInterface);
|
|
185
201
|
toApiJson(): object;
|
|
@@ -541,10 +557,12 @@ export declare class ListPromptVersionsResponse implements i.ListPromptVersionsR
|
|
|
541
557
|
constructor(kwargs?: i.ListPromptVersionsResponseInterface);
|
|
542
558
|
toApiJson(): object;
|
|
543
559
|
}
|
|
544
|
-
export declare class
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
560
|
+
export declare class GenerateChatAnswerRequestOptions implements i.GenerateChatAnswerRequestOptionsInterface {
|
|
561
|
+
includeAllCitations: boolean;
|
|
562
|
+
enableAsyncFunctions: boolean;
|
|
563
|
+
maxTokens: number;
|
|
564
|
+
static fromProto(proto: any): GenerateChatAnswerRequestOptions;
|
|
565
|
+
constructor(kwargs?: i.GenerateChatAnswerRequestOptionsInterface);
|
|
548
566
|
toApiJson(): object;
|
|
549
567
|
}
|
|
550
568
|
export declare class UpsertAssistantRequestOptions implements i.UpsertAssistantRequestOptionsInterface {
|
|
@@ -553,12 +571,10 @@ export declare class UpsertAssistantRequestOptions implements i.UpsertAssistantR
|
|
|
553
571
|
constructor(kwargs?: i.UpsertAssistantRequestOptionsInterface);
|
|
554
572
|
toApiJson(): object;
|
|
555
573
|
}
|
|
556
|
-
export declare class
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
static fromProto(proto: any): GenerateChatAnswerRequestOptions;
|
|
561
|
-
constructor(kwargs?: i.GenerateChatAnswerRequestOptionsInterface);
|
|
574
|
+
export declare class CreatePromptModuleVersionRequestOptions implements i.CreatePromptModuleVersionRequestOptionsInterface {
|
|
575
|
+
shouldDeploy: boolean;
|
|
576
|
+
static fromProto(proto: any): CreatePromptModuleVersionRequestOptions;
|
|
577
|
+
constructor(kwargs?: i.CreatePromptModuleVersionRequestOptionsInterface);
|
|
562
578
|
toApiJson(): object;
|
|
563
579
|
}
|
|
564
580
|
export declare class SetAssistantConnectionsRequest implements i.SetAssistantConnectionsRequestInterface {
|
|
@@ -13,10 +13,18 @@ export declare class Function implements i.FunctionInterface {
|
|
|
13
13
|
updated: Date;
|
|
14
14
|
headers: FunctionHeader[];
|
|
15
15
|
managed: boolean;
|
|
16
|
+
authStrategy: FunctionAuthStrategy;
|
|
16
17
|
static fromProto(proto: any): Function;
|
|
17
18
|
constructor(kwargs?: i.FunctionInterface);
|
|
18
19
|
toApiJson(): object;
|
|
19
20
|
}
|
|
21
|
+
export declare class FunctionAuthStrategy implements i.FunctionAuthStrategyInterface {
|
|
22
|
+
unspecified: FunctionAuthStrategyUnspecifiedFunctionAuthStrategy;
|
|
23
|
+
platformManaged: FunctionAuthStrategyPlatformManagedFunctionAuthStrategy;
|
|
24
|
+
static fromProto(proto: any): FunctionAuthStrategy;
|
|
25
|
+
constructor(kwargs?: i.FunctionAuthStrategyInterface);
|
|
26
|
+
toApiJson(): object;
|
|
27
|
+
}
|
|
20
28
|
export declare class FunctionHeader implements i.FunctionHeaderInterface {
|
|
21
29
|
key: string;
|
|
22
30
|
value: string;
|
|
@@ -43,3 +51,14 @@ export declare class FunctionParameter implements i.FunctionParameterInterface {
|
|
|
43
51
|
constructor(kwargs?: i.FunctionParameterInterface);
|
|
44
52
|
toApiJson(): object;
|
|
45
53
|
}
|
|
54
|
+
export declare class FunctionAuthStrategyPlatformManagedFunctionAuthStrategy implements i.FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface {
|
|
55
|
+
requiredScopes: string[];
|
|
56
|
+
static fromProto(proto: any): FunctionAuthStrategyPlatformManagedFunctionAuthStrategy;
|
|
57
|
+
constructor(kwargs?: i.FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface);
|
|
58
|
+
toApiJson(): object;
|
|
59
|
+
}
|
|
60
|
+
export declare class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy implements i.FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface {
|
|
61
|
+
static fromProto(proto: any): FunctionAuthStrategyUnspecifiedFunctionAuthStrategy;
|
|
62
|
+
constructor(kwargs?: i.FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface);
|
|
63
|
+
toApiJson(): object;
|
|
64
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
|
|
2
|
-
export { Function, FunctionHeader, FunctionKey, FunctionParameter, } from './function';
|
|
2
|
+
export { Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, } from './function';
|
|
3
3
|
export { Prompt, PromptModule, PromptModuleKey, PromptModuleVersion, PromptVersion, } from './prompt';
|
|
4
4
|
export { Goal, GoalKey, } from './goal';
|
|
5
5
|
export { KeyValuePair, } from './common';
|
|
@@ -8,4 +8,4 @@ export { Connection, ConnectionKey, } from './connection';
|
|
|
8
8
|
export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, } from './answer';
|
|
9
9
|
export { Access, } from './annotations';
|
|
10
10
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
11
|
-
export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest,
|
|
11
|
+
export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, ListConnectionsRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, ListFunctionRequestFilters, ListGoalsRequestFilters, ListPromptModuleRequestFilters, ListAssistantRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListConnectionsRequest, ListConnectionsResponse, ListFunctionRequest, ListFunctionResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, GenerateChatAnswerRequestOptions, UpsertAssistantRequestOptions, CreatePromptModuleVersionRequestOptions, SetAssistantConnectionsRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, } from './api';
|