@vendasta/ai-assistants 0.67.0 → 0.69.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.
Files changed (33) hide show
  1. package/esm2020/lib/_internal/enums/agent-role.enum.mjs +13 -0
  2. package/esm2020/lib/_internal/enums/index.mjs +2 -1
  3. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  4. package/esm2020/lib/_internal/interfaces/function.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/goal.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/integration-tests.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/model.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/objects/api.mjs +188 -147
  10. package/esm2020/lib/_internal/objects/function.mjs +4 -1
  11. package/esm2020/lib/_internal/objects/goal.mjs +7 -1
  12. package/esm2020/lib/_internal/objects/index.mjs +2 -2
  13. package/esm2020/lib/_internal/objects/integration-tests.mjs +4 -1
  14. package/esm2020/lib/_internal/objects/model.mjs +4 -1
  15. package/fesm2015/vendasta-ai-assistants.mjs +216 -147
  16. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  17. package/fesm2020/vendasta-ai-assistants.mjs +216 -147
  18. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  19. package/lib/_internal/enums/agent-role.enum.d.ts +5 -0
  20. package/lib/_internal/enums/index.d.ts +1 -0
  21. package/lib/_internal/interfaces/api.interface.d.ts +40 -32
  22. package/lib/_internal/interfaces/function.interface.d.ts +1 -0
  23. package/lib/_internal/interfaces/goal.interface.d.ts +1 -0
  24. package/lib/_internal/interfaces/index.d.ts +1 -1
  25. package/lib/_internal/interfaces/integration-tests.interface.d.ts +1 -0
  26. package/lib/_internal/interfaces/model.interface.d.ts +1 -0
  27. package/lib/_internal/objects/api.d.ts +70 -59
  28. package/lib/_internal/objects/function.d.ts +1 -0
  29. package/lib/_internal/objects/goal.d.ts +1 -0
  30. package/lib/_internal/objects/index.d.ts +1 -1
  31. package/lib/_internal/objects/integration-tests.d.ts +1 -0
  32. package/lib/_internal/objects/model.d.ts +1 -0
  33. package/package.json +1 -1
@@ -91,6 +91,19 @@ var FunctionParameterParameterLocation;
91
91
  FunctionParameterParameterLocation[FunctionParameterParameterLocation["LOCATION_QUERY_PARAM"] = 1] = "LOCATION_QUERY_PARAM";
92
92
  })(FunctionParameterParameterLocation || (FunctionParameterParameterLocation = {}));
93
93
 
94
+ // *********************************
95
+ // Code generated by sdkgen
96
+ // DO NOT EDIT!.
97
+ //
98
+ // Enums.
99
+ // *********************************
100
+ var AgentRole;
101
+ (function (AgentRole) {
102
+ AgentRole[AgentRole["AGENT_ROLE_UNSPECIFIED"] = 0] = "AGENT_ROLE_UNSPECIFIED";
103
+ AgentRole[AgentRole["AGENT_ROLE_SUBAGENT"] = 1] = "AGENT_ROLE_SUBAGENT";
104
+ AgentRole[AgentRole["AGENT_ROLE_SUPERVISOR"] = 2] = "AGENT_ROLE_SUPERVISOR";
105
+ })(AgentRole || (AgentRole = {}));
106
+
94
107
  // *********************************
95
108
  // Code generated by sdkgen
96
109
  // DO NOT EDIT!.
@@ -716,6 +729,9 @@ class Function {
716
729
  if (typeof this.sourcePath !== 'undefined') {
717
730
  toReturn['sourcePath'] = this.sourcePath;
718
731
  }
732
+ if (typeof this.noOp !== 'undefined') {
733
+ toReturn['noOp'] = this.noOp;
734
+ }
719
735
  return toReturn;
720
736
  }
721
737
  }
@@ -1609,6 +1625,9 @@ class Goal {
1609
1625
  if (proto.constraints) {
1610
1626
  m.constraints = proto.constraints.map(Constraint.fromProto);
1611
1627
  }
1628
+ if (proto.agentRole) {
1629
+ m.agentRole = enumStringToValue$9(AgentRole, proto.agentRole);
1630
+ }
1612
1631
  return m;
1613
1632
  }
