@vendasta/ai-assistants 0.37.0 → 0.39.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/index.mjs +3 -1
- package/esm2020/lib/_internal/enums/integration-tests.enum.mjs +13 -0
- package/esm2020/lib/_internal/enums/model.enum.mjs +24 -0
- package/esm2020/lib/_internal/integration-test.api.service.mjs +6 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/integration-tests.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/model.interface.mjs +8 -0
- package/esm2020/lib/_internal/objects/api.mjs +133 -31
- package/esm2020/lib/_internal/objects/assistant.mjs +8 -1
- package/esm2020/lib/_internal/objects/index.mjs +4 -3
- package/esm2020/lib/_internal/objects/integration-tests.mjs +63 -1
- package/esm2020/lib/_internal/objects/model.mjs +46 -0
- package/fesm2015/vendasta-ai-assistants.mjs +298 -39
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +298 -39
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/assistant.api.service.d.ts +3 -2
- package/lib/_internal/enums/index.d.ts +2 -0
- package/lib/_internal/enums/integration-tests.enum.d.ts +5 -0
- package/lib/_internal/enums/model.enum.d.ts +15 -0
- package/lib/_internal/integration-test.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +28 -13
- package/lib/_internal/interfaces/assistant.interface.d.ts +2 -0
- package/lib/_internal/interfaces/index.d.ts +3 -2
- package/lib/_internal/interfaces/integration-tests.interface.d.ts +11 -0
- package/lib/_internal/interfaces/model.interface.d.ts +8 -0
- package/lib/_internal/objects/api.d.ts +42 -15
- package/lib/_internal/objects/assistant.d.ts +2 -0
- package/lib/_internal/objects/index.d.ts +3 -2
- package/lib/_internal/objects/integration-tests.d.ts +17 -0
- package/lib/_internal/objects/model.d.ts +13 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CreateAssistantRequest, CreateAssistantResponse, DeleteAssistantRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, SetAssistantConnectionsRequest, UpdateAssistantRequest, UpsertAssistantRequest, UpsertAssistantResponse } from './objects/';
|
|
2
|
-
import { BuildDefaultAssistantRequestInterface, CreateAssistantRequestInterface, DeleteAssistantRequestInterface, ExecuteFunctionRequestInterface, GenerateChatAnswerRequestInterface, GetAssistantRequestInterface, GetChatAnswerFunctionExecutionJobRequestInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAssistantRequestInterface, SetAssistantConnectionsRequestInterface, UpdateAssistantRequestInterface, UpsertAssistantRequestInterface } from './interfaces/';
|
|
1
|
+
import { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CreateAssistantRequest, CreateAssistantResponse, DeleteAssistantRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsResponse, SetAssistantConnectionsRequest, UpdateAssistantRequest, UpsertAssistantRequest, UpsertAssistantResponse } from './objects/';
|
|
2
|
+
import { BuildDefaultAssistantRequestInterface, CreateAssistantRequestInterface, DeleteAssistantRequestInterface, ExecuteFunctionRequestInterface, GenerateChatAnswerRequestInterface, GetAssistantRequestInterface, GetChatAnswerFunctionExecutionJobRequestInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAssistantRequestInterface, ListAvailableModelsRequestInterface, SetAssistantConnectionsRequestInterface, UpdateAssistantRequestInterface, 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";
|
|
@@ -20,6 +20,7 @@ export declare class AssistantApiService {
|
|
|
20
20
|
getChatAnswerFunctionExecutionJob(r: GetChatAnswerFunctionExecutionJobRequest | GetChatAnswerFunctionExecutionJobRequestInterface): Observable<GetChatAnswerFunctionExecutionJobResponse>;
|
|
21
21
|
setAssistantConnections(r: SetAssistantConnectionsRequest | SetAssistantConnectionsRequestInterface): Observable<HttpResponse<null>>;
|
|
22
22
|
executeFunction(r: ExecuteFunctionRequest | ExecuteFunctionRequestInterface): Observable<ExecuteFunctionResponse>;
|
|
23
|
+
listAvailableModels(r: ListAvailableModelsRequest | ListAvailableModelsRequestInterface): Observable<ListAvailableModelsResponse>;
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssistantApiService, never>;
|
|
24
25
|
static ɵprov: i0.ɵɵInjectableDeclaration<AssistantApiService>;
|
|
25
26
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { FunctionParameterParameterLocation, } from './function.enum';
|
|
2
2
|
export { GoalChannel, GoalType, } from './goal.enum';
|
|
3
|
+
export { ModelType, ModelVendor, } from './model.enum';
|
|
3
4
|
export { AssistantType, VendorModel, } from './assistant.enum';
|
|
4
5
|
export { ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessageRole, } from './answer.enum';
|
|
6
|
+
export { SortDirection, } from './integration-tests.enum';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum ModelType {
|
|
2
|
+
TYPE_UNSET = 0,
|
|
3
|
+
TYPE_LARGE_LANGUAGE_MODEL = 1,
|
|
4
|
+
TYPE_SPEECH_TO_TEXT = 2,
|
|
5
|
+
TYPE_TEXT_TO_SPEECH = 3,
|
|
6
|
+
TYPE_SPEECH_TO_SPEECH = 4,
|
|
7
|
+
TYPE_TEXT_TO_IMAGE = 5,
|
|
8
|
+
TYPE_TEXT_TO_VIDEO = 6
|
|
9
|
+
}
|
|
10
|
+
export declare enum ModelVendor {
|
|
11
|
+
VENDOR_UNSET = 0,
|
|
12
|
+
VENDOR_OPENAI = 1,
|
|
13
|
+
VENDOR_GOOGLE = 2,
|
|
14
|
+
VENDOR_DEEPGRAM = 3
|
|
15
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, UpsertTestCasesRequest } from './objects/';
|
|
2
|
-
import { DeleteTestCasesRequestInterface, GetTestRunRequestInterface, ListTestCasesByAssistantRequestInterface, ListTestRunsByAssistantRequestInterface, RunTestsRequestInterface, UpsertTestCasesRequestInterface } from './interfaces/';
|
|
1
|
+
import { CancelTestRunRequest, DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, UpsertTestCasesRequest } from './objects/';
|
|
2
|
+
import { CancelTestRunRequestInterface, DeleteTestCasesRequestInterface, GetTestRunRequestInterface, ListTestCasesByAssistantRequestInterface, ListTestRunsByAssistantRequestInterface, RunTestsRequestInterface, UpsertTestCasesRequestInterface } from './interfaces/';
|
|
3
3
|
import { HttpResponse } from '@angular/common/http';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -14,6 +14,7 @@ export declare class IntegrationTestApiService {
|
|
|
14
14
|
runTests(r: RunTestsRequest | RunTestsRequestInterface): Observable<RunTestsResponse>;
|
|
15
15
|
listTestRunsByAssistant(r: ListTestRunsByAssistantRequest | ListTestRunsByAssistantRequestInterface): Observable<ListTestRunsByAssistantResponse>;
|
|
16
16
|
getTestRun(r: GetTestRunRequest | GetTestRunRequestInterface): Observable<GetTestRunResponse>;
|
|
17
|
+
cancelTestRun(r: CancelTestRunRequest | CancelTestRunRequestInterface): Observable<HttpResponse<null>>;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<IntegrationTestApiService, never>;
|
|
18
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<IntegrationTestApiService>;
|
|
19
20
|
}
|
|
@@ -5,6 +5,7 @@ import { FieldMaskInterface } from './field-mask.interface';
|
|
|
5
5
|
import { FunctionKeyInterface, FunctionInterface } from './function.interface';
|
|
6
6
|
import { GoalInterface, GoalKeyInterface } from './goal.interface';
|
|
7
7
|
import { KeyValuePairInterface } from './common.interface';
|
|
8
|
+
import { ModelInterface } from './model.interface';
|
|
8
9
|
import { NamespaceInterface } from './namespace.interface';
|
|
9
10
|
import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
|
|
10
11
|
import { PromptModuleInterface, PromptModuleVersionInterface, PromptInterface, PromptVersionInterface, PromptModuleKeyInterface } from './prompt.interface';
|
|
@@ -98,22 +99,19 @@ export interface ExecuteFunctionResponseInterface {
|
|
|
98
99
|
output?: string;
|
|
99
100
|
metadata?: KeyValuePairInterface[];
|
|
100
101
|
}
|
|
101
|
-
export interface
|
|
102
|
+
export interface ListPromptModuleRequestFiltersInterface {
|
|
102
103
|
namespace?: NamespaceInterface;
|
|
103
104
|
}
|
|
104
105
|
export interface ListConnectionsRequestFiltersInterface {
|
|
105
106
|
namespace?: NamespaceInterface;
|
|
106
107
|
assistantType?: e.AssistantType;
|
|
107
108
|
}
|
|
108
|
-
export interface
|
|
109
|
+
export interface ListFunctionRequestFiltersInterface {
|
|
109
110
|
namespace?: NamespaceInterface;
|
|
110
111
|
}
|
|
111
|
-
export interface
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
export interface ListAssistantRequestFiltersInterface {
|
|
115
|
-
namespace?: NamespaceInterface;
|
|
116
|
-
type?: e.AssistantType;
|
|
112
|
+
export interface ListAvailableModelsRequestFiltersInterface {
|
|
113
|
+
vendor?: e.ModelVendor[];
|
|
114
|
+
type?: e.ModelType[];
|
|
117
115
|
}
|
|
118
116
|
export interface ListGoalsRequestFiltersInterface {
|
|
119
117
|
namespace?: NamespaceInterface;
|
|
@@ -121,6 +119,13 @@ export interface ListGoalsRequestFiltersInterface {
|
|
|
121
119
|
supportedChannels?: e.GoalChannel[];
|
|
122
120
|
namespaces?: NamespaceInterface[];
|
|
123
121
|
}
|
|
122
|
+
export interface ListAssistantRequestFiltersInterface {
|
|
123
|
+
namespace?: NamespaceInterface;
|
|
124
|
+
type?: e.AssistantType;
|
|
125
|
+
}
|
|
126
|
+
export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
127
|
+
type?: e.AssistantType;
|
|
128
|
+
}
|
|
124
129
|
export interface GenerateChatAnswerRequestInterface {
|
|
125
130
|
connectionKey?: ConnectionKeyInterface;
|
|
126
131
|
chatHistory?: ChatMessageInterface[];
|
|
@@ -138,6 +143,7 @@ export interface GenerateChatAnswerResponseInterface {
|
|
|
138
143
|
export interface GetAssistantRequestInterface {
|
|
139
144
|
id?: string;
|
|
140
145
|
namespace?: NamespaceInterface;
|
|
146
|
+
options?: GetAssistantRequestOptionsInterface;
|
|
141
147
|
}
|
|
142
148
|
export interface GetAssistantResponseInterface {
|
|
143
149
|
assistant?: AssistantInterface;
|
|
@@ -270,6 +276,12 @@ export interface ListAssistantResponseInterface {
|
|
|
270
276
|
assistants?: AssistantInterface[];
|
|
271
277
|
metadata?: PagedResponseMetadataInterface;
|
|
272
278
|
}
|
|
279
|
+
export interface ListAvailableModelsRequestInterface {
|
|
280
|
+
filters?: ListAvailableModelsRequestFiltersInterface;
|
|
281
|
+
}
|
|
282
|
+
export interface ListAvailableModelsResponseInterface {
|
|
283
|
+
models?: ModelInterface[];
|
|
284
|
+
}
|
|
273
285
|
export interface ListConnectionsRequestInterface {
|
|
274
286
|
filters?: ListConnectionsRequestFiltersInterface;
|
|
275
287
|
pagingOptions?: PagedRequestOptionsInterface;
|
|
@@ -329,18 +341,21 @@ export interface ListPromptVersionsResponseInterface {
|
|
|
329
341
|
promptVersions?: PromptVersionInterface[];
|
|
330
342
|
metadata?: PagedResponseMetadataInterface;
|
|
331
343
|
}
|
|
332
|
-
export interface
|
|
333
|
-
|
|
344
|
+
export interface GetAssistantRequestOptionsInterface {
|
|
345
|
+
skipGoalsHydration?: boolean;
|
|
334
346
|
}
|
|
335
|
-
export interface
|
|
336
|
-
|
|
347
|
+
export interface UpsertAssistantRequestOptionsInterface {
|
|
348
|
+
applyDefaults?: boolean;
|
|
337
349
|
}
|
|
338
350
|
export interface GenerateChatAnswerRequestOptionsInterface {
|
|
339
351
|
includeAllCitations?: boolean;
|
|
340
352
|
enableAsyncFunctions?: boolean;
|
|
341
353
|
maxTokens?: number;
|
|
342
354
|
}
|
|
343
|
-
export interface
|
|
355
|
+
export interface CreatePromptModuleVersionRequestOptionsInterface {
|
|
356
|
+
shouldDeploy?: boolean;
|
|
357
|
+
}
|
|
358
|
+
export interface CreateAssistantRequestOptionsInterface {
|
|
344
359
|
applyDefaults?: boolean;
|
|
345
360
|
}
|
|
346
361
|
export interface SetAssistantConnectionsRequestInterface {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GoalInterface } from './goal.interface';
|
|
2
2
|
import { KeyValuePairInterface } from './common.interface';
|
|
3
|
+
import { ModelInterface } from './model.interface';
|
|
3
4
|
import { NamespaceInterface } from './namespace.interface';
|
|
4
5
|
import * as e from '../enums';
|
|
5
6
|
export interface AssistantInterface {
|
|
@@ -19,6 +20,7 @@ export interface AssistantKeyInterface {
|
|
|
19
20
|
export interface ConfigInterface {
|
|
20
21
|
inboxConfig?: ConfigInboxConfigInterface;
|
|
21
22
|
voiceConfig?: ConfigVoiceConfigInterface;
|
|
23
|
+
models?: ModelInterface[];
|
|
22
24
|
}
|
|
23
25
|
export interface ConfigurableGoalInterface {
|
|
24
26
|
goal?: GoalInterface;
|
|
@@ -3,11 +3,12 @@ export { FunctionInterface, FunctionAuthStrategyInterface, FunctionHeaderInterfa
|
|
|
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';
|
|
6
|
+
export { ModelInterface, } from './model.interface';
|
|
6
7
|
export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, DeepgramConfigInterface, ConfigInboxConfigInterface, ModelConfigInterface, OpenAIRealtimeConfigInterface, OpenAIRealtimeConfigTurnDetectionInterface, ConfigVoiceConfigInterface, } from './assistant.interface';
|
|
7
8
|
export { ConnectionInterface, ConnectionKeyInterface, } from './connection.interface';
|
|
8
9
|
export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, } from './answer.interface';
|
|
9
10
|
export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
|
|
10
|
-
export { DeleteTestCasesRequestInterface, GetTestRunRequestInterface, GetTestRunResponseInterface, ListTestCasesByAssistantRequestInterface, ListTestCasesByAssistantResponseInterface, ListTestRunsByAssistantRequestInterface, ListTestRunsByAssistantResponseInterface, RunTestsRequestInterface, RunTestsResponseInterface, TestCaseInterface, TestResultInterface, TestRunInterface, UpsertTestCasesRequestInterface, } from './integration-tests.interface';
|
|
11
|
+
export { CancelTestRunRequestInterface, DeleteTestCasesRequestInterface, GetTestRunRequestInterface, GetTestRunResponseInterface, ListTestCasesByAssistantRequestInterface, ListTestCasesByAssistantResponseInterface, ListTestRunsByAssistantRequestInterface, ListTestRunsByAssistantResponseInterface, RunTestsRequestInterface, RunTestsResponseInterface, SortOptionsInterface, TestCaseInterface, TestResultInterface, TestRunInterface, UpsertTestCasesRequestInterface, } from './integration-tests.interface';
|
|
11
12
|
export { AccessInterface, } from './annotations.interface';
|
|
12
13
|
export { FieldMaskInterface, } from './field-mask.interface';
|
|
13
|
-
export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateAssistantRequestInterface, CreateAssistantResponseInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface,
|
|
14
|
+
export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateAssistantRequestInterface, CreateAssistantResponseInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface, ListPromptModuleRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListFunctionRequestFiltersInterface, ListAvailableModelsRequestFiltersInterface, ListGoalsRequestFiltersInterface, ListAssistantRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, 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, ListAvailableModelsRequestInterface, ListAvailableModelsResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListFunctionRequestInterface, ListFunctionResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, GenerateChatAnswerRequestOptionsInterface, CreateAssistantRequestOptionsInterface, GetAssistantRequestOptionsInterface, CreatePromptModuleVersionRequestOptionsInterface, UpsertAssistantRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdateAssistantRequestInterface, UpdateGoalRequestInterface, UpdatePromptModuleRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, } from './api.interface';
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { AssistantKeyInterface } from './assistant.interface';
|
|
2
2
|
import { ChatMessageInterface } from './answer.interface';
|
|
3
3
|
import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
|
|
4
|
+
import * as e from '../enums';
|
|
5
|
+
export interface CancelTestRunRequestInterface {
|
|
6
|
+
assistant?: AssistantKeyInterface;
|
|
7
|
+
id?: string;
|
|
8
|
+
}
|
|
4
9
|
export interface DeleteTestCasesRequestInterface {
|
|
5
10
|
assistant?: AssistantKeyInterface;
|
|
6
11
|
testCaseIds?: string[];
|
|
@@ -15,6 +20,8 @@ export interface GetTestRunResponseInterface {
|
|
|
15
20
|
export interface ListTestCasesByAssistantRequestInterface {
|
|
16
21
|
assistant?: AssistantKeyInterface;
|
|
17
22
|
pagingOptions?: PagedRequestOptionsInterface;
|
|
23
|
+
searchTerm?: string;
|
|
24
|
+
sortOptions?: SortOptionsInterface;
|
|
18
25
|
}
|
|
19
26
|
export interface ListTestCasesByAssistantResponseInterface {
|
|
20
27
|
testCases?: TestCaseInterface[];
|
|
@@ -35,6 +42,10 @@ export interface RunTestsRequestInterface {
|
|
|
35
42
|
export interface RunTestsResponseInterface {
|
|
36
43
|
buildUrl?: string;
|
|
37
44
|
}
|
|
45
|
+
export interface SortOptionsInterface {
|
|
46
|
+
direction?: e.SortDirection;
|
|
47
|
+
field?: string;
|
|
48
|
+
}
|
|
38
49
|
export interface TestCaseInterface {
|
|
39
50
|
id?: string;
|
|
40
51
|
name?: string;
|
|
@@ -6,6 +6,7 @@ import { FieldMask } from './field-mask';
|
|
|
6
6
|
import { FunctionKey, Function } from './function';
|
|
7
7
|
import { Goal, GoalKey } from './goal';
|
|
8
8
|
import { KeyValuePair } from './common';
|
|
9
|
+
import { Model } from './model';
|
|
9
10
|
import { Namespace } from './namespace';
|
|
10
11
|
import { PagedRequestOptions, PagedResponseMetadata } from './paging';
|
|
11
12
|
import { PromptModule, PromptModuleVersion, Prompt, PromptVersion, PromptModuleKey } from './prompt';
|
|
@@ -163,13 +164,10 @@ export declare class ExecuteFunctionResponse implements i.ExecuteFunctionRespons
|
|
|
163
164
|
constructor(kwargs?: i.ExecuteFunctionResponseInterface);
|
|
164
165
|
toApiJson(): object;
|
|
165
166
|
}
|
|
166
|
-
export declare class
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
namespaces: Namespace[];
|
|
171
|
-
static fromProto(proto: any): ListGoalsRequestFilters;
|
|
172
|
-
constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
|
|
167
|
+
export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
168
|
+
type: e.AssistantType;
|
|
169
|
+
static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
|
|
170
|
+
constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
|
|
173
171
|
toApiJson(): object;
|
|
174
172
|
}
|
|
175
173
|
export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
|
|
@@ -185,10 +183,19 @@ export declare class ListFunctionRequestFilters implements i.ListFunctionRequest
|
|
|
185
183
|
constructor(kwargs?: i.ListFunctionRequestFiltersInterface);
|
|
186
184
|
toApiJson(): object;
|
|
187
185
|
}
|
|
188
|
-
export declare class
|
|
189
|
-
|
|
190
|
-
static fromProto(proto: any):
|
|
191
|
-
constructor(kwargs?: i.
|
|
186
|
+
export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
|
|
187
|
+
namespace: Namespace;
|
|
188
|
+
static fromProto(proto: any): ListPromptModuleRequestFilters;
|
|
189
|
+
constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
|
|
190
|
+
toApiJson(): object;
|
|
191
|
+
}
|
|
192
|
+
export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFiltersInterface {
|
|
193
|
+
namespace: Namespace;
|
|
194
|
+
type: e.GoalType;
|
|
195
|
+
supportedChannels: e.GoalChannel[];
|
|
196
|
+
namespaces: Namespace[];
|
|
197
|
+
static fromProto(proto: any): ListGoalsRequestFilters;
|
|
198
|
+
constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
|
|
192
199
|
toApiJson(): object;
|
|
193
200
|
}
|
|
194
201
|
export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
|
|
@@ -198,10 +205,11 @@ export declare class ListAssistantRequestFilters implements i.ListAssistantReque
|
|
|
198
205
|
constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
|
|
199
206
|
toApiJson(): object;
|
|
200
207
|
}
|
|
201
|
-
export declare class
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
208
|
+
export declare class ListAvailableModelsRequestFilters implements i.ListAvailableModelsRequestFiltersInterface {
|
|
209
|
+
vendor: e.ModelVendor[];
|
|
210
|
+
type: e.ModelType[];
|
|
211
|
+
static fromProto(proto: any): ListAvailableModelsRequestFilters;
|
|
212
|
+
constructor(kwargs?: i.ListAvailableModelsRequestFiltersInterface);
|
|
205
213
|
toApiJson(): object;
|
|
206
214
|
}
|
|
207
215
|
export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRequestInterface {
|
|
@@ -227,6 +235,7 @@ export declare class GenerateChatAnswerResponse implements i.GenerateChatAnswerR
|
|
|
227
235
|
export declare class GetAssistantRequest implements i.GetAssistantRequestInterface {
|
|
228
236
|
id: string;
|
|
229
237
|
namespace: Namespace;
|
|
238
|
+
options: GetAssistantRequestOptions;
|
|
230
239
|
static fromProto(proto: any): GetAssistantRequest;
|
|
231
240
|
constructor(kwargs?: i.GetAssistantRequestInterface);
|
|
232
241
|
toApiJson(): object;
|
|
@@ -473,6 +482,18 @@ export declare class ListAssistantResponse implements i.ListAssistantResponseInt
|
|
|
473
482
|
constructor(kwargs?: i.ListAssistantResponseInterface);
|
|
474
483
|
toApiJson(): object;
|
|
475
484
|
}
|
|
485
|
+
export declare class ListAvailableModelsRequest implements i.ListAvailableModelsRequestInterface {
|
|
486
|
+
filters: ListAvailableModelsRequestFilters;
|
|
487
|
+
static fromProto(proto: any): ListAvailableModelsRequest;
|
|
488
|
+
constructor(kwargs?: i.ListAvailableModelsRequestInterface);
|
|
489
|
+
toApiJson(): object;
|
|
490
|
+
}
|
|
491
|
+
export declare class ListAvailableModelsResponse implements i.ListAvailableModelsResponseInterface {
|
|
492
|
+
models: Model[];
|
|
493
|
+
static fromProto(proto: any): ListAvailableModelsResponse;
|
|
494
|
+
constructor(kwargs?: i.ListAvailableModelsResponseInterface);
|
|
495
|
+
toApiJson(): object;
|
|
496
|
+
}
|
|
476
497
|
export declare class ListConnectionsRequest implements i.ListConnectionsRequestInterface {
|
|
477
498
|
filters: ListConnectionsRequestFilters;
|
|
478
499
|
pagingOptions: PagedRequestOptions;
|
|
@@ -588,6 +609,12 @@ export declare class CreateAssistantRequestOptions implements i.CreateAssistantR
|
|
|
588
609
|
constructor(kwargs?: i.CreateAssistantRequestOptionsInterface);
|
|
589
610
|
toApiJson(): object;
|
|
590
611
|
}
|
|
612
|
+
export declare class GetAssistantRequestOptions implements i.GetAssistantRequestOptionsInterface {
|
|
613
|
+
skipGoalsHydration: boolean;
|
|
614
|
+
static fromProto(proto: any): GetAssistantRequestOptions;
|
|
615
|
+
constructor(kwargs?: i.GetAssistantRequestOptionsInterface);
|
|
616
|
+
toApiJson(): object;
|
|
617
|
+
}
|
|
591
618
|
export declare class CreatePromptModuleVersionRequestOptions implements i.CreatePromptModuleVersionRequestOptionsInterface {
|
|
592
619
|
shouldDeploy: boolean;
|
|
593
620
|
static fromProto(proto: any): CreatePromptModuleVersionRequestOptions;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
2
|
import { Goal } from './goal';
|
|
3
3
|
import { KeyValuePair } from './common';
|
|
4
|
+
import { Model } from './model';
|
|
4
5
|
import { Namespace } from './namespace';
|
|
5
6
|
import * as e from '../enums';
|
|
6
7
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
@@ -27,6 +28,7 @@ export declare class AssistantKey implements i.AssistantKeyInterface {
|
|
|
27
28
|
export declare class Config implements i.ConfigInterface {
|
|
28
29
|
inboxConfig: ConfigInboxConfig;
|
|
29
30
|
voiceConfig: ConfigVoiceConfig;
|
|
31
|
+
models: Model[];
|
|
30
32
|
static fromProto(proto: any): Config;
|
|
31
33
|
constructor(kwargs?: i.ConfigInterface);
|
|
32
34
|
toApiJson(): object;
|
|
@@ -3,11 +3,12 @@ export { Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionPa
|
|
|
3
3
|
export { Prompt, PromptModule, PromptModuleKey, PromptModuleVersion, PromptVersion, } from './prompt';
|
|
4
4
|
export { Goal, GoalKey, } from './goal';
|
|
5
5
|
export { KeyValuePair, } from './common';
|
|
6
|
+
export { Model, } from './model';
|
|
6
7
|
export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, ConfigInboxConfig, ModelConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, ConfigVoiceConfig, } from './assistant';
|
|
7
8
|
export { Connection, ConnectionKey, } from './connection';
|
|
8
9
|
export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, ContextInfo, } from './answer';
|
|
9
10
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
10
|
-
export { DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, TestCase, TestResult, TestRun, UpsertTestCasesRequest, } from './integration-tests';
|
|
11
|
+
export { CancelTestRunRequest, DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, SortOptions, TestCase, TestResult, TestRun, UpsertTestCasesRequest, } from './integration-tests';
|
|
11
12
|
export { Access, } from './annotations';
|
|
12
13
|
export { FieldMask, } from './field-mask';
|
|
13
|
-
export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateAssistantRequest, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse,
|
|
14
|
+
export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateAssistantRequest, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, ListAvailableModelsRequestFilters, ListConnectionsRequestFilters, ListFunctionRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, ListGoalsRequestFilters, ListAssistantRequestFilters, ListPromptModuleRequestFilters, 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, ListAvailableModelsRequest, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsResponse, ListFunctionRequest, ListFunctionResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, GetAssistantRequestOptions, UpsertAssistantRequestOptions, GenerateChatAnswerRequestOptions, CreatePromptModuleVersionRequestOptions, CreateAssistantRequestOptions, SetAssistantConnectionsRequest, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, } from './api';
|
|
@@ -2,7 +2,15 @@ import * as i from '../interfaces';
|
|
|
2
2
|
import { AssistantKey } from './assistant';
|
|
3
3
|
import { ChatMessage } from './answer';
|
|
4
4
|
import { PagedRequestOptions, PagedResponseMetadata } from './paging';
|
|
5
|
+
import * as e from '../enums';
|
|
5
6
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
7
|
+
export declare class CancelTestRunRequest implements i.CancelTestRunRequestInterface {
|
|
8
|
+
assistant: AssistantKey;
|
|
9
|
+
id: string;
|
|
10
|
+
static fromProto(proto: any): CancelTestRunRequest;
|
|
11
|
+
constructor(kwargs?: i.CancelTestRunRequestInterface);
|
|
12
|
+
toApiJson(): object;
|
|
13
|
+
}
|
|
6
14
|
export declare class DeleteTestCasesRequest implements i.DeleteTestCasesRequestInterface {
|
|
7
15
|
assistant: AssistantKey;
|
|
8
16
|
testCaseIds: string[];
|
|
@@ -26,6 +34,8 @@ export declare class GetTestRunResponse implements i.GetTestRunResponseInterface
|
|
|
26
34
|
export declare class ListTestCasesByAssistantRequest implements i.ListTestCasesByAssistantRequestInterface {
|
|
27
35
|
assistant: AssistantKey;
|
|
28
36
|
pagingOptions: PagedRequestOptions;
|
|
37
|
+
searchTerm: string;
|
|
38
|
+
sortOptions: SortOptions;
|
|
29
39
|
static fromProto(proto: any): ListTestCasesByAssistantRequest;
|
|
30
40
|
constructor(kwargs?: i.ListTestCasesByAssistantRequestInterface);
|
|
31
41
|
toApiJson(): object;
|
|
@@ -64,6 +74,13 @@ export declare class RunTestsResponse implements i.RunTestsResponseInterface {
|
|
|
64
74
|
constructor(kwargs?: i.RunTestsResponseInterface);
|
|
65
75
|
toApiJson(): object;
|
|
66
76
|
}
|
|
77
|
+
export declare class SortOptions implements i.SortOptionsInterface {
|
|
78
|
+
direction: e.SortDirection;
|
|
79
|
+
field: string;
|
|
80
|
+
static fromProto(proto: any): SortOptions;
|
|
81
|
+
constructor(kwargs?: i.SortOptionsInterface);
|
|
82
|
+
toApiJson(): object;
|
|
83
|
+
}
|
|
67
84
|
export declare class TestCase implements i.TestCaseInterface {
|
|
68
85
|
id: string;
|
|
69
86
|
name: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
import * as e from '../enums';
|
|
3
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
4
|
+
export declare class Model implements i.ModelInterface {
|
|
5
|
+
id: string;
|
|
6
|
+
vendor: e.ModelVendor;
|
|
7
|
+
type: e.ModelType;
|
|
8
|
+
name: string;
|
|
9
|
+
recommended: boolean;
|
|
10
|
+
static fromProto(proto: any): Model;
|
|
11
|
+
constructor(kwargs?: i.ModelInterface);
|
|
12
|
+
toApiJson(): object;
|
|
13
|
+
}
|