@vendasta/ai-assistants 0.66.0 → 0.68.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.
@@ -716,6 +716,9 @@ class Function {
716
716
  if (typeof this.sourcePath !== 'undefined') {
717
717
  toReturn['sourcePath'] = this.sourcePath;
718
718
  }
719
+ if (typeof this.noOp !== 'undefined') {
720
+ toReturn['noOp'] = this.noOp;
721
+ }
719
722
  return toReturn;
720
723
  }
721
724
  }
@@ -1886,6 +1889,9 @@ class Model {
1886
1889
  if (typeof this.recommended !== 'undefined') {
1887
1890
  toReturn['recommended'] = this.recommended;
1888
1891
  }
1892
+ if (typeof this.supportedReasoningEfforts !== 'undefined') {
1893
+ toReturn['supportedReasoningEfforts'] = this.supportedReasoningEfforts;
1894
+ }
1889
1895
  return toReturn;
1890
1896
  }
1891
1897
  }
@@ -2909,6 +2915,9 @@ class RunTestsRequest {
2909
2915
  if (proto.assistant) {
2910
2916
  m.assistant = AssistantKey.fromProto(proto.assistant);
2911
2917
  }
2918
+ if (proto.llmOptions) {
2919
+ m.llmOptions = proto.llmOptions.map(TestLLMOptions.fromProto);
2920
+ }
2912
2921
  return m;
2913
2922
  }
2914
2923
  constructor(kwargs) {
@@ -2925,6 +2934,9 @@ class RunTestsRequest {
2925
2934
  if (typeof this.testCaseIds !== 'undefined') {
2926
2935
  toReturn['testCaseIds'] = this.testCaseIds;
2927
2936
  }
2937
+ if (typeof this.llmOptions !== 'undefined' && this.llmOptions !== null) {
2938
+ toReturn['llmOptions'] = 'toApiJson' in this.llmOptions ? this.llmOptions.toApiJson() : this.llmOptions;
2939
+ }
2928
2940
  return toReturn;
2929
2941
  }
2930
2942
  }
@@ -3006,6 +3018,29 @@ class TestCase {
3006
3018
  return toReturn;
3007
3019
  }
3008
3020
  }