1614
1633
  constructor(kwargs) {
@@ -1661,6 +1680,9 @@ class Goal {
1661
1680
  if (typeof this.sourcePath !== 'undefined') {
1662
1681
  toReturn['sourcePath'] = this.sourcePath;
1663
1682
  }
1683
+ if (typeof this.agentRole !== 'undefined') {
1684
+ toReturn['agentRole'] = this.agentRole;
1685
+ }
1664
1686
  return toReturn;
1665
1687
  }
1666
1688
  }
@@ -1886,6 +1908,9 @@ class Model {
1886
1908
  if (typeof this.recommended !== 'undefined') {
1887
1909
  toReturn['recommended'] = this.recommended;
1888
1910
  }
1911
+ if (typeof this.supportedReasoningEfforts !== 'undefined') {
1912
+ toReturn['supportedReasoningEfforts'] = this.supportedReasoningEfforts;
1913
+ }
1889
1914
  return toReturn;
1890
1915
  }
1891
1916
  }
@@ -3088,6 +3113,9 @@ class TestResult {
3088
3113
  if (typeof this.llmOptions !== 'undefined' && this.llmOptions !== null) {
3089
3114
  toReturn['llmOptions'] = 'toApiJson' in this.llmOptions ? this.llmOptions.toApiJson() : this.llmOptions;
3090
3115
  }
3116
+ if (typeof this.latency !== 'undefined') {
3117
+ toReturn['latency'] = this.latency;
3118
+ }
3091
3119
  return toReturn;
3092
3120
  }
3093
3121
  }
@@ -3746,27 +3774,15 @@ class ExecuteFunctionResponse {
3746
3774
  return toReturn;
3747
3775
  }
3748
3776
  }
3749
- class ListGoalsRequestFilters {
3777
+ class ListAssistantRequestFilters {
3750
3778
  static fromProto(proto) {
3751
- let m = new ListGoalsRequestFilters();
3779
+ let m = new ListAssistantRequestFilters();
3752
3780
  m = Object.assign(m, proto);
3753
3781
  if (proto.namespace) {
3754
3782
  m.namespace = Namespace.fromProto(proto.namespace);
3755
3783
  }
3756
3784
  if (proto.type) {
3757
- m.type = enumStringToValue(GoalType, proto.type);
3758
- }
3759
- if (proto.supportedChannels) {
3760
- m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3761
- }
3762
- if (proto.namespaces) {
3763
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3764
- }
3765
- if (proto.constraintFilters) {
3766
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3767
- }
3768
- if (proto.sortOptions) {
3769
- m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
3785
+ m.type = enumStringToValue(AssistantType, proto.type);
3770
3786
  }
3771
3787
  return m;
3772
3788
  }
@@ -3784,36 +3800,18 @@ class ListGoalsRequestFilters {
3784
3800
  if (typeof this.type !== 'undefined') {
3785
3801
  toReturn['type'] = this.type;
3786
3802
  }
3787
- if (typeof this.supportedChannels !== 'undefined') {
3788
- toReturn['supportedChannels'] = this.supportedChannels;
3789
- }
3790
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3791
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3792
- }
3793
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3794
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3795
- }
3796
- if (typeof this.searchTerm !== 'undefined') {
3797
- toReturn['searchTerm'] = this.searchTerm;
3798
- }
3799
- if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
3800
- toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
3801
- }
3802
- if (typeof this.omitOverrides !== 'undefined') {
3803
- toReturn['omitOverrides'] = this.omitOverrides;
3804
- }
3805
3803
  return toReturn;
3806
3804
  }
3807
3805
  }
