@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.
- package/esm2020/lib/_internal/interfaces/goal.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/objects/goal.mjs +7 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/integration-tests.mjs +51 -1
- package/fesm2015/vendasta-ai-assistants.mjs +57 -1
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +57 -1
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/interfaces/goal.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/integration-tests.interface.d.ts +12 -0
- package/lib/_internal/objects/goal.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/integration-tests.d.ts +15 -0
- package/package.json +1 -1
|
@@ -755,6 +755,9 @@ class Goal {
|
|
|
755
755
|
if (proto.supportedChannels) {
|
|
756
756
|
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$a(GoalChannel, v));
|
|
757
757
|
}
|
|
758
|
+
if (proto.overrideOf) {
|
|
759
|
+
m.overrideOf = GoalKey.fromProto(proto.overrideOf);
|
|
760
|
+
}
|
|
758
761
|
return m;
|
|
759
762
|
}
|
|
760
763
|
constructor(kwargs) {
|
|
@@ -798,6 +801,9 @@ class Goal {
|
|
|
798
801
|
if (typeof this.managed !== 'undefined') {
|
|
799
802
|
toReturn['managed'] = this.managed;
|
|
800
803
|
}
|
|
804
|
+
if (typeof this.overrideOf !== 'undefined' && this.overrideOf !== null) {
|
|
805
|
+
toReturn['overrideOf'] = 'toApiJson' in this.overrideOf ? this.overrideOf.toApiJson() : this.overrideOf;
|
|
806
|
+
}
|
|
801
807
|
return toReturn;
|
|
802
808
|
}
|
|
803
809
|
}
|
|
@@ -1556,6 +1562,47 @@ class CancelTestRunRequest {
|
|
|
1556
1562
|
return toReturn;
|
|
1557
1563
|
}
|
|
1558
1564
|
}
|
|
1565
|
+
class TestResultCitation {
|
|
1566
|
+
static fromProto(proto) {
|
|
1567
|
+
let m = new TestResultCitation();
|
|
1568
|
+
m = Object.assign(m, proto);
|
|
1569
|
+
return m;
|
|
1570
|
+
}
|
|
1571
|
+
constructor(kwargs) {
|
|
1572
|
+
if (!kwargs) {
|
|
1573
|
+
return;
|
|
1574
|
+
}
|
|
1575
|
+
Object.assign(this, kwargs);
|
|
1576
|
+
}
|
|
1577
|
+
toApiJson() {
|
|
1578
|
+
const toReturn = {};
|
|
1579
|
+
if (typeof this.type !== 'undefined') {
|
|
1580
|
+
toReturn['type'] = this.type;
|
|
1581
|
+
}
|
|
1582
|
+
if (typeof this.description !== 'undefined') {
|
|
1583
|
+
toReturn['description'] = this.description;
|
|
1584
|
+
}
|
|
1585
|
+
if (typeof this.title !== 'undefined') {
|
|
1586
|
+
toReturn['title'] = this.title;
|
|
1587
|
+
}
|
|
1588
|
+
if (typeof this.link !== 'undefined') {
|
|
1589
|
+
toReturn['link'] = this.link;
|
|
1590
|
+
}
|
|
1591
|
+
if (typeof this.reason !== 'undefined') {
|
|
1592
|
+
toReturn['reason'] = this.reason;
|
|
1593
|
+
}
|
|
1594
|
+
if (typeof this.fileUrl !== 'undefined') {
|
|
1595
|
+
toReturn['fileUrl'] = this.fileUrl;
|
|
1596
|
+
}
|
|
1597
|
+
if (typeof this.functionArguments !== 'undefined') {
|
|
1598
|
+
toReturn['functionArguments'] = this.functionArguments;
|
|
1599
|
+
}
|
|
1600
|
+
if (typeof this.functionContent !== 'undefined') {
|
|
1601
|
+
toReturn['functionContent'] = this.functionContent;
|
|
1602
|
+
}
|
|
1603
|
+
return toReturn;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1559
1606
|
class DeleteTestCasesRequest {
|
|
1560
1607
|
static fromProto(proto) {
|
|
1561
1608
|
let m = new DeleteTestCasesRequest();
|
|
@@ -1867,6 +1914,9 @@ class TestResult {
|
|
|
1867
1914
|
if (proto.chatHistory) {
|
|
1868
1915
|
m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
|
|
1869
1916
|
}
|
|
1917
|
+
if (proto.citations) {
|
|
1918
|
+
m.citations = proto.citations.map(TestResultCitation.fromProto);
|
|
1919
|
+
}
|
|
1870
1920
|
return m;
|
|
1871
1921
|
}
|
|
1872
1922
|
constructor(kwargs) {
|
|
@@ -1898,6 +1948,12 @@ class TestResult {
|
|
|
1898
1948
|
if (typeof this.score !== 'undefined') {
|
|
1899
1949
|
toReturn['score'] = this.score;
|
|
1900
1950
|
}
|
|
1951
|
+
if (typeof this.reasoning !== 'undefined') {
|
|
1952
|
+
toReturn['reasoning'] = this.reasoning;
|
|
1953
|
+
}
|
|
1954
|
+
if (typeof this.citations !== 'undefined' && this.citations !== null) {
|
|
1955
|
+
toReturn['citations'] = 'toApiJson' in this.citations ? this.citations.toApiJson() : this.citations;
|
|
1956
|
+
}
|
|
1901
1957
|
return toReturn;
|
|
1902
1958
|
}
|
|
1903
1959
|
}
|
|
@@ -5137,5 +5193,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5137
5193
|
* Generated bundle index. Do not edit.
|
|
5138
5194
|
*/
|
|
5139
5195
|
|
|
5140
|
-
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, 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, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, TestCase, TestResult, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertTestCasesRequest, VendorModel };
|
|
5196
|
+
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, 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, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertTestCasesRequest, VendorModel };
|
|
5141
5197
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|