3021
+ class TestLLMOptions {
3022
+ static fromProto(proto) {
3023
+ let m = new TestLLMOptions();
3024
+ m = Object.assign(m, proto);
3025
+ return m;
3026
+ }
3027
+ constructor(kwargs) {
3028
+ if (!kwargs) {
3029
+ return;
3030
+ }
3031
+ Object.assign(this, kwargs);
3032
+ }
3033
+ toApiJson() {
3034
+ const toReturn = {};
3035
+ if (typeof this.model !== 'undefined') {
3036
+ toReturn['model'] = this.model;
3037
+ }
3038
+ if (typeof this.reasoningEffort !== 'undefined') {
3039
+ toReturn['reasoningEffort'] = this.reasoningEffort;
3040
+ }
3041
+ return toReturn;
3042
+ }
3043
+ }
3009
3044
  class TestResult {
3010
3045
  static fromProto(proto) {
3011
3046
  let m = new TestResult();
@@ -3016,6 +3051,9 @@ class TestResult {
3016
3051
  if (proto.citations) {
3017
3052
  m.citations = proto.citations.map(TestResultCitation.fromProto);
3018
3053
  }
3054
+ if (proto.llmOptions) {
3055
+ m.llmOptions = TestLLMOptions.fromProto(proto.llmOptions);
3056
+ }
3019
3057
  return m;
3020
3058
  }
3021
3059
  constructor(kwargs) {
@@ -3053,6 +3091,12 @@ class TestResult {
3053
3091
  if (typeof this.citations !== 'undefined' && this.citations !== null) {
3054
3092
  toReturn['citations'] = 'toApiJson' in this.citations ? this.citations.toApiJson() : this.citations;
3055
3093
  }
3094
+ if (typeof this.llmOptions !== 'undefined' && this.llmOptions !== null) {
3095
+ toReturn['llmOptions'] = 'toApiJson' in this.llmOptions ? this.llmOptions.toApiJson() : this.llmOptions;
3096
+ }
3097
+ if (typeof this.latency !== 'undefined') {
3098
+ toReturn['latency'] = this.latency;
3099
+ }
3056
3100
  return toReturn;
3057
3101
  }
3058
3102
  }
@@ -3711,27 +3755,15 @@ class ExecuteFunctionResponse {
3711
3755
  return toReturn;
3712
3756
  }
3713
3757
  }
3714
- class ListGoalsRequestFilters {
3758
+ class ListAssistantRequestFilters {
3715
3759
  static fromProto(proto) {
3716
- let m = new ListGoalsRequestFilters();
3760
+ let m = new ListAssistantRequestFilters();
3717
3761
  m = Object.assign(m, proto);
3718
3762
  if (proto.namespace) {
3719
3763
  m.namespace = Namespace.fromProto(proto.namespace);
3720
3764
  }
3721
3765
  if (proto.type) {
3722
- m.type = enumStringToValue(GoalType, proto.type);
3723
- }
3724
- if (proto.supportedChannels) {
3725
- m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3726
- }
3727
- if (proto.namespaces) {
3728
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3729
- }
3730
- if (proto.constraintFilters) {
3731
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3732
- }
3733
- if (proto.sortOptions) {
3734
- m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
3766
+ m.type = enumStringToValue(AssistantType, proto.type);
3735
3767
  }
3736
3768
  return m;
3737
3769
  }
@@ -3749,36 +3781,18 @@ class ListGoalsRequestFilters {
3749
3781
  if (typeof this.type !== 'undefined') {
3750
3782
  toReturn['type'] = this.type;
3751
3783
  }
3752
- if (typeof this.supportedChannels !== 'undefined') {
3753
- toReturn['supportedChannels'] = this.supportedChannels;
3754
- }
3755
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3756
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3757
- }
3758
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3759
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3760
- }
3761
- if (typeof this.searchTerm !== 'undefined') {
3762
- toReturn['searchTerm'] = this.searchTerm;
3763
- }
3764
- if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
3765
- toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
3766
- }
3767
- if (typeof this.omitOverrides !== 'undefined') {
3768
- toReturn['omitOverrides'] = this.omitOverrides;
3769
- }
3770
3784
  return toReturn;
3771
3785
  }
3772
3786
  }
