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