@vendasta/ai-assistants 0.67.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
  }
@@ -3088,6 +3094,9 @@ class TestResult {
3088
3094
  if (typeof this.llmOptions !== 'undefined' && this.llmOptions !== null) {
3089
3095
  toReturn['llmOptions'] = 'toApiJson' in this.llmOptions ? this.llmOptions.toApiJson() : this.llmOptions;
3090
3096
  }
3097
+ if (typeof this.latency !== 'undefined') {
3098
+ toReturn['latency'] = this.latency;
3099
+ }
3091
3100
  return toReturn;
3092
3101
  }
3093
3102
  }
@@ -3746,27 +3755,15 @@ class ExecuteFunctionResponse {
3746
3755
  return toReturn;
3747
3756
  }
3748
3757
  }
3749
- class ListGoalsRequestFilters {
3758
+ class ListAssistantRequestFilters {
3750
3759
  static fromProto(proto) {
3751
- let m = new ListGoalsRequestFilters();
3760
+ let m = new ListAssistantRequestFilters();
3752
3761
  m = Object.assign(m, proto);
3753
3762
  if (proto.namespace) {
3754
3763
  m.namespace = Namespace.fromProto(proto.namespace);
3755
3764
  }
3756
3765
  if (proto.type) {
3757
- m.type = enumStringToValue(GoalType, proto.type);
3758
- }
3759
- if (proto.supportedChannels) {
3760
- m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3761
- }
3762
- if (proto.namespaces) {
3763
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3764
- }
3765
- if (proto.constraintFilters) {
3766
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3767
- }
3768
- if (proto.sortOptions) {
3769
- m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
3766
+ m.type = enumStringToValue(AssistantType, proto.type);
3770
3767
  }
3771
3768
  return m;
3772
3769
  }
@@ -3784,36 +3781,18 @@ class ListGoalsRequestFilters {
3784
3781
  if (typeof this.type !== 'undefined') {
3785
3782
  toReturn['type'] = this.type;
3786
3783
  }
3787
- if (typeof this.supportedChannels !== 'undefined') {
3788
- toReturn['supportedChannels'] = this.supportedChannels;
3789
- }
3790
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3791
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3792
- }
3793
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3794
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3795
- }
3796
- if (typeof this.searchTerm !== 'undefined') {
3797
- toReturn['searchTerm'] = this.searchTerm;
3798
- }
3799
- if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
3800
- toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
3801
- }
3802
- if (typeof this.omitOverrides !== 'undefined') {
3803
- toReturn['omitOverrides'] = this.omitOverrides;
3804
- }
3805
3784
  return toReturn;
3806
3785
  }
3807
3786
  }