3808
- class ListAssistantRequestFilters {
3806
+ class ListAvailableModelsRequestFilters {
3809
3807
  static fromProto(proto) {
3810
- let m = new ListAssistantRequestFilters();
3808
+ let m = new ListAvailableModelsRequestFilters();
3811
3809
  m = Object.assign(m, proto);
3812
- if (proto.namespace) {
3813
- m.namespace = Namespace.fromProto(proto.namespace);
3810
+ if (proto.vendor) {
3811
+ m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3814
3812
  }
3815
3813
  if (proto.type) {
3816
- m.type = enumStringToValue(AssistantType, proto.type);
3814
+ m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3817
3815
  }
3818
3816
  return m;
3819
3817
  }
@@ -3825,8 +3823,8 @@ class ListAssistantRequestFilters {
3825
3823
  }
3826
3824
  toApiJson() {
3827
3825
  const toReturn = {};
3828
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3829
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3826
+ if (typeof this.vendor !== 'undefined') {
3827
+ toReturn['vendor'] = this.vendor;
3830
3828
  }
3831
3829
  if (typeof this.type !== 'undefined') {
3832
3830
  toReturn['type'] = this.type;
@@ -3834,19 +3832,13 @@ class ListAssistantRequestFilters {
3834
3832
  return toReturn;
3835
3833
  }
3836
3834
  }
3837
- class ListFunctionRequestFilters {
3835
+ class ListPromptModuleRequestFilters {
3838
3836
  static fromProto(proto) {
3839
- let m = new ListFunctionRequestFilters();
3837
+ let m = new ListPromptModuleRequestFilters();
3840
3838
  m = Object.assign(m, proto);
3841
3839
  if (proto.namespace) {
3842
3840
  m.namespace = Namespace.fromProto(proto.namespace);
3843
3841
  }
3844
- if (proto.namespaces) {
3845
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3846
- }
3847
- if (proto.constraintFilters) {
3848
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3849
- }
3850
3842
  return m;
3851
3843
  }
3852
3844
  constructor(kwargs) {
@@ -3860,27 +3852,30 @@ class ListFunctionRequestFilters {
3860
3852
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3861
3853
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3862
3854
  }
3863
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3864
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3865
- }
3866
- if (typeof this.mcpId !== 'undefined') {
3867
- toReturn['mcpId'] = this.mcpId;
3868
- }
3869
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3870
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3871
- }
3872
3855
  return toReturn;
3873
3856
  }
3874
3857
  }
3875
- class ListAvailableModelsRequestFilters {
3858
+ class ListGoalsRequestFilters {
3876
3859
  static fromProto(proto) {
3877
- let m = new ListAvailableModelsRequestFilters();
3860
+ let m = new ListGoalsRequestFilters();
3878
3861
  m = Object.assign(m, proto);
3879
- if (proto.vendor) {
3880
- m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3862
+ if (proto.namespace) {
3863
+ m.namespace = Namespace.fromProto(proto.namespace);
3881
3864
  }
3882
3865
  if (proto.type) {
3883
- m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3866
+ m.type = enumStringToValue(GoalType, proto.type);
3867
+ }
3868
+ if (proto.supportedChannels) {
3869
+ m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3870
+ }
3871
+ if (proto.namespaces) {
3872
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3873
+ }
3874
+ if (proto.constraintFilters) {
3875
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3876
+ }
3877
+ if (proto.sortOptions) {
3878
+ m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
3884
3879
  }
3885
3880
  return m;
3886
3881
  }
@@ -3892,21 +3887,45 @@ class ListAvailableModelsRequestFilters {
3892
3887
  }
3893
3888
  toApiJson() {
3894
3889
  const toReturn = {};
3895
- if (typeof this.vendor !== 'undefined') {
3896
- toReturn['vendor'] = this.vendor;
3890
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3891
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3897
3892
  }
3898
3893
  if (typeof this.type !== 'undefined') {
3899
3894
  toReturn['type'] = this.type;
3900
3895
  }
3896
+ if (typeof this.supportedChannels !== 'undefined') {
3897
+ toReturn['supportedChannels'] = this.supportedChannels;
3898
+ }
3899
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3900
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3901
+ }
3902
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3903
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3904
+ }
3905
+ if (typeof this.searchTerm !== 'undefined') {
3906
+ toReturn['searchTerm'] = this.searchTerm;
3907
+ }
3908
+ if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
3909
+ toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
3910
+ }
3911
+ if (typeof this.omitOverrides !== 'undefined') {
3912
+ toReturn['omitOverrides'] = this.omitOverrides;
3913
+ }
3901
3914
  return toReturn;
3902
3915
  }
3903
3916
  }
3904
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
3917
+ class ListFunctionRequestFilters {
3905
3918
  static fromProto(proto) {
3906
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3919
+ let m = new ListFunctionRequestFilters();
3907
3920
  m = Object.assign(m, proto);
3908
- if (proto.type) {
3909
- m.type = enumStringToValue(AssistantType, proto.type);
3921
+ if (proto.namespace) {
3922
+ m.namespace = Namespace.fromProto(proto.namespace);
3923
+ }
3924
+ if (proto.namespaces) {
3925
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3926
+ }
3927
+ if (proto.constraintFilters) {
3928
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3910
3929
  }
3911
3930
  return m;
3912
3931
  }
@@ -3918,19 +3937,31 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3918
3937
  }
3919
3938
  toApiJson() {
3920
3939
  const toReturn = {};
3921
- if (typeof this.type !== 'undefined') {
3922
- toReturn['type'] = this.type;
3940
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3941
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3942
+ }
3943
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3944
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3945
+ }
3946
+ if (typeof this.mcpId !== 'undefined') {
3947
+ toReturn['mcpId'] = this.mcpId;
3948
+ }
3949
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3950
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3923
3951
  }
3924
3952
  return toReturn;
3925
3953
  }
3926
3954
  }
