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