@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
@@ -92,6 +92,19 @@ var FunctionParameterParameterLocation;
92
92
  FunctionParameterParameterLocation[FunctionParameterParameterLocation["LOCATION_QUERY_PARAM"] = 1] = "LOCATION_QUERY_PARAM";
93
93
  })(FunctionParameterParameterLocation || (FunctionParameterParameterLocation = {}));
94
94
 
95
+ // *********************************
96
+ // Code generated by sdkgen
97
+ // DO NOT EDIT!.
98
+ //
99
+ // Enums.
100
+ // *********************************
101
+ var AgentRole;
102
+ (function (AgentRole) {
103
+ AgentRole[AgentRole["AGENT_ROLE_UNSPECIFIED"] = 0] = "AGENT_ROLE_UNSPECIFIED";
104
+ AgentRole[AgentRole["AGENT_ROLE_SUBAGENT"] = 1] = "AGENT_ROLE_SUBAGENT";
105
+ AgentRole[AgentRole["AGENT_ROLE_SUPERVISOR"] = 2] = "AGENT_ROLE_SUPERVISOR";
106
+ })(AgentRole || (AgentRole = {}));
107
+
95
108
  // *********************************
96
109
  // Code generated by sdkgen
97
110
  // DO NOT EDIT!.
@@ -717,6 +730,9 @@ class Function {
717
730
  if (typeof this.sourcePath !== 'undefined') {
718
731
  toReturn['sourcePath'] = this.sourcePath;
719
732
  }
733
+ if (typeof this.noOp !== 'undefined') {
734
+ toReturn['noOp'] = this.noOp;
735
+ }
720
736
  return toReturn;
721
737
  }
722
738
  }
@@ -1610,6 +1626,9 @@ class Goal {
1610
1626
  if (proto.constraints) {
1611
1627
  m.constraints = proto.constraints.map(Constraint.fromProto);
1612
1628
  }
1629
+ if (proto.agentRole) {
1630
+ m.agentRole = enumStringToValue$9(AgentRole, proto.agentRole);
1631
+ }
1613
1632
  return m;
1614
1633
  }
1615
1634
  constructor(kwargs) {
@@ -1662,6 +1681,9 @@ class Goal {
1662
1681
  if (typeof this.sourcePath !== 'undefined') {
1663
1682
  toReturn['sourcePath'] = this.sourcePath;
1664
1683
  }
1684
+ if (typeof this.agentRole !== 'undefined') {
1685
+ toReturn['agentRole'] = this.agentRole;
1686
+ }
1665
1687
  return toReturn;
1666
1688
  }
1667
1689
  }
@@ -1887,6 +1909,9 @@ class Model {
1887
1909
  if (typeof this.recommended !== 'undefined') {
1888
1910
  toReturn['recommended'] = this.recommended;
1889
1911
  }
1912
+ if (typeof this.supportedReasoningEfforts !== 'undefined') {
1913
+ toReturn['supportedReasoningEfforts'] = this.supportedReasoningEfforts;
1914
+ }
1890
1915
  return toReturn;
1891
1916
  }
1892
1917
  }
@@ -3089,6 +3114,9 @@ class TestResult {
3089
3114
  if (typeof this.llmOptions !== 'undefined' && this.llmOptions !== null) {
3090
3115
  toReturn['llmOptions'] = 'toApiJson' in this.llmOptions ? this.llmOptions.toApiJson() : this.llmOptions;
3091
3116
  }
3117
+ if (typeof this.latency !== 'undefined') {
3118
+ toReturn['latency'] = this.latency;
3119
+ }
3092
3120
  return toReturn;
3093
3121
  }
3094
3122
  }
@@ -3747,27 +3775,15 @@ class ExecuteFunctionResponse {
3747
3775
  return toReturn;
3748
3776
  }
3749
3777
  }