3927
- class ListPromptModuleRequestFilters {
3955
+ class ListConnectionsRequestFilters {
3928
3956
  static fromProto(proto) {
3929
- let m = new ListPromptModuleRequestFilters();
3957
+ let m = new ListConnectionsRequestFilters();
3930
3958
  m = Object.assign(m, proto);
3931
3959
  if (proto.namespace) {
3932
3960
  m.namespace = Namespace.fromProto(proto.namespace);
3933
3961
  }
3962
+ if (proto.assistantType) {
3963
+ m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3964
+ }
3934
3965
  return m;
3935
3966
  }
3936
3967
  constructor(kwargs) {
@@ -3944,18 +3975,18 @@ class ListPromptModuleRequestFilters {
3944
3975
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3945
3976
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3946
3977
  }
3978
+ if (typeof this.assistantType !== 'undefined') {
3979
+ toReturn['assistantType'] = this.assistantType;
3980
+ }
3947
3981
  return toReturn;
3948
3982
  }
3949
3983
  }
3950
- class ListConnectionsRequestFilters {
3984
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3951
3985
  static fromProto(proto) {
3952
- let m = new ListConnectionsRequestFilters();
3986
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3953
3987
  m = Object.assign(m, proto);
3954
- if (proto.namespace) {
3955
- m.namespace = Namespace.fromProto(proto.namespace);
3956
- }
3957
- if (proto.assistantType) {
3958
- m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3988
+ if (proto.type) {
3989
+ m.type = enumStringToValue(AssistantType, proto.type);
3959
3990
  }
3960
3991
  return m;
3961
3992
  }
@@ -3967,11 +3998,8 @@ class ListConnectionsRequestFilters {
3967
3998
  }
3968
3999
  toApiJson() {
3969
4000
  const toReturn = {};
3970
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3971
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3972
- }
3973
- if (typeof this.assistantType !== 'undefined') {
3974
- toReturn['assistantType'] = this.assistantType;
4001
+ if (typeof this.type !== 'undefined') {
4002
+ toReturn['type'] = this.type;
3975
4003
  }
3976
4004
  return toReturn;
3977
4005
  }
@@ -4045,6 +4073,9 @@ class GenerateChatAnswerResponse {
4045
4073
  if (proto.validationResult) {
4046
4074
  m.validationResult = ValidationResult.fromProto(proto.validationResult);
4047
4075
  }
4076
+ if (proto.toolCalls) {
4077
+ m.toolCalls = proto.toolCalls.map(ToolCall.fromProto);
4078
+ }
4048
4079
  return m;
4049
4080
  }
4050
4081
  constructor(kwargs) {
@@ -4067,6 +4098,9 @@ class GenerateChatAnswerResponse {
4067
4098
  if (typeof this.validationResult !== 'undefined' && this.validationResult !== null) {
4068
4099
  toReturn['validationResult'] = 'toApiJson' in this.validationResult ? this.validationResult.toApiJson() : this.validationResult;
4069
4100
  }
4101
+ if (typeof this.toolCalls !== 'undefined' && this.toolCalls !== null) {
4102
+ toReturn['toolCalls'] = 'toApiJson' in this.toolCalls ? this.toolCalls.toApiJson() : this.toolCalls;
4103
+ }
4070
4104
  return toReturn;
4071
4105
  }
4072
4106
  }
@@ -5278,13 +5312,10 @@ class ListTemplateVariablesResponse {
5278
5312
  return toReturn;
5279
5313
  }
5280
5314
  }
5281
- class GenerateChatAnswerRequestOptions {
5315
+ class CreateAssistantRequestOptions {
5282
5316
  static fromProto(proto) {
5283
- let m = new GenerateChatAnswerRequestOptions();
5317
+ let m = new CreateAssistantRequestOptions();
5284
5318
  m = Object.assign(m, proto);
5285
- if (proto.maxTokens) {
5286
- m.maxTokens = parseInt(proto.maxTokens, 10);
5287
- }
5288
5319
  return m;
5289
5320
  }
5290
5321
  constructor(kwargs) {
@@ -5295,21 +5326,15 @@ class GenerateChatAnswerRequestOptions {
5295
5326
  }
5296
5327
  toApiJson() {
5297
5328
  const toReturn = {};
5298
- if (typeof this.includeAllCitations !== 'undefined') {
5299
- toReturn['includeAllCitations'] = this.includeAllCitations;
5300
- }
5301
- if (typeof this.enableAsyncFunctions !== 'undefined') {
5302
- toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
5303
- }
5304
- if (typeof this.maxTokens !== 'undefined') {
5305
- toReturn['maxTokens'] = this.maxTokens;
5329
+ if (typeof this.applyDefaults !== 'undefined') {
5330
+ toReturn['applyDefaults'] = this.applyDefaults;
5306
5331
  }
5307
5332
  return toReturn;
5308
5333
  }
5309
5334
  }
5310
- class GetMultiAssistantRequestOptions {
5335
+ class UpsertAssistantRequestOptions {
5311
5336
  static fromProto(proto) {
5312
- let m = new GetMultiAssistantRequestOptions();
5337
+ let m = new UpsertAssistantRequestOptions();
5313
5338
  m = Object.assign(m, proto);
5314
5339
  return m;
5315
5340
  }
@@ -5321,15 +5346,15 @@ class GetMultiAssistantRequestOptions {
5321
5346
  }
5322
5347
  toApiJson() {
5323
5348
  const toReturn = {};
5324
- if (typeof this.skipGoalsHydration !== 'undefined') {
5325
- toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5349
+ if (typeof this.applyDefaults !== 'undefined') {
5350
+ toReturn['applyDefaults'] = this.applyDefaults;
5326
5351
  }
5327
5352
  return toReturn;
5328
5353
  }
5329
5354
  }
5330
- class UpsertAssistantRequestOptions {
5355
+ class CreatePromptModuleVersionRequestOptions {
5331
5356
  static fromProto(proto) {
5332
- let m = new UpsertAssistantRequestOptions();
5357
+ let m = new CreatePromptModuleVersionRequestOptions();
5333
5358
  m = Object.assign(m, proto);
5334
5359
  return m;
5335
5360
  }
@@ -5341,8 +5366,8 @@ class UpsertAssistantRequestOptions {
5341
5366
  }
5342
5367
  toApiJson() {
5343
5368
  const toReturn = {};
5344
- if (typeof this.applyDefaults !== 'undefined') {
5345
- toReturn['applyDefaults'] = this.applyDefaults;
5369
+ if (typeof this.shouldDeploy !== 'undefined') {
5370
+ toReturn['shouldDeploy'] = this.shouldDeploy;
5346
5371
  }
5347
5372
  return toReturn;
5348
5373
  }
@@ -5367,9 +5392,9 @@ class GetAssistantRequestOptions {
5367
5392
  return toReturn;
5368
5393
  }
5369
5394
  }
5370
- class CreateAssistantRequestOptions {
5395
+ class GetMultiAssistantRequestOptions {
5371
5396
  static fromProto(proto) {
5372
- let m = new CreateAssistantRequestOptions();
5397
+ let m = new GetMultiAssistantRequestOptions();
5373
5398
  m = Object.assign(m, proto);
5374
5399
  return m;
5375
5400
  }
@@ -5381,18 +5406,18 @@ class CreateAssistantRequestOptions {
5381
5406
  }
5382
5407
  toApiJson() {
5383
5408
  const toReturn = {};
5384
- if (typeof this.applyDefaults !== 'undefined') {
5385
- toReturn['applyDefaults'] = this.applyDefaults;
5409
+ if (typeof this.skipGoalsHydration !== 'undefined') {
5410
+ toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5386
5411
  }
5387
5412
  return toReturn;
5388
5413
  }
5389
5414
  }
5390
- class ExecuteFunctionRequestOptions {
5415
+ class GenerateChatAnswerRequestOptions {
5391
5416
  static fromProto(proto) {
5392
- let m = new ExecuteFunctionRequestOptions();
5417
+ let m = new GenerateChatAnswerRequestOptions();
5393
5418
  m = Object.assign(m, proto);
5394
- if (proto.contextInfo) {
5395
- m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5419
+ if (proto.maxTokens) {
5420
+ m.maxTokens = parseInt(proto.maxTokens, 10);
5396
5421
  }
5397
5422
  return m;
5398
5423
  }
@@ -5404,19 +5429,25 @@ class ExecuteFunctionRequestOptions {
5404
5429
  }
5405
5430
  toApiJson() {
5406
5431
  const toReturn = {};
5407
- if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5408
- toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5432
+ if (typeof this.includeAllCitations !== 'undefined') {
5433
+ toReturn['includeAllCitations'] = this.includeAllCitations;
5409
5434
  }
5410
- if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
5411
- toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
5435
+ if (typeof this.enableAsyncFunctions !== 'undefined') {
5436
+ toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
5437
+ }
5438
+ if (typeof this.maxTokens !== 'undefined') {
5439
+ toReturn['maxTokens'] = this.maxTokens;
5412
5440
  }
5413
5441
  return toReturn;
5414
5442
  }
5415
5443
  }
5416
- class CreatePromptModuleVersionRequestOptions {
5444
+ class ExecuteFunctionRequestOptions {
5417
5445
  static fromProto(proto) {
5418
- let m = new CreatePromptModuleVersionRequestOptions();
5446
+ let m = new ExecuteFunctionRequestOptions();
5419
5447
  m = Object.assign(m, proto);
5448
+ if (proto.contextInfo) {
5449
+ m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5450
+ }
5420
5451
  return m;
5421
5452
  }
5422
5453
  constructor(kwargs) {
@@ -5427,8 +5458,11 @@ class CreatePromptModuleVersionRequestOptions {
5427
5458
  }
5428
5459
  toApiJson() {
5429
5460
  const toReturn = {};
5430
- if (typeof this.shouldDeploy !== 'undefined') {
5431
- toReturn['shouldDeploy'] = this.shouldDeploy;
5461
+ if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5462
+ toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5463
+ }
5464
+ if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
5465
+ toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
5432
5466
  }
5433
5467
  return toReturn;
5434
5468
  }
@@ -5517,6 +5551,41 @@ class ListGoalsRequestSortOptions {
5517
5551
  return toReturn;
5518
5552
  }
5519
5553
  }
5554
+ class ToolCall {
5555
+ static fromProto(proto) {
5556
+ let m = new ToolCall();
5557
+ m = Object.assign(m, proto);
5558
+ if (proto.namespace) {
5559
+ m.namespace = Namespace.fromProto(proto.namespace);
5560
+ }
5561
+ return m;
5562
+ }
5563
+ constructor(kwargs) {
5564
+ if (!kwargs) {
5565
+ return;
5566
+ }
5567
+ Object.assign(this, kwargs);
5568
+ }
5569
+ toApiJson() {
5570
+ const toReturn = {};
5571
+ if (typeof this.toolName !== 'undefined') {
5572
+ toReturn['toolName'] = this.toolName;
5573
+ }
5574
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
5575
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
5576
+ }
5577
+ if (typeof this.arguments !== 'undefined') {
5578
+ toReturn['arguments'] = this.arguments;
5579
+ }
5580
+ if (typeof this.response !== 'undefined') {
5581
+ toReturn['response'] = this.response;
5582
+ }
5583
+ if (typeof this.noOp !== 'undefined') {
5584
+ toReturn['noOp'] = this.noOp;
5585
+ }
5586
+ return toReturn;
5587
+ }
5588
+ }
5520
5589
  class UpdateAssistantRequest {
5521
5590
  static fromProto(proto) {
5522
5591
  let m = new UpdateAssistantRequest();
@@ -5866,12 +5935,15 @@ class ValidatePromptModulesResponse {
5866
5935
  return toReturn;
5867
5936
  }
5868
5937
  }
5869
- class ValidatePromptModulesResponseValidationResult {
5938
+ class ValidationResult {
5870
5939
  static fromProto(proto) {
5871
- let m = new ValidatePromptModulesResponseValidationResult();
5940
+ let m = new ValidationResult();
5872
5941
  m = Object.assign(m, proto);
5873
- if (proto.namespace) {
5874
- m.namespace = Namespace.fromProto(proto.namespace);
5942
+ if (proto.failureAction) {
5943
+ m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
5944
+ }
5945
+ if (proto.violations) {
5946
+ m.violations = proto.violations.map(ValidationViolation.fromProto);
5875
5947
  }
5876
5948
  return m;
5877
5949
  }
@@ -5883,17 +5955,11 @@ class ValidatePromptModulesResponseValidationResult {
5883
5955
  }
5884
5956
  toApiJson() {
5885
5957
  const toReturn = {};
5886
- if (typeof this.id !== 'undefined') {
5887
- toReturn['id'] = this.id;
5888
- }
5889
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
5890
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
5891
- }
5892
- if (typeof this.isValid !== 'undefined') {
5893
- toReturn['isValid'] = this.isValid;
5958
+ if (typeof this.failureAction !== 'undefined') {
5959
+ toReturn['failureAction'] = this.failureAction;
5894
5960
  }
5895
- if (typeof this.errorMessage !== 'undefined') {
5896
- toReturn['errorMessage'] = this.errorMessage;
5961
+ if (typeof this.violations !== 'undefined' && this.violations !== null) {
5962
+ toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
5897
5963
  }
5898
5964
  return toReturn;
5899
5965
  }
@@ -5930,15 +5996,12 @@ class ValidatePromptModuleVersionsResponseValidationResult {
5930
5996
  return toReturn;
5931
5997
  }
5932
5998
  }
5933
- class ValidationResult {
5999
+ class ValidatePromptModulesResponseValidationResult {
5934
6000
  static fromProto(proto) {
5935
- let m = new ValidationResult();
6001
+ let m = new ValidatePromptModulesResponseValidationResult();
5936
6002
  m = Object.assign(m, proto);
5937
- if (proto.failureAction) {
5938
- m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
5939
- }
5940
- if (proto.violations) {
5941
- m.violations = proto.violations.map(ValidationViolation.fromProto);
6003
+ if (proto.namespace) {
6004
+ m.namespace = Namespace.fromProto(proto.namespace);
5942
6005
  }
5943
6006
  return m;
5944
6007
  }
@@ -5950,11 +6013,17 @@ class ValidationResult {
5950
6013
  }
5951
6014
  toApiJson() {
5952
6015
  const toReturn = {};
5953
- if (typeof this.failureAction !== 'undefined') {
5954
- toReturn['failureAction'] = this.failureAction;
6016
+ if (typeof this.id !== 'undefined') {
6017
+ toReturn['id'] = this.id;
5955
6018
  }
5956
- if (typeof this.violations !== 'undefined' && this.violations !== null) {
5957
- toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
6019
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
6020
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
6021
+ }
6022
+ if (typeof this.isValid !== 'undefined') {
6023
+ toReturn['isValid'] = this.isValid;
6024
+ }
6025
+ if (typeof this.errorMessage !== 'undefined') {
6026
+ toReturn['errorMessage'] = this.errorMessage;
5958
6027
  }
5959
6028
  return toReturn;
5960
6029
  }
@@ -6495,5 +6564,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6495
6564
  * Generated bundle index. Do not edit.
6496
6565
  */
6497
6566
 
6498
- export { Access, Action, AgentArchitecture, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionRequestOptions, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyImpersonationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsRequestSortOptions, ListGoalsRequestSortingOrder, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, RunTestsRequest, RunTestsResponse, Scope, SerializeFunctionRequest, SerializeFunctionResponse, SerializeGoalRequest, SerializeGoalResponse, SerializeMCPRequest, SerializeMCPResponse, SerializePromptModuleRequest, SerializePromptModuleResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SetConnectionAssistantRequest, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TemplateVariable, TestCase, TestLLMOptions, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidateFunctionsRequest, ValidateFunctionsResponse, ValidateFunctionsResponseValidationResult, ValidateGoalsRequest, ValidateGoalsResponse, ValidateGoalsResponseValidationResult, ValidateMCPsRequest, ValidateMCPsResponse, ValidateMCPsResponseValidationResult, ValidatePromptModuleRequest, ValidatePromptModuleResponse, ValidatePromptModuleVersionsRequest, ValidatePromptModuleVersionsResponse, ValidatePromptModuleVersionsResponseValidationResult, ValidatePromptModulesRequest, ValidatePromptModulesResponse, ValidatePromptModulesResponseValidationResult, ValidationFailureAction, ValidationResult, ValidationViolation, Validator, VendorModel };
6567
+ export { Access, Action, AgentArchitecture, AgentRole, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionRequestOptions, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyImpersonationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsRequestSortOptions, ListGoalsRequestSortingOrder, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, RunTestsRequest, RunTestsResponse, Scope, SerializeFunctionRequest, SerializeFunctionResponse, SerializeGoalRequest, SerializeGoalResponse, SerializeMCPRequest, SerializeMCPResponse, SerializePromptModuleRequest, SerializePromptModuleResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SetConnectionAssistantRequest, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TemplateVariable, TestCase, TestLLMOptions, TestResult, TestResultCitation, TestRun, ToolCall, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidateFunctionsRequest, ValidateFunctionsResponse, ValidateFunctionsResponseValidationResult, ValidateGoalsRequest, ValidateGoalsResponse, ValidateGoalsResponseValidationResult, ValidateMCPsRequest, ValidateMCPsResponse, ValidateMCPsResponseValidationResult, ValidatePromptModuleRequest, ValidatePromptModuleResponse, ValidatePromptModuleVersionsRequest, ValidatePromptModuleVersionsResponse, ValidatePromptModuleVersionsResponseValidationResult, ValidatePromptModulesRequest, ValidatePromptModulesResponse, ValidatePromptModulesResponseValidationResult, ValidationFailureAction, ValidationResult, ValidationViolation, Validator, VendorModel };
6499
6568
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map