@vendasta/ai-assistants 0.39.0 → 0.40.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.
@@ -8,7 +8,7 @@ export { AssistantInterface, AssistantKeyInterface, ConfigInterface, Configurabl
8
8
  export { ConnectionInterface, ConnectionKeyInterface, } from './connection.interface';
9
9
  export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, } from './answer.interface';
10
10
  export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
11
- export { CancelTestRunRequestInterface, DeleteTestCasesRequestInterface, GetTestRunRequestInterface, GetTestRunResponseInterface, ListTestCasesByAssistantRequestInterface, ListTestCasesByAssistantResponseInterface, ListTestRunsByAssistantRequestInterface, ListTestRunsByAssistantResponseInterface, RunTestsRequestInterface, RunTestsResponseInterface, SortOptionsInterface, TestCaseInterface, TestResultInterface, TestRunInterface, UpsertTestCasesRequestInterface, } from './integration-tests.interface';
11
+ export { CancelTestRunRequestInterface, TestResultCitationInterface, DeleteTestCasesRequestInterface, GetTestRunRequestInterface, GetTestRunResponseInterface, ListTestCasesByAssistantRequestInterface, ListTestCasesByAssistantResponseInterface, ListTestRunsByAssistantRequestInterface, ListTestRunsByAssistantResponseInterface, RunTestsRequestInterface, RunTestsResponseInterface, SortOptionsInterface, TestCaseInterface, TestResultInterface, TestRunInterface, UpsertTestCasesRequestInterface, } from './integration-tests.interface';
12
12
  export { AccessInterface, } from './annotations.interface';
13
13
  export { FieldMaskInterface, } from './field-mask.interface';
14
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';
@@ -6,6 +6,14 @@ export interface CancelTestRunRequestInterface {
6
6
  assistant?: AssistantKeyInterface;
7
7
  id?: string;
8
8
  }
9
+ export interface TestResultCitationInterface {
10
+ type?: string;
11
+ description?: string;
12
+ title?: string;
13
+ link?: string;
14
+ reason?: string;
15
+ fileUrl?: string;
16
+ }
9
17
  export interface DeleteTestCasesRequestInterface {
10
18
  assistant?: AssistantKeyInterface;
11
19
  testCaseIds?: string[];
@@ -60,6 +68,8 @@ export interface TestResultInterface {
60
68
  evaluation?: string;
61
69
  status?: string;
62
70
  score?: number;
71
+ reasoning?: string;
72
+ citations?: TestResultCitationInterface[];
63
73
  }
64
74
  export interface TestRunInterface {
65
75
  id?: string;
@@ -8,7 +8,7 @@ export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, Conf
8
8
  export { Connection, ConnectionKey, } from './connection';
9
9
  export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, ContextInfo, } from './answer';
10
10
  export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
11
- export { CancelTestRunRequest, DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, SortOptions, TestCase, TestResult, TestRun, UpsertTestCasesRequest, } from './integration-tests';
11
+ export { CancelTestRunRequest, TestResultCitation, DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, SortOptions, TestCase, TestResult, TestRun, UpsertTestCasesRequest, } from './integration-tests';
12
12
  export { Access, } from './annotations';
13
13
  export { FieldMask, } from './field-mask';
14
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';
@@ -11,6 +11,17 @@ export declare class CancelTestRunRequest implements i.CancelTestRunRequestInter
11
11
  constructor(kwargs?: i.CancelTestRunRequestInterface);
12
12
  toApiJson(): object;
13
13
  }
14
+ export declare class TestResultCitation implements i.TestResultCitationInterface {
15
+ type: string;
16
+ description: string;
17
+ title: string;
18
+ link: string;
19
+ reason: string;
20
+ fileUrl: string;
21
+ static fromProto(proto: any): TestResultCitation;
22
+ constructor(kwargs?: i.TestResultCitationInterface);
23
+ toApiJson(): object;
24
+ }
14
25
  export declare class DeleteTestCasesRequest implements i.DeleteTestCasesRequestInterface {
15
26
  assistant: AssistantKey;
16
27
  testCaseIds: string[];
@@ -98,6 +109,8 @@ export declare class TestResult implements i.TestResultInterface {
98
109
  evaluation: string;
99
110
  status: string;
100
111
  score: number;
112
+ reasoning: string;
113
+ citations: TestResultCitation[];
101
114
  static fromProto(proto: any): TestResult;
102
115
  constructor(kwargs?: i.TestResultInterface);
103
116
  toApiJson(): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/ai-assistants",
3
- "version": "0.39.0",
3
+ "version": "0.40.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"