@vendasta/ai-assistants 0.35.0 → 0.37.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/enums/answer.enum.mjs +2 -1
- package/esm2020/lib/_internal/integration-test.api.service.mjs +12 -2
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/integration-tests.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/integration-tests.mjs +187 -1
- package/fesm2015/vendasta-ai-assistants.mjs +198 -1
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +198 -1
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/answer.enum.d.ts +2 -1
- package/lib/_internal/integration-test.api.service.d.ts +4 -2
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/integration-tests.interface.d.ts +31 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/integration-tests.d.ts +49 -0
- package/package.json +1 -1
|
@@ -13,7 +13,8 @@ export declare enum ChatChannel {
|
|
|
13
13
|
CHAT_CHANNEL_FACEBOOK = 5,
|
|
14
14
|
CHAT_CHANNEL_INSTAGRAM = 7,
|
|
15
15
|
CHAT_CHANNEL_AUTOMATION = 8,
|
|
16
|
-
CHAT_CHANNEL_PLATFORM = 9
|
|
16
|
+
CHAT_CHANNEL_PLATFORM = 9,
|
|
17
|
+
CHAT_CHANNEL_SNAPSHOT = 10
|
|
17
18
|
}
|
|
18
19
|
export declare enum ChatMessageRole {
|
|
19
20
|
CHAT_MESSAGE_ROLE_INVALID = 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeleteTestCasesRequest, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, RunTestsRequest, RunTestsResponse, UpsertTestCasesRequest } from './objects/';
|
|
2
|
-
import { DeleteTestCasesRequestInterface, ListTestCasesByAssistantRequestInterface, RunTestsRequestInterface, UpsertTestCasesRequestInterface } from './interfaces/';
|
|
1
|
+
import { DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, UpsertTestCasesRequest } from './objects/';
|
|
2
|
+
import { 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";
|
|
@@ -12,6 +12,8 @@ export declare class IntegrationTestApiService {
|
|
|
12
12
|
upsertTestCases(r: UpsertTestCasesRequest | UpsertTestCasesRequestInterface): Observable<HttpResponse<null>>;
|
|
13
13
|
deleteTestCases(r: DeleteTestCasesRequest | DeleteTestCasesRequestInterface): Observable<HttpResponse<null>>;
|
|
14
14
|
runTests(r: RunTestsRequest | RunTestsRequestInterface): Observable<RunTestsResponse>;
|
|
15
|
+
listTestRunsByAssistant(r: ListTestRunsByAssistantRequest | ListTestRunsByAssistantRequestInterface): Observable<ListTestRunsByAssistantResponse>;
|
|
16
|
+
getTestRun(r: GetTestRunRequest | GetTestRunRequestInterface): Observable<GetTestRunResponse>;
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<IntegrationTestApiService, never>;
|
|
16
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<IntegrationTestApiService>;
|
|
17
19
|
}
|
|
@@ -7,7 +7,7 @@ export { AssistantInterface, AssistantKeyInterface, ConfigInterface, Configurabl
|
|
|
7
7
|
export { ConnectionInterface, ConnectionKeyInterface, } from './connection.interface';
|
|
8
8
|
export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, } from './answer.interface';
|
|
9
9
|
export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
|
|
10
|
-
export { DeleteTestCasesRequestInterface, ListTestCasesByAssistantRequestInterface, ListTestCasesByAssistantResponseInterface, RunTestsRequestInterface, RunTestsResponseInterface, TestCaseInterface, UpsertTestCasesRequestInterface, } from './integration-tests.interface';
|
|
10
|
+
export { DeleteTestCasesRequestInterface, GetTestRunRequestInterface, GetTestRunResponseInterface, ListTestCasesByAssistantRequestInterface, ListTestCasesByAssistantResponseInterface, ListTestRunsByAssistantRequestInterface, ListTestRunsByAssistantResponseInterface, RunTestsRequestInterface, RunTestsResponseInterface, TestCaseInterface, TestResultInterface, TestRunInterface, UpsertTestCasesRequestInterface, } from './integration-tests.interface';
|
|
11
11
|
export { AccessInterface, } from './annotations.interface';
|
|
12
12
|
export { FieldMaskInterface, } from './field-mask.interface';
|
|
13
13
|
export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateAssistantRequestInterface, CreateAssistantResponseInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface, ListFunctionRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListPromptModuleRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, ListAssistantRequestFiltersInterface, 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, CreateAssistantRequestOptionsInterface, CreatePromptModuleVersionRequestOptionsInterface, GenerateChatAnswerRequestOptionsInterface, UpsertAssistantRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdateAssistantRequestInterface, UpdateGoalRequestInterface, UpdatePromptModuleRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, } from './api.interface';
|
|
@@ -5,6 +5,13 @@ export interface DeleteTestCasesRequestInterface {
|
|
|
5
5
|
assistant?: AssistantKeyInterface;
|
|
6
6
|
testCaseIds?: string[];
|
|
7
7
|
}
|
|
8
|
+
export interface GetTestRunRequestInterface {
|
|
9
|
+
assistant?: AssistantKeyInterface;
|
|
10
|
+
id?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetTestRunResponseInterface {
|
|
13
|
+
testRun?: TestRunInterface;
|
|
14
|
+
}
|
|
8
15
|
export interface ListTestCasesByAssistantRequestInterface {
|
|
9
16
|
assistant?: AssistantKeyInterface;
|
|
10
17
|
pagingOptions?: PagedRequestOptionsInterface;
|
|
@@ -13,6 +20,14 @@ export interface ListTestCasesByAssistantResponseInterface {
|
|
|
13
20
|
testCases?: TestCaseInterface[];
|
|
14
21
|
pagingMetadata?: PagedResponseMetadataInterface;
|
|
15
22
|
}
|
|
23
|
+
export interface ListTestRunsByAssistantRequestInterface {
|
|
24
|
+
assistant?: AssistantKeyInterface;
|
|
25
|
+
pagingOptions?: PagedRequestOptionsInterface;
|
|
26
|
+
}
|
|
27
|
+
export interface ListTestRunsByAssistantResponseInterface {
|
|
28
|
+
testRuns?: TestRunInterface[];
|
|
29
|
+
pagingMetadata?: PagedResponseMetadataInterface;
|
|
30
|
+
}
|
|
16
31
|
export interface RunTestsRequestInterface {
|
|
17
32
|
assistant?: AssistantKeyInterface;
|
|
18
33
|
testCaseIds?: string[];
|
|
@@ -26,6 +41,22 @@ export interface TestCaseInterface {
|
|
|
26
41
|
chatHistory?: ChatMessageInterface[];
|
|
27
42
|
expectation?: string;
|
|
28
43
|
}
|
|
44
|
+
export interface TestResultInterface {
|
|
45
|
+
id?: string;
|
|
46
|
+
name?: string;
|
|
47
|
+
chatHistory?: ChatMessageInterface[];
|
|
48
|
+
expected?: string;
|
|
49
|
+
evaluation?: string;
|
|
50
|
+
status?: string;
|
|
51
|
+
score?: number;
|
|
52
|
+
}
|
|
53
|
+
export interface TestRunInterface {
|
|
54
|
+
id?: string;
|
|
55
|
+
status?: string;
|
|
56
|
+
testFramework?: string;
|
|
57
|
+
testResults?: TestResultInterface[];
|
|
58
|
+
created?: Date;
|
|
59
|
+
}
|
|
29
60
|
export interface UpsertTestCasesRequestInterface {
|
|
30
61
|
assistant?: AssistantKeyInterface;
|
|
31
62
|
testCases?: TestCaseInterface[];
|
|
@@ -7,7 +7,7 @@ export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, Conf
|
|
|
7
7
|
export { Connection, ConnectionKey, } from './connection';
|
|
8
8
|
export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, ContextInfo, } from './answer';
|
|
9
9
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
10
|
-
export { DeleteTestCasesRequest, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, RunTestsRequest, RunTestsResponse, TestCase, UpsertTestCasesRequest, } from './integration-tests';
|
|
10
|
+
export { DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, TestCase, TestResult, TestRun, UpsertTestCasesRequest, } from './integration-tests';
|
|
11
11
|
export { Access, } from './annotations';
|
|
12
12
|
export { FieldMask, } from './field-mask';
|
|
13
13
|
export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateAssistantRequest, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, ListPromptModuleRequestFilters, ListConnectionsRequestFilters, ListGoalsRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAssistantRequestFilters, ListFunctionRequestFilters, 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, CreatePromptModuleVersionRequestOptions, GenerateChatAnswerRequestOptions, CreateAssistantRequestOptions, UpsertAssistantRequestOptions, SetAssistantConnectionsRequest, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, } from './api';
|
|
@@ -10,6 +10,19 @@ export declare class DeleteTestCasesRequest implements i.DeleteTestCasesRequestI
|
|
|
10
10
|
constructor(kwargs?: i.DeleteTestCasesRequestInterface);
|
|
11
11
|
toApiJson(): object;
|
|
12
12
|
}
|
|
13
|
+
export declare class GetTestRunRequest implements i.GetTestRunRequestInterface {
|
|
14
|
+
assistant: AssistantKey;
|
|
15
|
+
id: string;
|
|
16
|
+
static fromProto(proto: any): GetTestRunRequest;
|
|
17
|
+
constructor(kwargs?: i.GetTestRunRequestInterface);
|
|
18
|
+
toApiJson(): object;
|
|
19
|
+
}
|
|
20
|
+
export declare class GetTestRunResponse implements i.GetTestRunResponseInterface {
|
|
21
|
+
testRun: TestRun;
|
|
22
|
+
static fromProto(proto: any): GetTestRunResponse;
|
|
23
|
+
constructor(kwargs?: i.GetTestRunResponseInterface);
|
|
24
|
+
toApiJson(): object;
|
|
25
|
+
}
|
|
13
26
|
export declare class ListTestCasesByAssistantRequest implements i.ListTestCasesByAssistantRequestInterface {
|
|
14
27
|
assistant: AssistantKey;
|
|
15
28
|
pagingOptions: PagedRequestOptions;
|
|
@@ -24,6 +37,20 @@ export declare class ListTestCasesByAssistantResponse implements i.ListTestCases
|
|
|
24
37
|
constructor(kwargs?: i.ListTestCasesByAssistantResponseInterface);
|
|
25
38
|
toApiJson(): object;
|
|
26
39
|
}
|
|
40
|
+
export declare class ListTestRunsByAssistantRequest implements i.ListTestRunsByAssistantRequestInterface {
|
|
41
|
+
assistant: AssistantKey;
|
|
42
|
+
pagingOptions: PagedRequestOptions;
|
|
43
|
+
static fromProto(proto: any): ListTestRunsByAssistantRequest;
|
|
44
|
+
constructor(kwargs?: i.ListTestRunsByAssistantRequestInterface);
|
|
45
|
+
toApiJson(): object;
|
|
46
|
+
}
|
|
47
|
+
export declare class ListTestRunsByAssistantResponse implements i.ListTestRunsByAssistantResponseInterface {
|
|
48
|
+
testRuns: TestRun[];
|
|
49
|
+
pagingMetadata: PagedResponseMetadata;
|
|
50
|
+
static fromProto(proto: any): ListTestRunsByAssistantResponse;
|
|
51
|
+
constructor(kwargs?: i.ListTestRunsByAssistantResponseInterface);
|
|
52
|
+
toApiJson(): object;
|
|
53
|
+
}
|
|
27
54
|
export declare class RunTestsRequest implements i.RunTestsRequestInterface {
|
|
28
55
|
assistant: AssistantKey;
|
|
29
56
|
testCaseIds: string[];
|
|
@@ -46,6 +73,28 @@ export declare class TestCase implements i.TestCaseInterface {
|
|
|
46
73
|
constructor(kwargs?: i.TestCaseInterface);
|
|
47
74
|
toApiJson(): object;
|
|
48
75
|
}
|
|
76
|
+
export declare class TestResult implements i.TestResultInterface {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
chatHistory: ChatMessage[];
|
|
80
|
+
expected: string;
|
|
81
|
+
evaluation: string;
|
|
82
|
+
status: string;
|
|
83
|
+
score: number;
|
|
84
|
+
static fromProto(proto: any): TestResult;
|
|
85
|
+
constructor(kwargs?: i.TestResultInterface);
|
|
86
|
+
toApiJson(): object;
|
|
87
|
+
}
|
|
88
|
+
export declare class TestRun implements i.TestRunInterface {
|
|
89
|
+
id: string;
|
|
90
|
+
status: string;
|
|
91
|
+
testFramework: string;
|
|
92
|
+
testResults: TestResult[];
|
|
93
|
+
created: Date;
|
|
94
|
+
static fromProto(proto: any): TestRun;
|
|
95
|
+
constructor(kwargs?: i.TestRunInterface);
|
|
96
|
+
toApiJson(): object;
|
|
97
|
+
}
|
|
49
98
|
export declare class UpsertTestCasesRequest implements i.UpsertTestCasesRequestInterface {
|
|
50
99
|
assistant: AssistantKey;
|
|
51
100
|
testCases: TestCase[];
|