3750
- class ListGoalsRequestFilters {
3778
+ class ListAssistantRequestFilters {
3751
3779
  static fromProto(proto) {
3752
- let m = new ListGoalsRequestFilters();
3780
+ let m = new ListAssistantRequestFilters();
3753
3781
  m = Object.assign(m, proto);
3754
3782
  if (proto.namespace) {
3755
3783
  m.namespace = Namespace.fromProto(proto.namespace);
3756
3784
  }
3757
3785
  if (proto.type) {
3758
- m.type = enumStringToValue(GoalType, proto.type);
3759
- }
3760
- if (proto.supportedChannels) {
3761
- m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3762
- }
3763
- if (proto.namespaces) {
3764
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3765
- }
3766
- if (proto.constraintFilters) {
3767
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3768
- }
3769
- if (proto.sortOptions) {
3770
- m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
3786
+ m.type = enumStringToValue(AssistantType, proto.type);
3771
3787
  }
3772
3788
  return m;
3773
3789
  }
@@ -3785,36 +3801,18 @@ class ListGoalsRequestFilters {
3785
3801
  if (typeof this.type !== 'undefined') {
3786
3802
  toReturn['type'] = this.type;
3787
3803
  }
3788
- if (typeof this.supportedChannels !== 'undefined') {
3789
- toReturn['supportedChannels'] = this.supportedChannels;
3790
- }
3791
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3792
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3793
- }
3794
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3795
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3796
- }
3797
- if (typeof this.searchTerm !== 'undefined') {
3798
- toReturn['searchTerm'] = this.searchTerm;
3799
- }
3800
- if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
3801
- toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
3802
- }
3803
- if (typeof this.omitOverrides !== 'undefined') {
3804
- toReturn['omitOverrides'] = this.omitOverrides;
3805
- }
3806
3804
  return toReturn;
3807
3805
  }
3808
3806
  }