3773
- class ListAssistantRequestFilters {
3787
+ class ListAvailableModelsRequestFilters {
3774
3788
  static fromProto(proto) {
3775
- let m = new ListAssistantRequestFilters();
3789
+ let m = new ListAvailableModelsRequestFilters();
3776
3790
  m = Object.assign(m, proto);
3777
- if (proto.namespace) {
3778
- m.namespace = Namespace.fromProto(proto.namespace);
3791
+ if (proto.vendor) {
3792
+ m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3779
3793
  }
3780
3794
  if (proto.type) {
3781
- m.type = enumStringToValue(AssistantType, proto.type);
3795
+ m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3782
3796
  }
3783
3797
  return m;
3784
3798
  }
@@ -3790,8 +3804,8 @@ class ListAssistantRequestFilters {
3790
3804
  }
3791
3805
  toApiJson() {
3792
3806
  const toReturn = {};
3793
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3794
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3807
+ if (typeof this.vendor !== 'undefined') {
3808
+ toReturn['vendor'] = this.vendor;
3795
3809
  }
3796
3810
  if (typeof this.type !== 'undefined') {
3797
3811
  toReturn['type'] = this.type;
@@ -3799,19 +3813,13 @@ class ListAssistantRequestFilters {
3799
3813
  return toReturn;
3800
3814
  }
3801
3815
  }
3802
- class ListFunctionRequestFilters {
3816
+ class ListPromptModuleRequestFilters {
3803
3817
  static fromProto(proto) {
3804
- let m = new ListFunctionRequestFilters();
3818
+ let m = new ListPromptModuleRequestFilters();
3805
3819
  m = Object.assign(m, proto);
3806
3820
  if (proto.namespace) {
3807
3821
  m.namespace = Namespace.fromProto(proto.namespace);
3808
3822
  }
3809
- if (proto.namespaces) {
3810
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3811
- }
3812
- if (proto.constraintFilters) {
3813
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3814
- }
3815
3823
  return m;
3816
3824
  }
3817
3825
  constructor(kwargs) {
@@ -3825,27 +3833,30 @@ class ListFunctionRequestFilters {
3825
3833
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3826
3834
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3827
3835
  }
3828
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3829
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3830
- }
3831
- if (typeof this.mcpId !== 'undefined') {
3832
- toReturn['mcpId'] = this.mcpId;
3833
- }
3834
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3835
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3836
- }
3837
3836
  return toReturn;
3838
3837
  }
3839
3838
  }
3840
- class ListAvailableModelsRequestFilters {
3839
+ class ListGoalsRequestFilters {
3841
3840
  static fromProto(proto) {
3842
- let m = new ListAvailableModelsRequestFilters();
3841
+ let m = new ListGoalsRequestFilters();
3843
3842
  m = Object.assign(m, proto);
3844
- if (proto.vendor) {
3845
- m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3843
+ if (proto.namespace) {
3844
+ m.namespace = Namespace.fromProto(proto.namespace);
3846
3845
  }
3847
3846
  if (proto.type) {
3848
- m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3847
+ m.type = enumStringToValue(GoalType, proto.type);
3848
+ }
3849
+ if (proto.supportedChannels) {
3850
+ m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3851
+ }
3852
+ if (proto.namespaces) {
3853
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3854
+ }
3855
+ if (proto.constraintFilters) {
3856
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3857
+ }
3858
+ if (proto.sortOptions) {
3859
+ m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
3849
3860
  }
3850
3861
  return m;
3851
3862
  }
@@ -3857,21 +3868,45 @@ class ListAvailableModelsRequestFilters {
3857
3868
  }
3858
3869
  toApiJson() {
3859
3870
  const toReturn = {};
3860
- if (typeof this.vendor !== 'undefined') {
3861
- toReturn['vendor'] = this.vendor;
3871
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3872
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3862
3873
  }
3863
3874
  if (typeof this.type !== 'undefined') {
3864
3875
  toReturn['type'] = this.type;
3865
3876
  }
3877
+ if (typeof this.supportedChannels !== 'undefined') {
3878
+ toReturn['supportedChannels'] = this.supportedChannels;
3879
+ }
3880
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3881
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3882
+ }
3883
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3884
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3885
+ }
3886
+ if (typeof this.searchTerm !== 'undefined') {
3887
+ toReturn['searchTerm'] = this.searchTerm;
3888
+ }
3889
+ if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
3890
+ toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
3891
+ }
3892
+ if (typeof this.omitOverrides !== 'undefined') {
3893
+ toReturn['omitOverrides'] = this.omitOverrides;
3894
+ }
3866
3895
  return toReturn;
3867
3896
  }
3868
3897
  }
3869
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
3898
+ class ListFunctionRequestFilters {
3870
3899
  static fromProto(proto) {
3871
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3900
+ let m = new ListFunctionRequestFilters();
3872
3901
  m = Object.assign(m, proto);
3873
- if (proto.type) {
3874
- m.type = enumStringToValue(AssistantType, proto.type);
3902
+ if (proto.namespace) {
3903
+ m.namespace = Namespace.fromProto(proto.namespace);
3904
+ }
3905
+ if (proto.namespaces) {
3906
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3907
+ }
3908
+ if (proto.constraintFilters) {
3909
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3875
3910
  }
3876
3911
  return m;
3877
3912
  }
@@ -3883,19 +3918,31 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3883
3918
  }
3884
3919
  toApiJson() {
3885
3920
  const toReturn = {};
3886
- if (typeof this.type !== 'undefined') {
3887
- toReturn['type'] = this.type;
3921
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3922
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3923
+ }
3924
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3925
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3926
+ }
3927
+ if (typeof this.mcpId !== 'undefined') {
3928
+ toReturn['mcpId'] = this.mcpId;
3929
+ }
3930
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3931
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3888
3932
  }
3889
3933
  return toReturn;
3890
3934
  }
3891
3935
  }
