@vendasta/ai-assistants 0.39.0 → 0.41.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.
@@ -14,6 +14,7 @@ export interface GoalInterface {
14
14
  updated?: Date;
15
15
  supportedChannels?: e.GoalChannel[];
16
16
  managed?: boolean;
17
+ overrideOf?: GoalKeyInterface;
17
18
  }
18
19
  export interface GoalKeyInterface {
19
20
  id?: string;
@@ -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,16 @@ 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
+ functionArguments?: string;
17
+ functionContent?: string;
18
+ }
9
19
  export interface DeleteTestCasesRequestInterface {
10
20
  assistant?: AssistantKeyInterface;
11
21
  testCaseIds?: string[];
@@ -60,6 +70,8 @@ export interface TestResultInterface {
60
70
  evaluation?: string;
61
71
  status?: string;
62
72
  score?: number;
73
+ reasoning?: string;
74
+ citations?: TestResultCitationInterface[];
63
75
  }
64
76
  export interface TestRunInterface {
65
77
  id?: string;
@@ -16,6 +16,7 @@ export declare class Goal implements i.GoalInterface {
16
16
  updated: Date;
17
17
  supportedChannels: e.GoalChannel[];
18
18
  managed: boolean;
19
+ overrideOf: GoalKey;
19
20
  static fromProto(proto: any): Goal;
20
21
  constructor(kwargs?: i.GoalInterface);
21
22
  toApiJson(): object;
@@ -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,19 @@ 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
+ functionArguments: string;
22
+ functionContent: string;
23
+ static fromProto(proto: any): TestResultCitation;
24
+ constructor(kwargs?: i.TestResultCitationInterface);
25
+ toApiJson(): object;
26
+ }
14
27
  export declare class DeleteTestCasesRequest implements i.DeleteTestCasesRequestInterface {
15
28
  assistant: AssistantKey;
16
29
  testCaseIds: string[];
@@ -98,6 +111,8 @@ export declare class TestResult implements i.TestResultInterface {
98
111
  evaluation: string;
99
112
  status: string;
100
113
  score: number;
114
+ reasoning: string;
115
+ citations: TestResultCitation[];
101
116
  static fromProto(proto: any): TestResult;
102
117
  constructor(kwargs?: i.TestResultInterface);
103
118
  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.41.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"