3809
- class ListAssistantRequestFilters {
3807
+ class ListAvailableModelsRequestFilters {
3810
3808
  static fromProto(proto) {
3811
- let m = new ListAssistantRequestFilters();
3809
+ let m = new ListAvailableModelsRequestFilters();
3812
3810
  m = Object.assign(m, proto);
3813
- if (proto.namespace) {
3814
- m.namespace = Namespace.fromProto(proto.namespace);
3811
+ if (proto.vendor) {
3812
+ m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3815
3813
  }
3816
3814
  if (proto.type) {
3817
- m.type = enumStringToValue(AssistantType, proto.type);
3815
+ m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3818
3816
  }
3819
3817
  return m;
3820
3818
  }
@@ -3826,8 +3824,8 @@ class ListAssistantRequestFilters {
3826
3824
  }
3827
3825
  toApiJson() {
3828
3826
  const toReturn = {};
3829
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3830
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3827
+ if (typeof this.vendor !== 'undefined') {
3828
+ toReturn['vendor'] = this.vendor;
3831
3829
  }
3832
3830
  if (typeof this.type !== 'undefined') {
3833
3831
  toReturn['type'] = this.type;
@@ -3835,19 +3833,13 @@ class ListAssistantRequestFilters {
3835
3833
  return toReturn;
3836
3834
  }
3837
3835
  }
3838
- class ListFunctionRequestFilters {
3836
+ class ListPromptModuleRequestFilters {
3839
3837
  static fromProto(proto) {
3840
- let m = new ListFunctionRequestFilters();
3838
+ let m = new ListPromptModuleRequestFilters();
3841
3839
  m = Object.assign(m, proto);
3842
3840
  if (proto.namespace) {
3843
3841
  m.namespace = Namespace.fromProto(proto.namespace);
3844
3842
  }
3845
- if (proto.namespaces) {
3846
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3847
- }
3848
- if (proto.constraintFilters) {
3849
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3850
- }
3851
3843
  return m;
3852
3844
  }
3853
3845
  constructor(kwargs) {
@@ -3861,27 +3853,30 @@ class ListFunctionRequestFilters {
3861
3853
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3862
3854
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3863
3855
  }
3864
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3865
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3866
- }
3867
- if (typeof this.mcpId !== 'undefined') {
3868
- toReturn['mcpId'] = this.mcpId;
3869
- }
3870
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3871
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3872
- }
3873
3856
  return toReturn;
3874
3857
  }
3875
3858
  }
3876
- class ListAvailableModelsRequestFilters {
3859
+ class ListGoalsRequestFilters {
3877
3860
  static fromProto(proto) {
3878
- let m = new ListAvailableModelsRequestFilters();
3861
+ let m = new ListGoalsRequestFilters();
3879
3862
  m = Object.assign(m, proto);
3880
- if (proto.vendor) {
3881
- m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3863
+ if (proto.namespace) {
3864
+ m.namespace = Namespace.fromProto(proto.namespace);
3882
3865
  }
3883
3866
  if (proto.type) {
3884
- m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3867
+ m.type = enumStringToValue(GoalType, proto.type);
3868
+ }
3869
+ if (proto.supportedChannels) {
3870
+ m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3871
+ }
3872
+ if (proto.namespaces) {
3873
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3874
+ }
3875
+ if (proto.constraintFilters) {
3876
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3877
+ }
3878
+ if (proto.sortOptions) {
3879
+ m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
3885
3880
  }
3886
3881
  return m;
3887
3882
  }
@@ -3893,21 +3888,45 @@ class ListAvailableModelsRequestFilters {
3893
3888
  }
3894
3889
  toApiJson() {
3895
3890
  const toReturn = {};
3896
- if (typeof this.vendor !== 'undefined') {
3897
- toReturn['vendor'] = this.vendor;
3891
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3892
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3898
3893
  }
3899
3894
  if (typeof this.type !== 'undefined') {
3900
3895
  toReturn['type'] = this.type;
3901
3896
  }
3897
+ if (typeof this.supportedChannels !== 'undefined') {
3898
+ toReturn['supportedChannels'] = this.supportedChannels;
3899
+ }
3900
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3901
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3902
+ }
3903
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3904
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3905
+ }
3906
+ if (typeof this.searchTerm !== 'undefined') {
3907
+ toReturn['searchTerm'] = this.searchTerm;
3908
+ }
3909
+ if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
3910
+ toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
3911
+ }
3912
+ if (typeof this.omitOverrides !== 'undefined') {
3913
+ toReturn['omitOverrides'] = this.omitOverrides;
3914
+ }
3902
3915
  return toReturn;
3903
3916
  }
3904
3917
  }
3905
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
3918
+ class ListFunctionRequestFilters {
3906
3919
  static fromProto(proto) {
3907
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3920
+ let m = new ListFunctionRequestFilters();
3908
3921
  m = Object.assign(m, proto);
3909
- if (proto.type) {
3910
- m.type = enumStringToValue(AssistantType, proto.type);
3922
+ if (proto.namespace) {
3923
+ m.namespace = Namespace.fromProto(proto.namespace);
3924
+ }
3925
+ if (proto.namespaces) {
3926
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3927
+ }
3928
+ if (proto.constraintFilters) {
3929
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3911
3930
  }
3912
3931
  return m;
3913
3932
  }
@@ -3919,19 +3938,31 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3919
3938
  }
3920
3939
  toApiJson() {
3921
3940
  const toReturn = {};
3922
- if (typeof this.type !== 'undefined') {
3923
- toReturn['type'] = this.type;
3941
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3942
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3943
+ }
3944
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3945
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3946
+ }
3947
+ if (typeof this.mcpId !== 'undefined') {
3948
+ toReturn['mcpId'] = this.mcpId;
3949
+ }
3950
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3951
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3924
3952
  }
3925
3953
  return toReturn;
3926
3954
  }
3927
3955
  }