3892
- class ListPromptModuleRequestFilters {
3936
+ class ListConnectionsRequestFilters {
3893
3937
  static fromProto(proto) {
3894
- let m = new ListPromptModuleRequestFilters();
3938
+ let m = new ListConnectionsRequestFilters();
3895
3939
  m = Object.assign(m, proto);
3896
3940
  if (proto.namespace) {
3897
3941
  m.namespace = Namespace.fromProto(proto.namespace);
3898
3942
  }
3943
+ if (proto.assistantType) {
3944
+ m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3945
+ }
3899
3946
  return m;
3900
3947
  }
3901
3948
  constructor(kwargs) {
@@ -3909,18 +3956,18 @@ class ListPromptModuleRequestFilters {
3909
3956
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3910
3957
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3911
3958
  }
3959
+ if (typeof this.assistantType !== 'undefined') {
3960
+ toReturn['assistantType'] = this.assistantType;
3961
+ }
3912
3962
  return toReturn;
3913
3963
  }
3914
3964
  }
3915
- class ListConnectionsRequestFilters {
3965
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3916
3966
  static fromProto(proto) {
3917
- let m = new ListConnectionsRequestFilters();
3967
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3918
3968
  m = Object.assign(m, proto);
3919
- if (proto.namespace) {
3920
- m.namespace = Namespace.fromProto(proto.namespace);
3921
- }
3922
- if (proto.assistantType) {
3923
- m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3969
+ if (proto.type) {
3970
+ m.type = enumStringToValue(AssistantType, proto.type);
3924
3971
  }
3925
3972
  return m;
3926
3973
  }
@@ -3932,11 +3979,8 @@ class ListConnectionsRequestFilters {
3932
3979
  }
3933
3980
  toApiJson() {
3934
3981
  const toReturn = {};
3935
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3936
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3937
- }
3938
- if (typeof this.assistantType !== 'undefined') {
3939
- toReturn['assistantType'] = this.assistantType;
3982
+ if (typeof this.type !== 'undefined') {
3983
+ toReturn['type'] = this.type;
3940
3984
  }
3941
3985
  return toReturn;
3942
3986
  }
@@ -4010,6 +4054,9 @@ class GenerateChatAnswerResponse {
4010
4054
  if (proto.validationResult) {
4011
4055
  m.validationResult = ValidationResult.fromProto(proto.validationResult);
4012
4056
  }
4057
+ if (proto.toolCalls) {
4058
+ m.toolCalls = proto.toolCalls.map(ToolCall.fromProto);
4059
+ }
4013
4060
  return m;
4014
4061
  }
4015
4062
  constructor(kwargs) {
@@ -4032,6 +4079,9 @@ class GenerateChatAnswerResponse {
4032
4079
  if (typeof this.validationResult !== 'undefined' && this.validationResult !== null) {
4033
4080
  toReturn['validationResult'] = 'toApiJson' in this.validationResult ? this.validationResult.toApiJson() : this.validationResult;
4034
4081
  }
4082
+ if (typeof this.toolCalls !== 'undefined' && this.toolCalls !== null) {
4083
+ toReturn['toolCalls'] = 'toApiJson' in this.toolCalls ? this.toolCalls.toApiJson() : this.toolCalls;
4084
+ }
4035
4085
  return toReturn;
4036
4086
  }
4037
4087
  }
@@ -5243,13 +5293,10 @@ class ListTemplateVariablesResponse {
5243
5293
  return toReturn;
5244
5294
  }
5245
5295
  }
5246
- class GenerateChatAnswerRequestOptions {
5296
+ class CreateAssistantRequestOptions {
5247
5297
  static fromProto(proto) {
5248
- let m = new GenerateChatAnswerRequestOptions();
5298
+ let m = new CreateAssistantRequestOptions();
5249
5299
  m = Object.assign(m, proto);
5250
- if (proto.maxTokens) {
5251
- m.maxTokens = parseInt(proto.maxTokens, 10);
5252
- }
5253
5300
  return m;
5254
5301
  }
5255
5302
  constructor(kwargs) {
@@ -5260,21 +5307,15 @@ class GenerateChatAnswerRequestOptions {
5260
5307
  }
5261
5308
  toApiJson() {
5262
5309
  const toReturn = {};
5263
- if (typeof this.includeAllCitations !== 'undefined') {
5264
- toReturn['includeAllCitations'] = this.includeAllCitations;
5265
- }
5266
- if (typeof this.enableAsyncFunctions !== 'undefined') {
5267
- toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
5268
- }
5269
- if (typeof this.maxTokens !== 'undefined') {
5270
- toReturn['maxTokens'] = this.maxTokens;
5310
+ if (typeof this.applyDefaults !== 'undefined') {
5311
+ toReturn['applyDefaults'] = this.applyDefaults;
5271
5312
  }
5272
5313
  return toReturn;
5273
5314
  }
5274
5315
  }
5275
- class GetMultiAssistantRequestOptions {
5316
+ class UpsertAssistantRequestOptions {
5276
5317
  static fromProto(proto) {
5277
- let m = new GetMultiAssistantRequestOptions();
5318
+ let m = new UpsertAssistantRequestOptions();
5278
5319
  m = Object.assign(m, proto);
5279
5320
  return m;
5280
5321
  }
@@ -5286,15 +5327,15 @@ class GetMultiAssistantRequestOptions {
5286
5327
  }
5287
5328
  toApiJson() {
5288
5329
  const toReturn = {};
5289
- if (typeof this.skipGoalsHydration !== 'undefined') {
5290
- toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5330
+ if (typeof this.applyDefaults !== 'undefined') {
5331
+ toReturn['applyDefaults'] = this.applyDefaults;
5291
5332
  }
5292
5333
  return toReturn;
5293
5334
  }
5294
5335
  }
5295
- class UpsertAssistantRequestOptions {
5336
+ class CreatePromptModuleVersionRequestOptions {
5296
5337
  static fromProto(proto) {
5297
- let m = new UpsertAssistantRequestOptions();
5338
+ let m = new CreatePromptModuleVersionRequestOptions();
5298
5339
  m = Object.assign(m, proto);
5299
5340
  return m;
5300
5341
  }
@@ -5306,8 +5347,8 @@ class UpsertAssistantRequestOptions {
5306
5347
  }
5307
5348
  toApiJson() {
5308
5349
  const toReturn = {};
5309
- if (typeof this.applyDefaults !== 'undefined') {
5310
- toReturn['applyDefaults'] = this.applyDefaults;
5350
+ if (typeof this.shouldDeploy !== 'undefined') {
5351
+ toReturn['shouldDeploy'] = this.shouldDeploy;
5311
5352
  }
5312
5353
  return toReturn;
5313
5354
  }
@@ -5332,9 +5373,9 @@ class GetAssistantRequestOptions {
5332
5373
  return toReturn;
5333
5374
  }
5334
5375
  }
5335
- class CreateAssistantRequestOptions {
5376
+ class GetMultiAssistantRequestOptions {
5336
5377
  static fromProto(proto) {
5337
- let m = new CreateAssistantRequestOptions();
5378
+ let m = new GetMultiAssistantRequestOptions();
5338
5379
  m = Object.assign(m, proto);
5339
5380
  return m;
5340
5381
  }
@@ -5346,18 +5387,18 @@ class CreateAssistantRequestOptions {
5346
5387
  }
5347
5388
  toApiJson() {
5348
5389
  const toReturn = {};
5349
- if (typeof this.applyDefaults !== 'undefined') {
5350
- toReturn['applyDefaults'] = this.applyDefaults;
5390
+ if (typeof this.skipGoalsHydration !== 'undefined') {
5391
+ toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5351
5392
  }
5352
5393
  return toReturn;
5353
5394
  }
5354
5395
  }
5355
- class ExecuteFunctionRequestOptions {
5396
+ class GenerateChatAnswerRequestOptions {
5356
5397
  static fromProto(proto) {
5357
- let m = new ExecuteFunctionRequestOptions();
5398
+ let m = new GenerateChatAnswerRequestOptions();
5358
5399
  m = Object.assign(m, proto);
5359
- if (proto.contextInfo) {
5360
- m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5400
+ if (proto.maxTokens) {
5401
+ m.maxTokens = parseInt(proto.maxTokens, 10);
5361
5402
  }
5362
5403
  return m;
5363
5404
  }
@@ -5369,19 +5410,25 @@ class ExecuteFunctionRequestOptions {
5369
5410
  }
5370
5411
  toApiJson() {
5371
5412
  const toReturn = {};
5372
- if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5373
- toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5413
+ if (typeof this.includeAllCitations !== 'undefined') {
5414
+ toReturn['includeAllCitations'] = this.includeAllCitations;
5374
5415
  }
5375
- if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
5376
- toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
5416
+ if (typeof this.enableAsyncFunctions !== 'undefined') {
5417
+ toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
5418
+ }
5419
+ if (typeof this.maxTokens !== 'undefined') {
5420
+ toReturn['maxTokens'] = this.maxTokens;
5377
5421
  }
5378
5422
  return toReturn;
5379
5423
  }
5380
5424
  }
5381
- class CreatePromptModuleVersionRequestOptions {
5425
+ class ExecuteFunctionRequestOptions {
5382
5426
  static fromProto(proto) {
5383
- let m = new CreatePromptModuleVersionRequestOptions();
5427
+ let m = new ExecuteFunctionRequestOptions();
5384
5428
  m = Object.assign(m, proto);
5429
+ if (proto.contextInfo) {
5430
+ m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5431
+ }
5385
5432
  return m;
5386
5433
  }
5387
5434
  constructor(kwargs) {
@@ -5392,8 +5439,11 @@ class CreatePromptModuleVersionRequestOptions {
5392
5439
  }
5393
5440
  toApiJson() {
5394
5441
  const toReturn = {};
5395
- if (typeof this.shouldDeploy !== 'undefined') {
5396
- toReturn['shouldDeploy'] = this.shouldDeploy;
5442
+ if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5443
+ toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5444
+ }
5445
+ if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
5446
+ toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
5397
5447
  }
5398
5448
  return toReturn;
5399
5449
  }
@@ -5482,6 +5532,41 @@ class ListGoalsRequestSortOptions {
5482
5532
  return toReturn;
5483
5533
  }
5484
5534
  }
5535
+ class ToolCall {
5536
+ static fromProto(proto) {
5537
+ let m = new ToolCall();
5538
+ m = Object.assign(m, proto);
5539
+ if (proto.namespace) {
5540
+ m.namespace = Namespace.fromProto(proto.namespace);
5541
+ }
5542
+ return m;
5543
+ }
5544
+ constructor(kwargs) {
5545
+ if (!kwargs) {
5546
+ return;
5547
+ }
5548
+ Object.assign(this, kwargs);
5549
+ }
5550
+ toApiJson() {
5551
+ const toReturn = {};
5552
+ if (typeof this.toolName !== 'undefined') {
5553
+ toReturn['toolName'] = this.toolName;
5554
+ }
5555
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
5556
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
5557
+ }
5558
+ if (typeof this.arguments !== 'undefined') {
5559
+ toReturn['arguments'] = this.arguments;
5560
+ }
5561
+ if (typeof this.response !== 'undefined') {
5562
+ toReturn['response'] = this.response;
5563
+ }
5564
+ if (typeof this.noOp !== 'undefined') {
5565
+ toReturn['noOp'] = this.noOp;
5566
+ }
5567
+ return toReturn;
5568
+ }
5569
+ }
5485
5570
  class UpdateAssistantRequest {
5486
5571
  static fromProto(proto) {
5487
5572
  let m = new UpdateAssistantRequest();
@@ -5831,12 +5916,15 @@ class ValidatePromptModulesResponse {
5831
5916
  return toReturn;
5832
5917
  }
5833
5918
  }
5834
- class ValidatePromptModulesResponseValidationResult {
5919
+ class ValidationResult {
5835
5920
  static fromProto(proto) {
5836
- let m = new ValidatePromptModulesResponseValidationResult();
5921
+ let m = new ValidationResult();
5837
5922
  m = Object.assign(m, proto);
5838
- if (proto.namespace) {
5839
- m.namespace = Namespace.fromProto(proto.namespace);
5923
+ if (proto.failureAction) {
5924
+ m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
5925
+ }
5926
+ if (proto.violations) {
5927
+ m.violations = proto.violations.map(ValidationViolation.fromProto);
5840
5928
  }
5841
5929
  return m;
5842
5930
  }
@@ -5848,17 +5936,11 @@ class ValidatePromptModulesResponseValidationResult {
5848
5936
  }
5849
5937
  toApiJson() {
5850
5938
  const toReturn = {};
5851
- if (typeof this.id !== 'undefined') {
5852
- toReturn['id'] = this.id;
5853
- }
5854
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
5855
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
5856
- }
5857
- if (typeof this.isValid !== 'undefined') {
5858
- toReturn['isValid'] = this.isValid;
5939
+ if (typeof this.failureAction !== 'undefined') {
5940
+ toReturn['failureAction'] = this.failureAction;
5859
5941
  }
5860
- if (typeof this.errorMessage !== 'undefined') {
5861
- toReturn['errorMessage'] = this.errorMessage;
5942
+ if (typeof this.violations !== 'undefined' && this.violations !== null) {
5943
+ toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
5862
5944
  }
5863
5945
  return toReturn;
5864
5946
  }
@@ -5895,15 +5977,12 @@ class ValidatePromptModuleVersionsResponseValidationResult {
5895
5977
  return toReturn;
5896
5978
  }
5897
5979
  }
5898
- class ValidationResult {
5980
+ class ValidatePromptModulesResponseValidationResult {
5899
5981
  static fromProto(proto) {
5900
- let m = new ValidationResult();
5982
+ let m = new ValidatePromptModulesResponseValidationResult();
5901
5983
  m = Object.assign(m, proto);
5902
- if (proto.failureAction) {
5903
- m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
5904
- }
5905
- if (proto.violations) {
5906
- m.violations = proto.violations.map(ValidationViolation.fromProto);
5984
+ if (proto.namespace) {
5985
+ m.namespace = Namespace.fromProto(proto.namespace);
5907
5986
  }
5908
5987
  return m;
5909
5988
  }
@@ -5915,11 +5994,17 @@ class ValidationResult {
5915
5994
  }
5916
5995
  toApiJson() {
5917
5996
  const toReturn = {};
5918
- if (typeof this.failureAction !== 'undefined') {
5919
- toReturn['failureAction'] = this.failureAction;
5997
+ if (typeof this.id !== 'undefined') {
5998
+ toReturn['id'] = this.id;
5920
5999
  }
5921
- if (typeof this.violations !== 'undefined' && this.violations !== null) {
5922
- toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
6000
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
6001
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
6002
+ }
6003
+ if (typeof this.isValid !== 'undefined') {
6004
+ toReturn['isValid'] = this.isValid;
6005
+ }
6006
+ if (typeof this.errorMessage !== 'undefined') {
6007
+ toReturn['errorMessage'] = this.errorMessage;
5923
6008
  }
5924
6009
  return toReturn;
5925
6010
  }
@@ -6460,5 +6545,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6460
6545
  * Generated bundle index. Do not edit.
6461
6546
  */
6462
6547
 
6463
- 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, 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 };
6548
+ 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, 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 };
6464
6549
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map