3808
- class ListAssistantRequestFilters {
3787
+ class ListAvailableModelsRequestFilters {
3809
3788
  static fromProto(proto) {
3810
- let m = new ListAssistantRequestFilters();
3789
+ let m = new ListAvailableModelsRequestFilters();
3811
3790
  m = Object.assign(m, proto);
3812
- if (proto.namespace) {
3813
- m.namespace = Namespace.fromProto(proto.namespace);
3791
+ if (proto.vendor) {
3792
+ m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3814
3793
  }
3815
3794
  if (proto.type) {
3816
- m.type = enumStringToValue(AssistantType, proto.type);
3795
+ m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3817
3796
  }
3818
3797
  return m;
3819
3798
  }
@@ -3825,8 +3804,8 @@ class ListAssistantRequestFilters {
3825
3804
  }
3826
3805
  toApiJson() {
3827
3806
  const toReturn = {};
3828
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3829
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3807
+ if (typeof this.vendor !== 'undefined') {
3808
+ toReturn['vendor'] = this.vendor;
3830
3809
  }
3831
3810
  if (typeof this.type !== 'undefined') {
3832
3811
  toReturn['type'] = this.type;
@@ -3834,19 +3813,13 @@ class ListAssistantRequestFilters {
3834
3813
  return toReturn;
3835
3814
  }
3836
3815
  }
3837
- class ListFunctionRequestFilters {
3816
+ class ListPromptModuleRequestFilters {
3838
3817
  static fromProto(proto) {
3839
- let m = new ListFunctionRequestFilters();
3818
+ let m = new ListPromptModuleRequestFilters();
3840
3819
  m = Object.assign(m, proto);
3841
3820
  if (proto.namespace) {
3842
3821
  m.namespace = Namespace.fromProto(proto.namespace);
3843
3822
  }
3844
- if (proto.namespaces) {
3845
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3846
- }
3847
- if (proto.constraintFilters) {
3848
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3849
- }
3850
3823
  return m;
3851
3824
  }
3852
3825
  constructor(kwargs) {
@@ -3860,27 +3833,30 @@ class ListFunctionRequestFilters {
3860
3833
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3861
3834
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3862
3835
  }
3863
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3864
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3865
- }
3866
- if (typeof this.mcpId !== 'undefined') {
3867
- toReturn['mcpId'] = this.mcpId;
3868
- }
3869
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3870
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3871
- }
3872
3836
  return toReturn;
3873
3837
  }
3874
3838
  }
3875
- class ListAvailableModelsRequestFilters {
3839
+ class ListGoalsRequestFilters {
3876
3840
  static fromProto(proto) {
3877
- let m = new ListAvailableModelsRequestFilters();
3841
+ let m = new ListGoalsRequestFilters();
3878
3842
  m = Object.assign(m, proto);
3879
- if (proto.vendor) {
3880
- m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3843
+ if (proto.namespace) {
3844
+ m.namespace = Namespace.fromProto(proto.namespace);
3881
3845
  }
3882
3846
  if (proto.type) {
3883
- 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);
3884
3860
  }
3885
3861
  return m;
3886
3862
  }
@@ -3892,21 +3868,45 @@ class ListAvailableModelsRequestFilters {
3892
3868
  }
3893
3869
  toApiJson() {
3894
3870
  const toReturn = {};
3895
- if (typeof this.vendor !== 'undefined') {
3896
- 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;
3897
3873
  }
3898
3874
  if (typeof this.type !== 'undefined') {
3899
3875
  toReturn['type'] = this.type;
3900
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
+ }
3901
3895
  return toReturn;
3902
3896
  }
3903
3897
  }
3904
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
3898
+ class ListFunctionRequestFilters {
3905
3899
  static fromProto(proto) {
3906
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3900
+ let m = new ListFunctionRequestFilters();
3907
3901
  m = Object.assign(m, proto);
3908
- if (proto.type) {
3909
- 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);
3910
3910
  }
3911
3911
  return m;
3912
3912
  }
@@ -3918,19 +3918,31 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3918
3918
  }
3919
3919
  toApiJson() {
3920
3920
  const toReturn = {};
3921
- if (typeof this.type !== 'undefined') {
3922
- 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;
3923
3932
  }
3924
3933
  return toReturn;
3925
3934
  }
3926
3935
  }
3927
- class ListPromptModuleRequestFilters {
3936
+ class ListConnectionsRequestFilters {
3928
3937
  static fromProto(proto) {
3929
- let m = new ListPromptModuleRequestFilters();
3938
+ let m = new ListConnectionsRequestFilters();
3930
3939
  m = Object.assign(m, proto);
3931
3940
  if (proto.namespace) {
3932
3941
  m.namespace = Namespace.fromProto(proto.namespace);
3933
3942
  }
3943
+ if (proto.assistantType) {
3944
+ m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3945
+ }
3934
3946
  return m;
3935
3947
  }
3936
3948
  constructor(kwargs) {
@@ -3944,18 +3956,18 @@ class ListPromptModuleRequestFilters {
3944
3956
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3945
3957
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3946
3958
  }
3959
+ if (typeof this.assistantType !== 'undefined') {
3960
+ toReturn['assistantType'] = this.assistantType;
3961
+ }
3947
3962
  return toReturn;
3948
3963
  }
3949
3964
  }
3950
- class ListConnectionsRequestFilters {
3965
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3951
3966
  static fromProto(proto) {
3952
- let m = new ListConnectionsRequestFilters();
3967
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3953
3968
  m = Object.assign(m, proto);
3954
- if (proto.namespace) {
3955
- m.namespace = Namespace.fromProto(proto.namespace);
3956
- }
3957
- if (proto.assistantType) {
3958
- m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3969
+ if (proto.type) {
3970
+ m.type = enumStringToValue(AssistantType, proto.type);
3959
3971
  }
3960
3972
  return m;
3961
3973
  }
@@ -3967,11 +3979,8 @@ class ListConnectionsRequestFilters {
3967
3979
  }
3968
3980
  toApiJson() {
3969
3981
  const toReturn = {};
3970
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3971
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3972
- }
3973
- if (typeof this.assistantType !== 'undefined') {
3974
- toReturn['assistantType'] = this.assistantType;
3982
+ if (typeof this.type !== 'undefined') {
3983
+ toReturn['type'] = this.type;
3975
3984
  }
3976
3985
  return toReturn;
3977
3986
  }
@@ -4045,6 +4054,9 @@ class GenerateChatAnswerResponse {
4045
4054
  if (proto.validationResult) {
4046
4055
  m.validationResult = ValidationResult.fromProto(proto.validationResult);
4047
4056
  }
4057
+ if (proto.toolCalls) {
4058
+ m.toolCalls = proto.toolCalls.map(ToolCall.fromProto);
4059
+ }
4048
4060
  return m;
4049
4061
  }
4050
4062
  constructor(kwargs) {
@@ -4067,6 +4079,9 @@ class GenerateChatAnswerResponse {
4067
4079
  if (typeof this.validationResult !== 'undefined' && this.validationResult !== null) {
4068
4080
  toReturn['validationResult'] = 'toApiJson' in this.validationResult ? this.validationResult.toApiJson() : this.validationResult;
4069
4081
  }
4082
+ if (typeof this.toolCalls !== 'undefined' && this.toolCalls !== null) {
4083
+ toReturn['toolCalls'] = 'toApiJson' in this.toolCalls ? this.toolCalls.toApiJson() : this.toolCalls;
4084
+ }
4070
4085
  return toReturn;
4071
4086
  }
4072
4087
  }
@@ -5278,13 +5293,10 @@ class ListTemplateVariablesResponse {
5278
5293
  return toReturn;
5279
5294
  }
5280
5295
  }
5281
- class GenerateChatAnswerRequestOptions {
5296
+ class CreateAssistantRequestOptions {
5282
5297
  static fromProto(proto) {
5283
- let m = new GenerateChatAnswerRequestOptions();
5298
+ let m = new CreateAssistantRequestOptions();
5284
5299
  m = Object.assign(m, proto);
5285
- if (proto.maxTokens) {
5286
- m.maxTokens = parseInt(proto.maxTokens, 10);
5287
- }
5288
5300
  return m;
5289
5301
  }
5290
5302
  constructor(kwargs) {
@@ -5295,21 +5307,15 @@ class GenerateChatAnswerRequestOptions {
5295
5307
  }
5296
5308
  toApiJson() {
5297
5309
  const toReturn = {};
5298
- if (typeof this.includeAllCitations !== 'undefined') {
5299
- toReturn['includeAllCitations'] = this.includeAllCitations;
5300
- }
5301
- if (typeof this.enableAsyncFunctions !== 'undefined') {
5302
- toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
5303
- }
5304
- if (typeof this.maxTokens !== 'undefined') {
5305
- toReturn['maxTokens'] = this.maxTokens;
5310
+ if (typeof this.applyDefaults !== 'undefined') {
5311
+ toReturn['applyDefaults'] = this.applyDefaults;
5306
5312
  }
5307
5313
  return toReturn;
5308
5314
  }
5309
5315
  }
5310
- class GetMultiAssistantRequestOptions {
5316
+ class UpsertAssistantRequestOptions {
5311
5317
  static fromProto(proto) {
5312
- let m = new GetMultiAssistantRequestOptions();
5318
+ let m = new UpsertAssistantRequestOptions();
5313
5319
  m = Object.assign(m, proto);
5314
5320
  return m;
5315
5321
  }
@@ -5321,15 +5327,15 @@ class GetMultiAssistantRequestOptions {
5321
5327
  }
5322
5328
  toApiJson() {
5323
5329
  const toReturn = {};
5324
- if (typeof this.skipGoalsHydration !== 'undefined') {
5325
- toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5330
+ if (typeof this.applyDefaults !== 'undefined') {
5331
+ toReturn['applyDefaults'] = this.applyDefaults;
5326
5332
  }
5327
5333
  return toReturn;
5328
5334
  }
5329
5335
  }
5330
- class UpsertAssistantRequestOptions {
5336
+ class CreatePromptModuleVersionRequestOptions {
5331
5337
  static fromProto(proto) {
5332
- let m = new UpsertAssistantRequestOptions();
5338
+ let m = new CreatePromptModuleVersionRequestOptions();
5333
5339
  m = Object.assign(m, proto);
5334
5340
  return m;
5335
5341
  }
@@ -5341,8 +5347,8 @@ class UpsertAssistantRequestOptions {
5341
5347
  }
5342
5348
  toApiJson() {
5343
5349
  const toReturn = {};
5344
- if (typeof this.applyDefaults !== 'undefined') {
5345
- toReturn['applyDefaults'] = this.applyDefaults;
5350
+ if (typeof this.shouldDeploy !== 'undefined') {
5351
+ toReturn['shouldDeploy'] = this.shouldDeploy;
5346
5352
  }
5347
5353
  return toReturn;
5348
5354
  }
@@ -5367,9 +5373,9 @@ class GetAssistantRequestOptions {
5367
5373
  return toReturn;
5368
5374
  }
5369
5375
  }
5370
- class CreateAssistantRequestOptions {
5376
+ class GetMultiAssistantRequestOptions {
5371
5377
  static fromProto(proto) {
5372
- let m = new CreateAssistantRequestOptions();
5378
+ let m = new GetMultiAssistantRequestOptions();
5373
5379
  m = Object.assign(m, proto);
5374
5380
  return m;
5375
5381
  }
@@ -5381,18 +5387,18 @@ class CreateAssistantRequestOptions {
5381
5387
  }
5382
5388
  toApiJson() {
5383
5389
  const toReturn = {};
5384
- if (typeof this.applyDefaults !== 'undefined') {
5385
- toReturn['applyDefaults'] = this.applyDefaults;
5390
+ if (typeof this.skipGoalsHydration !== 'undefined') {
5391
+ toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5386
5392
  }
5387
5393
  return toReturn;
5388
5394
  }
5389
5395
  }
5390
- class ExecuteFunctionRequestOptions {
5396
+ class GenerateChatAnswerRequestOptions {
5391
5397
  static fromProto(proto) {
5392
- let m = new ExecuteFunctionRequestOptions();
5398
+ let m = new GenerateChatAnswerRequestOptions();
5393
5399
  m = Object.assign(m, proto);
5394
- if (proto.contextInfo) {
5395
- m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5400
+ if (proto.maxTokens) {
5401
+ m.maxTokens = parseInt(proto.maxTokens, 10);
5396
5402
  }
5397
5403
  return m;
5398
5404
  }
@@ -5404,19 +5410,25 @@ class ExecuteFunctionRequestOptions {
5404
5410
  }
5405
5411
  toApiJson() {
5406
5412
  const toReturn = {};
5407
- if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5408
- toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5413
+ if (typeof this.includeAllCitations !== 'undefined') {
5414
+ toReturn['includeAllCitations'] = this.includeAllCitations;
5409
5415
  }
5410
- if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
5411
- 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;
5412
5421
  }
5413
5422
  return toReturn;
5414
5423
  }
5415
5424
  }
5416
- class CreatePromptModuleVersionRequestOptions {
5425
+ class ExecuteFunctionRequestOptions {
5417
5426
  static fromProto(proto) {
5418
- let m = new CreatePromptModuleVersionRequestOptions();
5427
+ let m = new ExecuteFunctionRequestOptions();
5419
5428
  m = Object.assign(m, proto);
5429
+ if (proto.contextInfo) {
5430
+ m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5431
+ }
5420
5432
  return m;
5421
5433
  }
5422
5434
  constructor(kwargs) {
@@ -5427,8 +5439,11 @@ class CreatePromptModuleVersionRequestOptions {
5427
5439
  }
5428
5440
  toApiJson() {
5429
5441
  const toReturn = {};
5430
- if (typeof this.shouldDeploy !== 'undefined') {
5431
- 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;
5432
5447
  }
5433
5448
  return toReturn;
5434
5449
  }
@@ -5517,6 +5532,41 @@ class ListGoalsRequestSortOptions {
5517
5532
  return toReturn;
5518
5533
  }
5519
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
+ }
5520
5570
  class UpdateAssistantRequest {
5521
5571
  static fromProto(proto) {
5522
5572
  let m = new UpdateAssistantRequest();
@@ -5866,12 +5916,15 @@ class ValidatePromptModulesResponse {
5866
5916
  return toReturn;
5867
5917
  }
5868
5918
  }
5869
- class ValidatePromptModulesResponseValidationResult {
5919
+ class ValidationResult {
5870
5920
  static fromProto(proto) {
5871
- let m = new ValidatePromptModulesResponseValidationResult();
5921
+ let m = new ValidationResult();
5872
5922
  m = Object.assign(m, proto);
5873
- if (proto.namespace) {
5874
- 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);
5875
5928
  }
5876
5929
  return m;
5877
5930
  }
@@ -5883,17 +5936,11 @@ class ValidatePromptModulesResponseValidationResult {
5883
5936
  }
5884
5937
  toApiJson() {
5885
5938
  const toReturn = {};
5886
- if (typeof this.id !== 'undefined') {
5887
- toReturn['id'] = this.id;
5888
- }
5889
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
5890
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
5891
- }
5892
- if (typeof this.isValid !== 'undefined') {
5893
- toReturn['isValid'] = this.isValid;
5939
+ if (typeof this.failureAction !== 'undefined') {
5940
+ toReturn['failureAction'] = this.failureAction;
5894
5941
  }
5895
- if (typeof this.errorMessage !== 'undefined') {
5896
- 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;
5897
5944
  }
5898
5945
  return toReturn;
5899
5946
  }
@@ -5930,15 +5977,12 @@ class ValidatePromptModuleVersionsResponseValidationResult {
5930
5977
  return toReturn;
5931
5978
  }
5932
5979
  }
5933
- class ValidationResult {
5980
+ class ValidatePromptModulesResponseValidationResult {
5934
5981
  static fromProto(proto) {
5935
- let m = new ValidationResult();
5982
+ let m = new ValidatePromptModulesResponseValidationResult();
5936
5983
  m = Object.assign(m, proto);
5937
- if (proto.failureAction) {
5938
- m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
5939
- }
5940
- if (proto.violations) {
5941
- m.violations = proto.violations.map(ValidationViolation.fromProto);
5984
+ if (proto.namespace) {
5985
+ m.namespace = Namespace.fromProto(proto.namespace);
5942
5986
  }
5943
5987
  return m;
5944
5988
  }
@@ -5950,11 +5994,17 @@ class ValidationResult {
5950
5994
  }
5951
5995
  toApiJson() {
5952
5996
  const toReturn = {};
5953
- if (typeof this.failureAction !== 'undefined') {
5954
- toReturn['failureAction'] = this.failureAction;
5997
+ if (typeof this.id !== 'undefined') {
5998
+ toReturn['id'] = this.id;
5955
5999
  }
5956
- if (typeof this.violations !== 'undefined' && this.violations !== null) {
5957
- 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;
5958
6008
  }
5959
6009
  return toReturn;
5960
6010
  }
@@ -6495,5 +6545,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6495
6545
  * Generated bundle index. Do not edit.
6496
6546
  */
6497
6547
 
6498
- export { Access, Action, AgentArchitecture, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionRequestOptions, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyImpersonationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsRequestSortOptions, ListGoalsRequestSortingOrder, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, RunTestsRequest, RunTestsResponse, Scope, SerializeFunctionRequest, SerializeFunctionResponse, SerializeGoalRequest, SerializeGoalResponse, SerializeMCPRequest, SerializeMCPResponse, SerializePromptModuleRequest, SerializePromptModuleResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SetConnectionAssistantRequest, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TemplateVariable, TestCase, TestLLMOptions, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidateFunctionsRequest, ValidateFunctionsResponse, ValidateFunctionsResponseValidationResult, ValidateGoalsRequest, ValidateGoalsResponse, ValidateGoalsResponseValidationResult, ValidateMCPsRequest, ValidateMCPsResponse, ValidateMCPsResponseValidationResult, ValidatePromptModuleRequest, ValidatePromptModuleResponse, ValidatePromptModuleVersionsRequest, ValidatePromptModuleVersionsResponse, ValidatePromptModuleVersionsResponseValidationResult, ValidatePromptModulesRequest, ValidatePromptModulesResponse, ValidatePromptModulesResponseValidationResult, ValidationFailureAction, ValidationResult, ValidationViolation, Validator, VendorModel };
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 };
6499
6549
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map