3928
- class ListPromptModuleRequestFilters {
3956
+ class ListConnectionsRequestFilters {
3929
3957
  static fromProto(proto) {
3930
- let m = new ListPromptModuleRequestFilters();
3958
+ let m = new ListConnectionsRequestFilters();
3931
3959
  m = Object.assign(m, proto);
3932
3960
  if (proto.namespace) {
3933
3961
  m.namespace = Namespace.fromProto(proto.namespace);
3934
3962
  }
3963
+ if (proto.assistantType) {
3964
+ m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3965
+ }
3935
3966
  return m;
3936
3967
  }
3937
3968
  constructor(kwargs) {
@@ -3945,18 +3976,18 @@ class ListPromptModuleRequestFilters {
3945
3976
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3946
3977
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3947
3978
  }
3979
+ if (typeof this.assistantType !== 'undefined') {
3980
+ toReturn['assistantType'] = this.assistantType;
3981
+ }
3948
3982
  return toReturn;
3949
3983
  }
3950
3984
  }
3951
- class ListConnectionsRequestFilters {
3985
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3952
3986
  static fromProto(proto) {
3953
- let m = new ListConnectionsRequestFilters();
3987
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3954
3988
  m = Object.assign(m, proto);
3955
- if (proto.namespace) {
3956
- m.namespace = Namespace.fromProto(proto.namespace);
3957
- }
3958
- if (proto.assistantType) {
3959
- m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3989
+ if (proto.type) {
3990
+ m.type = enumStringToValue(AssistantType, proto.type);
3960
3991
  }
3961
3992
  return m;
3962
3993
  }
@@ -3968,11 +3999,8 @@ class ListConnectionsRequestFilters {
3968
3999
  }
3969
4000
  toApiJson() {
3970
4001
  const toReturn = {};
3971
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3972
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3973
- }
3974
- if (typeof this.assistantType !== 'undefined') {
3975
- toReturn['assistantType'] = this.assistantType;
4002
+ if (typeof this.type !== 'undefined') {
4003
+ toReturn['type'] = this.type;
3976
4004
  }
3977
4005
  return toReturn;
3978
4006
  }
@@ -4046,6 +4074,9 @@ class GenerateChatAnswerResponse {
4046
4074
  if (proto.validationResult) {
4047
4075
  m.validationResult = ValidationResult.fromProto(proto.validationResult);
4048
4076
  }
4077
+ if (proto.toolCalls) {
4078
+ m.toolCalls = proto.toolCalls.map(ToolCall.fromProto);
4079
+ }
4049
4080
  return m;
4050
4081
  }
4051
4082
  constructor(kwargs) {
@@ -4068,6 +4099,9 @@ class GenerateChatAnswerResponse {
4068
4099
  if (typeof this.validationResult !== 'undefined' && this.validationResult !== null) {
4069
4100
  toReturn['validationResult'] = 'toApiJson' in this.validationResult ? this.validationResult.toApiJson() : this.validationResult;
4070
4101
  }
4102
+ if (typeof this.toolCalls !== 'undefined' && this.toolCalls !== null) {
4103
+ toReturn['toolCalls'] = 'toApiJson' in this.toolCalls ? this.toolCalls.toApiJson() : this.toolCalls;
4104
+ }
4071
4105
  return toReturn;
4072
4106
  }
4073
4107
  }
@@ -5279,13 +5313,10 @@ class ListTemplateVariablesResponse {
5279
5313
  return toReturn;
5280
5314
  }
5281
5315
  }
5282
- class GenerateChatAnswerRequestOptions {
5316
+ class CreateAssistantRequestOptions {
5283
5317
  static fromProto(proto) {
5284
- let m = new GenerateChatAnswerRequestOptions();
5318
+ let m = new CreateAssistantRequestOptions();
5285
5319
  m = Object.assign(m, proto);
5286
- if (proto.maxTokens) {
5287
- m.maxTokens = parseInt(proto.maxTokens, 10);
5288
- }
5289
5320
  return m;
5290
5321
  }
5291
5322
  constructor(kwargs) {
@@ -5296,21 +5327,15 @@ class GenerateChatAnswerRequestOptions {
5296
5327
  }
5297
5328
  toApiJson() {
5298
5329
  const toReturn = {};
5299
- if (typeof this.includeAllCitations !== 'undefined') {
5300
- toReturn['includeAllCitations'] = this.includeAllCitations;
5301
- }
5302
- if (typeof this.enableAsyncFunctions !== 'undefined') {
5303
- toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
5304
- }
5305
- if (typeof this.maxTokens !== 'undefined') {
5306
- toReturn['maxTokens'] = this.maxTokens;
5330
+ if (typeof this.applyDefaults !== 'undefined') {
5331
+ toReturn['applyDefaults'] = this.applyDefaults;
5307
5332
  }
5308
5333
  return toReturn;
5309
5334
  }
5310
5335
  }
5311
- class GetMultiAssistantRequestOptions {
5336
+ class UpsertAssistantRequestOptions {
5312
5337
  static fromProto(proto) {
5313
- let m = new GetMultiAssistantRequestOptions();
5338
+ let m = new UpsertAssistantRequestOptions();
5314
5339
  m = Object.assign(m, proto);
5315
5340
  return m;
5316
5341
  }
@@ -5322,15 +5347,15 @@ class GetMultiAssistantRequestOptions {
5322
5347
  }
5323
5348
  toApiJson() {
5324
5349
  const toReturn = {};
5325
- if (typeof this.skipGoalsHydration !== 'undefined') {
5326
- toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5350
+ if (typeof this.applyDefaults !== 'undefined') {
5351
+ toReturn['applyDefaults'] = this.applyDefaults;
5327
5352
  }
5328
5353
  return toReturn;
5329
5354
  }
5330
5355
  }
5331
- class UpsertAssistantRequestOptions {
5356
+ class CreatePromptModuleVersionRequestOptions {
5332
5357
  static fromProto(proto) {
5333
- let m = new UpsertAssistantRequestOptions();
5358
+ let m = new CreatePromptModuleVersionRequestOptions();
5334
5359
  m = Object.assign(m, proto);
5335
5360
  return m;
5336
5361
  }
@@ -5342,8 +5367,8 @@ class UpsertAssistantRequestOptions {
5342
5367
  }
5343
5368
  toApiJson() {
5344
5369
  const toReturn = {};
5345
- if (typeof this.applyDefaults !== 'undefined') {
5346
- toReturn['applyDefaults'] = this.applyDefaults;
5370
+ if (typeof this.shouldDeploy !== 'undefined') {
5371
+ toReturn['shouldDeploy'] = this.shouldDeploy;
5347
5372
  }
5348
5373
  return toReturn;
5349
5374
  }
@@ -5368,9 +5393,9 @@ class GetAssistantRequestOptions {
5368
5393
  return toReturn;
5369
5394
  }
5370
5395
  }
5371
- class CreateAssistantRequestOptions {
5396
+ class GetMultiAssistantRequestOptions {
5372
5397
  static fromProto(proto) {
5373
- let m = new CreateAssistantRequestOptions();
5398
+ let m = new GetMultiAssistantRequestOptions();
5374
5399
  m = Object.assign(m, proto);
5375
5400
  return m;
5376
5401
  }
@@ -5382,18 +5407,18 @@ class CreateAssistantRequestOptions {
5382
5407
  }
5383
5408
  toApiJson() {
5384
5409
  const toReturn = {};
5385
- if (typeof this.applyDefaults !== 'undefined') {
5386
- toReturn['applyDefaults'] = this.applyDefaults;
5410
+ if (typeof this.skipGoalsHydration !== 'undefined') {
5411
+ toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5387
5412
  }
5388
5413
  return toReturn;
5389
5414
  }
5390
5415
  }
5391
- class ExecuteFunctionRequestOptions {
5416
+ class GenerateChatAnswerRequestOptions {
5392
5417
  static fromProto(proto) {
5393
- let m = new ExecuteFunctionRequestOptions();
5418
+ let m = new GenerateChatAnswerRequestOptions();
5394
5419
  m = Object.assign(m, proto);
5395
- if (proto.contextInfo) {
5396
- m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5420
+ if (proto.maxTokens) {
5421
+ m.maxTokens = parseInt(proto.maxTokens, 10);
5397
5422
  }
5398
5423
  return m;
5399
5424
  }
@@ -5405,19 +5430,25 @@ class ExecuteFunctionRequestOptions {
5405
5430
  }
5406
5431
  toApiJson() {
5407
5432
  const toReturn = {};
5408
- if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5409
- toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5433
+ if (typeof this.includeAllCitations !== 'undefined') {
5434
+ toReturn['includeAllCitations'] = this.includeAllCitations;
5410
5435
  }
5411
- if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
5412
- toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
5436
+ if (typeof this.enableAsyncFunctions !== 'undefined') {
5437
+ toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
5438
+ }
5439
+ if (typeof this.maxTokens !== 'undefined') {
5440
+ toReturn['maxTokens'] = this.maxTokens;
5413
5441
  }
5414
5442
  return toReturn;
5415
5443
  }
5416
5444
  }
5417
- class CreatePromptModuleVersionRequestOptions {
5445
+ class ExecuteFunctionRequestOptions {
5418
5446
  static fromProto(proto) {
5419
- let m = new CreatePromptModuleVersionRequestOptions();
5447
+ let m = new ExecuteFunctionRequestOptions();
5420
5448
  m = Object.assign(m, proto);
5449
+ if (proto.contextInfo) {
5450
+ m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5451
+ }
5421
5452
  return m;
5422
5453
  }
5423
5454
  constructor(kwargs) {
@@ -5428,8 +5459,11 @@ class CreatePromptModuleVersionRequestOptions {
5428
5459
  }
5429
5460
  toApiJson() {
5430
5461
  const toReturn = {};
5431
- if (typeof this.shouldDeploy !== 'undefined') {
5432
- toReturn['shouldDeploy'] = this.shouldDeploy;
5462
+ if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5463
+ toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5464
+ }
5465
+ if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
5466
+ toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
5433
5467
  }
5434
5468
  return toReturn;
5435
5469
  }
@@ -5518,6 +5552,41 @@ class ListGoalsRequestSortOptions {
5518
5552
  return toReturn;
5519
5553
  }
5520
5554
  }
5555
+ class ToolCall {
5556
+ static fromProto(proto) {
5557
+ let m = new ToolCall();
5558
+ m = Object.assign(m, proto);
5559
+ if (proto.namespace) {
5560
+ m.namespace = Namespace.fromProto(proto.namespace);
5561
+ }
5562
+ return m;
5563
+ }
5564
+ constructor(kwargs) {
5565
+ if (!kwargs) {
5566
+ return;
5567
+ }
5568
+ Object.assign(this, kwargs);
5569
+ }
5570
+ toApiJson() {
5571
+ const toReturn = {};
5572
+ if (typeof this.toolName !== 'undefined') {
5573
+ toReturn['toolName'] = this.toolName;
5574
+ }
5575
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
5576
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
5577
+ }
5578
+ if (typeof this.arguments !== 'undefined') {
5579
+ toReturn['arguments'] = this.arguments;
5580
+ }
5581
+ if (typeof this.response !== 'undefined') {
5582
+ toReturn['response'] = this.response;
5583
+ }
5584
+ if (typeof this.noOp !== 'undefined') {
5585
+ toReturn['noOp'] = this.noOp;
5586
+ }
5587
+ return toReturn;
5588
+ }
5589
+ }
5521
5590
  class UpdateAssistantRequest {
5522
5591
  static fromProto(proto) {
5523
5592
  let m = new UpdateAssistantRequest();
@@ -5867,12 +5936,15 @@ class ValidatePromptModulesResponse {
5867
5936
  return toReturn;
5868
5937
  }
5869
5938
  }
5870
- class ValidatePromptModulesResponseValidationResult {
5939
+ class ValidationResult {
5871
5940
  static fromProto(proto) {
5872
- let m = new ValidatePromptModulesResponseValidationResult();
5941
+ let m = new ValidationResult();
5873
5942
  m = Object.assign(m, proto);
5874
- if (proto.namespace) {
5875
- m.namespace = Namespace.fromProto(proto.namespace);
5943
+ if (proto.failureAction) {
5944
+ m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
5945
+ }
5946
+ if (proto.violations) {
5947
+ m.violations = proto.violations.map(ValidationViolation.fromProto);
5876
5948
  }
5877
5949
  return m;
5878
5950
  }
@@ -5884,17 +5956,11 @@ class ValidatePromptModulesResponseValidationResult {
5884
5956
  }
5885
5957
  toApiJson() {
5886
5958
  const toReturn = {};
5887
- if (typeof this.id !== 'undefined') {
5888
- toReturn['id'] = this.id;
5889
- }
5890
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
5891
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
5892
- }
5893
- if (typeof this.isValid !== 'undefined') {
5894
- toReturn['isValid'] = this.isValid;
5959
+ if (typeof this.failureAction !== 'undefined') {
5960
+ toReturn['failureAction'] = this.failureAction;
5895
5961
  }
5896
- if (typeof this.errorMessage !== 'undefined') {
5897
- toReturn['errorMessage'] = this.errorMessage;
5962
+ if (typeof this.violations !== 'undefined' && this.violations !== null) {
5963
+ toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
5898
5964
  }
5899
5965
  return toReturn;
5900
5966
  }
@@ -5931,15 +5997,12 @@ class ValidatePromptModuleVersionsResponseValidationResult {
5931
5997
  return toReturn;
5932
5998
  }
5933
5999
  }
5934
- class ValidationResult {
6000
+ class ValidatePromptModulesResponseValidationResult {
5935
6001
  static fromProto(proto) {
5936
- let m = new ValidationResult();
6002
+ let m = new ValidatePromptModulesResponseValidationResult();
5937
6003
  m = Object.assign(m, proto);
5938
- if (proto.failureAction) {
5939
- m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
5940
- }
5941
- if (proto.violations) {
5942
- m.violations = proto.violations.map(ValidationViolation.fromProto);
6004
+ if (proto.namespace) {
6005
+ m.namespace = Namespace.fromProto(proto.namespace);
5943
6006
  }
5944
6007
  return m;
5945
6008
  }
@@ -5951,11 +6014,17 @@ class ValidationResult {
5951
6014
  }
5952
6015
  toApiJson() {
5953
6016
  const toReturn = {};
5954
- if (typeof this.failureAction !== 'undefined') {
5955
- toReturn['failureAction'] = this.failureAction;
6017
+ if (typeof this.id !== 'undefined') {
6018
+ toReturn['id'] = this.id;
5956
6019
  }
5957
- if (typeof this.violations !== 'undefined' && this.violations !== null) {
5958
- toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
6020
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
6021
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
6022
+ }
6023
+ if (typeof this.isValid !== 'undefined') {
6024
+ toReturn['isValid'] = this.isValid;
6025
+ }
6026
+ if (typeof this.errorMessage !== 'undefined') {
6027
+ toReturn['errorMessage'] = this.errorMessage;
5959
6028
  }
5960
6029
  return toReturn;
5961
6030
  }
@@ -6496,5 +6565,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6496
6565
  * Generated bundle index. Do not edit.
6497
6566
  */
6498
6567
 
6499
- 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 };
6568
+ 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 };
6500
6569
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map