@vendasta/ai-assistants 0.69.0 → 0.70.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.
@@ -2654,6 +2654,41 @@ class ImageContent {
2654
2654
  return toReturn;
2655
2655
  }
2656
2656
  }
2657
+ class ToolCall {
2658
+ static fromProto(proto) {
2659
+ let m = new ToolCall();
2660
+ m = Object.assign(m, proto);
2661
+ if (proto.namespace) {
2662
+ m.namespace = Namespace.fromProto(proto.namespace);
2663
+ }
2664
+ return m;
2665
+ }
2666
+ constructor(kwargs) {
2667
+ if (!kwargs) {
2668
+ return;
2669
+ }
2670
+ Object.assign(this, kwargs);
2671
+ }
2672
+ toApiJson() {
2673
+ const toReturn = {};
2674
+ if (typeof this.toolName !== 'undefined') {
2675
+ toReturn['toolName'] = this.toolName;
2676
+ }
2677
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2678
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2679
+ }
2680
+ if (typeof this.arguments !== 'undefined') {
2681
+ toReturn['arguments'] = this.arguments;
2682
+ }
2683
+ if (typeof this.response !== 'undefined') {
2684
+ toReturn['response'] = this.response;
2685
+ }
2686
+ if (typeof this.noOp !== 'undefined') {
2687
+ toReturn['noOp'] = this.noOp;
2688
+ }
2689
+ return toReturn;
2690
+ }
2691
+ }
2657
2692
 
2658
2693
  function enumStringToValue$3(enumRef, value) {
2659
2694
  if (typeof value === 'number') {
@@ -2754,6 +2789,32 @@ class DeleteTestCasesRequest {
2754
2789
  return toReturn;
2755
2790
  }
2756
2791
  }
2792
+ class ExpectedToolCall {
2793
+ static fromProto(proto) {
2794
+ let m = new ExpectedToolCall();
2795
+ m = Object.assign(m, proto);
2796
+ return m;
2797
+ }
2798
+ constructor(kwargs) {
2799
+ if (!kwargs) {
2800
+ return;
2801
+ }
2802
+ Object.assign(this, kwargs);
2803
+ }
2804
+ toApiJson() {
2805
+ const toReturn = {};
2806
+ if (typeof this.name !== 'undefined') {
2807
+ toReturn['name'] = this.name;
2808
+ }
2809
+ if (typeof this.arguments !== 'undefined') {
2810
+ toReturn['arguments'] = this.arguments;
2811
+ }
2812
+ if (typeof this.response !== 'undefined') {
2813
+ toReturn['response'] = this.response;
2814
+ }
2815
+ return toReturn;
2816
+ }
2817
+ }
2757
2818
  class GetTestRunRequest {
2758
2819
  static fromProto(proto) {
2759
2820
  let m = new GetTestRunRequest();
@@ -3013,6 +3074,9 @@ class TestCase {
3013
3074
  if (proto.chatHistory) {
3014
3075
  m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
3015
3076
  }
3077
+ if (proto.expectedToolCalls) {
3078
+ m.expectedToolCalls = proto.expectedToolCalls.map(ExpectedToolCall.fromProto);
3079
+ }
3016
3080
  return m;
3017
3081
  }
3018
3082
  constructor(kwargs) {
@@ -3035,6 +3099,9 @@ class TestCase {
3035
3099
  if (typeof this.expectation !== 'undefined') {
3036
3100
  toReturn['expectation'] = this.expectation;
3037
3101
  }
3102
+ if (typeof this.expectedToolCalls !== 'undefined' && this.expectedToolCalls !== null) {
3103
+ toReturn['expectedToolCalls'] = 'toApiJson' in this.expectedToolCalls ? this.expectedToolCalls.toApiJson() : this.expectedToolCalls;
3104
+ }
3038
3105
  return toReturn;
3039
3106
  }
3040
3107
  }
@@ -3074,6 +3141,12 @@ class TestResult {
3074
3141
  if (proto.llmOptions) {
3075
3142
  m.llmOptions = TestLLMOptions.fromProto(proto.llmOptions);
3076
3143
  }
3144
+ if (proto.expectedToolCalls) {
3145
+ m.expectedToolCalls = proto.expectedToolCalls.map(ExpectedToolCall.fromProto);
3146
+ }
3147
+ if (proto.toolCalls) {
3148
+ m.toolCalls = proto.toolCalls.map(ToolCall.fromProto);
3149
+ }
3077
3150
  return m;
3078
3151
  }
3079
3152
  constructor(kwargs) {
@@ -3117,6 +3190,12 @@ class TestResult {
3117
3190
  if (typeof this.latency !== 'undefined') {
3118
3191
  toReturn['latency'] = this.latency;
3119
3192
  }
3193
+ if (typeof this.expectedToolCalls !== 'undefined' && this.expectedToolCalls !== null) {
3194
+ toReturn['expectedToolCalls'] = 'toApiJson' in this.expectedToolCalls ? this.expectedToolCalls.toApiJson() : this.expectedToolCalls;
3195
+ }
3196
+ if (typeof this.toolCalls !== 'undefined' && this.toolCalls !== null) {
3197
+ toReturn['toolCalls'] = 'toApiJson' in this.toolCalls ? this.toolCalls.toApiJson() : this.toolCalls;
3198
+ }
3120
3199
  return toReturn;
3121
3200
  }
3122
3201
  }
@@ -3775,15 +3854,27 @@ class ExecuteFunctionResponse {
3775
3854
  return toReturn;
3776
3855
  }
3777
3856
  }
3778
- class ListAssistantRequestFilters {
3857
+ class ListGoalsRequestFilters {
3779
3858
  static fromProto(proto) {
3780
- let m = new ListAssistantRequestFilters();
3859
+ let m = new ListGoalsRequestFilters();
3781
3860
  m = Object.assign(m, proto);
3782
3861
  if (proto.namespace) {
3783
3862
  m.namespace = Namespace.fromProto(proto.namespace);
3784
3863
  }
3785
3864
  if (proto.type) {
3786
- m.type = enumStringToValue(AssistantType, proto.type);
3865
+ m.type = enumStringToValue(GoalType, proto.type);
3866
+ }
3867
+ if (proto.supportedChannels) {
3868
+ m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3869
+ }
3870
+ if (proto.namespaces) {
3871
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3872
+ }
3873
+ if (proto.constraintFilters) {
3874
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3875
+ }
3876
+ if (proto.sortOptions) {
3877
+ m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
3787
3878
  }
3788
3879
  return m;
3789
3880
  }
@@ -3801,18 +3892,36 @@ class ListAssistantRequestFilters {
3801
3892
  if (typeof this.type !== 'undefined') {
3802
3893
  toReturn['type'] = this.type;
3803
3894
  }
3895
+ if (typeof this.supportedChannels !== 'undefined') {
3896
+ toReturn['supportedChannels'] = this.supportedChannels;
3897
+ }
3898
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3899
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3900
+ }
3901
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3902
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3903
+ }
3904
+ if (typeof this.searchTerm !== 'undefined') {
3905
+ toReturn['searchTerm'] = this.searchTerm;
3906
+ }
3907
+ if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
3908
+ toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
3909
+ }
3910
+ if (typeof this.omitOverrides !== 'undefined') {
3911
+ toReturn['omitOverrides'] = this.omitOverrides;
3912
+ }
3804
3913
  return toReturn;
3805
3914
  }
3806
3915
  }
3807
- class ListAvailableModelsRequestFilters {
3916
+ class ListAssistantRequestFilters {
3808
3917
  static fromProto(proto) {
3809
- let m = new ListAvailableModelsRequestFilters();
3918
+ let m = new ListAssistantRequestFilters();
3810
3919
  m = Object.assign(m, proto);
3811
- if (proto.vendor) {
3812
- m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3920
+ if (proto.namespace) {
3921
+ m.namespace = Namespace.fromProto(proto.namespace);
3813
3922
  }
3814
3923
  if (proto.type) {
3815
- m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3924
+ m.type = enumStringToValue(AssistantType, proto.type);
3816
3925
  }
3817
3926
  return m;
3818
3927
  }
@@ -3824,8 +3933,8 @@ class ListAvailableModelsRequestFilters {
3824
3933
  }
3825
3934
  toApiJson() {
3826
3935
  const toReturn = {};
3827
- if (typeof this.vendor !== 'undefined') {
3828
- toReturn['vendor'] = this.vendor;
3936
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3937
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3829
3938
  }
3830
3939
  if (typeof this.type !== 'undefined') {
3831
3940
  toReturn['type'] = this.type;
@@ -3833,13 +3942,19 @@ class ListAvailableModelsRequestFilters {
3833
3942
  return toReturn;
3834
3943
  }
3835
3944
  }
3836
- class ListPromptModuleRequestFilters {
3945
+ class ListFunctionRequestFilters {
3837
3946
  static fromProto(proto) {
3838
- let m = new ListPromptModuleRequestFilters();
3947
+ let m = new ListFunctionRequestFilters();
3839
3948
  m = Object.assign(m, proto);
3840
3949
  if (proto.namespace) {
3841
3950
  m.namespace = Namespace.fromProto(proto.namespace);
3842
3951
  }
3952
+ if (proto.namespaces) {
3953
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3954
+ }
3955
+ if (proto.constraintFilters) {
3956
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3957
+ }
3843
3958
  return m;
3844
3959
  }
3845
3960
  constructor(kwargs) {
@@ -3853,30 +3968,27 @@ class ListPromptModuleRequestFilters {
3853
3968
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3854
3969
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3855
3970
  }
3971
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3972
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3973
+ }
3974
+ if (typeof this.mcpId !== 'undefined') {
3975
+ toReturn['mcpId'] = this.mcpId;
3976
+ }
3977
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3978
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3979
+ }
3856
3980
  return toReturn;
3857
3981
  }
3858
3982
  }
3859
- class ListGoalsRequestFilters {
3983
+ class ListAvailableModelsRequestFilters {
3860
3984
  static fromProto(proto) {
3861
- let m = new ListGoalsRequestFilters();
3985
+ let m = new ListAvailableModelsRequestFilters();
3862
3986
  m = Object.assign(m, proto);
3863
- if (proto.namespace) {
3864
- m.namespace = Namespace.fromProto(proto.namespace);
3987
+ if (proto.vendor) {
3988
+ m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3865
3989
  }
3866
3990
  if (proto.type) {
3867
- m.type = enumStringToValue(GoalType, proto.type);
3868
- }
3869
- if (proto.supportedChannels) {
3870
- m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3871
- }
3872
- if (proto.namespaces) {
3873
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3874
- }
3875
- if (proto.constraintFilters) {
3876
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3877
- }
3878
- if (proto.sortOptions) {
3879
- m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
3991
+ m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3880
3992
  }
3881
3993
  return m;
3882
3994
  }
@@ -3888,45 +4000,21 @@ class ListGoalsRequestFilters {
3888
4000
  }
3889
4001
  toApiJson() {
3890
4002
  const toReturn = {};
3891
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3892
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
4003
+ if (typeof this.vendor !== 'undefined') {
4004
+ toReturn['vendor'] = this.vendor;
3893
4005
  }
3894
4006
  if (typeof this.type !== 'undefined') {
3895
4007
  toReturn['type'] = this.type;
3896
4008
  }
3897
- if (typeof this.supportedChannels !== 'undefined') {
3898
- toReturn['supportedChannels'] = this.supportedChannels;
3899
- }
3900
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3901
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3902
- }
3903
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3904
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3905
- }
3906
- if (typeof this.searchTerm !== 'undefined') {
3907
- toReturn['searchTerm'] = this.searchTerm;
3908
- }
3909
- if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
3910
- toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
3911
- }
3912
- if (typeof this.omitOverrides !== 'undefined') {
3913
- toReturn['omitOverrides'] = this.omitOverrides;
3914
- }
3915
4009
  return toReturn;
3916
4010
  }
3917
4011
  }
3918
- class ListFunctionRequestFilters {
4012
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3919
4013
  static fromProto(proto) {
3920
- let m = new ListFunctionRequestFilters();
4014
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3921
4015
  m = Object.assign(m, proto);
3922
- if (proto.namespace) {
3923
- m.namespace = Namespace.fromProto(proto.namespace);
3924
- }
3925
- if (proto.namespaces) {
3926
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3927
- }
3928
- if (proto.constraintFilters) {
3929
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
4016
+ if (proto.type) {
4017
+ m.type = enumStringToValue(AssistantType, proto.type);
3930
4018
  }
3931
4019
  return m;
3932
4020
  }
@@ -3938,31 +4026,19 @@ class ListFunctionRequestFilters {
3938
4026
  }
3939
4027
  toApiJson() {
3940
4028
  const toReturn = {};
3941
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3942
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3943
- }
3944
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3945
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3946
- }
3947
- if (typeof this.mcpId !== 'undefined') {
3948
- toReturn['mcpId'] = this.mcpId;
3949
- }
3950
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3951
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
4029
+ if (typeof this.type !== 'undefined') {
4030
+ toReturn['type'] = this.type;
3952
4031
  }
3953
4032
  return toReturn;
3954
4033
  }
3955
4034
  }
3956
- class ListConnectionsRequestFilters {
4035
+ class ListPromptModuleRequestFilters {
3957
4036
  static fromProto(proto) {
3958
- let m = new ListConnectionsRequestFilters();
4037
+ let m = new ListPromptModuleRequestFilters();
3959
4038
  m = Object.assign(m, proto);
3960
4039
  if (proto.namespace) {
3961
4040
  m.namespace = Namespace.fromProto(proto.namespace);
3962
4041
  }
3963
- if (proto.assistantType) {
3964
- m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3965
- }
3966
4042
  return m;
3967
4043
  }
3968
4044
  constructor(kwargs) {
@@ -3976,18 +4052,18 @@ class ListConnectionsRequestFilters {
3976
4052
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3977
4053
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3978
4054
  }
3979
- if (typeof this.assistantType !== 'undefined') {
3980
- toReturn['assistantType'] = this.assistantType;
3981
- }
3982
4055
  return toReturn;
3983
4056
  }
3984
4057
  }
3985
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
4058
+ class ListConnectionsRequestFilters {
3986
4059
  static fromProto(proto) {
3987
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
4060
+ let m = new ListConnectionsRequestFilters();
3988
4061
  m = Object.assign(m, proto);
3989
- if (proto.type) {
3990
- m.type = enumStringToValue(AssistantType, proto.type);
4062
+ if (proto.namespace) {
4063
+ m.namespace = Namespace.fromProto(proto.namespace);
4064
+ }
4065
+ if (proto.assistantType) {
4066
+ m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3991
4067
  }
3992
4068
  return m;
3993
4069
  }
@@ -3999,8 +4075,11 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3999
4075
  }
4000
4076
  toApiJson() {
4001
4077
  const toReturn = {};
4002
- if (typeof this.type !== 'undefined') {
4003
- toReturn['type'] = this.type;
4078
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
4079
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
4080
+ }
4081
+ if (typeof this.assistantType !== 'undefined') {
4082
+ toReturn['assistantType'] = this.assistantType;
4004
4083
  }
4005
4084
  return toReturn;
4006
4085
  }
@@ -5313,10 +5392,13 @@ class ListTemplateVariablesResponse {
5313
5392
  return toReturn;
5314
5393
  }
5315
5394
  }
5316
- class CreateAssistantRequestOptions {
5395
+ class GenerateChatAnswerRequestOptions {
5317
5396
  static fromProto(proto) {
5318
- let m = new CreateAssistantRequestOptions();
5397
+ let m = new GenerateChatAnswerRequestOptions();
5319
5398
  m = Object.assign(m, proto);
5399
+ if (proto.maxTokens) {
5400
+ m.maxTokens = parseInt(proto.maxTokens, 10);
5401
+ }
5320
5402
  return m;
5321
5403
  }
5322
5404
  constructor(kwargs) {
@@ -5327,15 +5409,21 @@ class CreateAssistantRequestOptions {
5327
5409
  }
5328
5410
  toApiJson() {
5329
5411
  const toReturn = {};
5330
- if (typeof this.applyDefaults !== 'undefined') {
5331
- toReturn['applyDefaults'] = this.applyDefaults;
5412
+ if (typeof this.includeAllCitations !== 'undefined') {
5413
+ toReturn['includeAllCitations'] = this.includeAllCitations;
5414
+ }
5415
+ if (typeof this.enableAsyncFunctions !== 'undefined') {
5416
+ toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
5417
+ }
5418
+ if (typeof this.maxTokens !== 'undefined') {
5419
+ toReturn['maxTokens'] = this.maxTokens;
5332
5420
  }
5333
5421
  return toReturn;
5334
5422
  }
5335
5423
  }
5336
- class UpsertAssistantRequestOptions {
5424
+ class GetMultiAssistantRequestOptions {
5337
5425
  static fromProto(proto) {
5338
- let m = new UpsertAssistantRequestOptions();
5426
+ let m = new GetMultiAssistantRequestOptions();
5339
5427
  m = Object.assign(m, proto);
5340
5428
  return m;
5341
5429
  }
@@ -5347,15 +5435,15 @@ class UpsertAssistantRequestOptions {
5347
5435
  }
5348
5436
  toApiJson() {
5349
5437
  const toReturn = {};
5350
- if (typeof this.applyDefaults !== 'undefined') {
5351
- toReturn['applyDefaults'] = this.applyDefaults;
5438
+ if (typeof this.skipGoalsHydration !== 'undefined') {
5439
+ toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5352
5440
  }
5353
5441
  return toReturn;
5354
5442
  }
5355
5443
  }
5356
- class CreatePromptModuleVersionRequestOptions {
5444
+ class UpsertAssistantRequestOptions {
5357
5445
  static fromProto(proto) {
5358
- let m = new CreatePromptModuleVersionRequestOptions();
5446
+ let m = new UpsertAssistantRequestOptions();
5359
5447
  m = Object.assign(m, proto);
5360
5448
  return m;
5361
5449
  }
@@ -5367,8 +5455,8 @@ class CreatePromptModuleVersionRequestOptions {
5367
5455
  }
5368
5456
  toApiJson() {
5369
5457
  const toReturn = {};
5370
- if (typeof this.shouldDeploy !== 'undefined') {
5371
- toReturn['shouldDeploy'] = this.shouldDeploy;
5458
+ if (typeof this.applyDefaults !== 'undefined') {
5459
+ toReturn['applyDefaults'] = this.applyDefaults;
5372
5460
  }
5373
5461
  return toReturn;
5374
5462
  }
@@ -5393,9 +5481,9 @@ class GetAssistantRequestOptions {
5393
5481
  return toReturn;
5394
5482
  }
5395
5483
  }
5396
- class GetMultiAssistantRequestOptions {
5484
+ class CreateAssistantRequestOptions {
5397
5485
  static fromProto(proto) {
5398
- let m = new GetMultiAssistantRequestOptions();
5486
+ let m = new CreateAssistantRequestOptions();
5399
5487
  m = Object.assign(m, proto);
5400
5488
  return m;
5401
5489
  }
@@ -5407,18 +5495,18 @@ class GetMultiAssistantRequestOptions {
5407
5495
  }
5408
5496
  toApiJson() {
5409
5497
  const toReturn = {};
5410
- if (typeof this.skipGoalsHydration !== 'undefined') {
5411
- toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5498
+ if (typeof this.applyDefaults !== 'undefined') {
5499
+ toReturn['applyDefaults'] = this.applyDefaults;
5412
5500
  }
5413
5501
  return toReturn;
5414
5502
  }
5415
5503
  }
5416
- class GenerateChatAnswerRequestOptions {
5504
+ class ExecuteFunctionRequestOptions {
5417
5505
  static fromProto(proto) {
5418
- let m = new GenerateChatAnswerRequestOptions();
5506
+ let m = new ExecuteFunctionRequestOptions();
5419
5507
  m = Object.assign(m, proto);
5420
- if (proto.maxTokens) {
5421
- m.maxTokens = parseInt(proto.maxTokens, 10);
5508
+ if (proto.contextInfo) {
5509
+ m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5422
5510
  }
5423
5511
  return m;
5424
5512
  }
@@ -5430,25 +5518,19 @@ class GenerateChatAnswerRequestOptions {
5430
5518
  }
5431
5519
  toApiJson() {
5432
5520
  const toReturn = {};
5433
- if (typeof this.includeAllCitations !== 'undefined') {
5434
- toReturn['includeAllCitations'] = this.includeAllCitations;
5435
- }
5436
- if (typeof this.enableAsyncFunctions !== 'undefined') {
5437
- toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
5521
+ if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5522
+ toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5438
5523
  }
5439
- if (typeof this.maxTokens !== 'undefined') {
5440
- toReturn['maxTokens'] = this.maxTokens;
5524
+ if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
5525
+ toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
5441
5526
  }
5442
5527
  return toReturn;
5443
5528
  }
5444
5529
  }
5445
- class ExecuteFunctionRequestOptions {
5530
+ class CreatePromptModuleVersionRequestOptions {
5446
5531
  static fromProto(proto) {
5447
- let m = new ExecuteFunctionRequestOptions();
5532
+ let m = new CreatePromptModuleVersionRequestOptions();
5448
5533
  m = Object.assign(m, proto);
5449
- if (proto.contextInfo) {
5450
- m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5451
- }
5452
5534
  return m;
5453
5535
  }
5454
5536
  constructor(kwargs) {
@@ -5459,11 +5541,8 @@ class ExecuteFunctionRequestOptions {
5459
5541
  }
5460
5542
  toApiJson() {
5461
5543
  const toReturn = {};
5462
- if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5463
- toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5464
- }
5465
- if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
5466
- toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
5544
+ if (typeof this.shouldDeploy !== 'undefined') {
5545
+ toReturn['shouldDeploy'] = this.shouldDeploy;
5467
5546
  }
5468
5547
  return toReturn;
5469
5548
  }
@@ -5552,41 +5631,6 @@ class ListGoalsRequestSortOptions {
5552
5631
  return toReturn;
5553
5632
  }
5554
5633
  }
5555
- class ToolCall {
5556
- static fromProto(proto) {
5557
- let m = new ToolCall();
5558
- m = Object.assign(m, proto);
5559
- if (proto.namespace) {
5560
- m.namespace = Namespace.fromProto(proto.namespace);
5561
- }
5562
- return m;
5563
- }
5564
- constructor(kwargs) {
5565
- if (!kwargs) {
5566
- return;
5567
- }
5568
- Object.assign(this, kwargs);
5569
- }
5570
- toApiJson() {
5571
- const toReturn = {};
5572
- if (typeof this.toolName !== 'undefined') {
5573
- toReturn['toolName'] = this.toolName;
5574
- }
5575
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
5576
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
5577
- }
5578
- if (typeof this.arguments !== 'undefined') {
5579
- toReturn['arguments'] = this.arguments;
5580
- }
5581
- if (typeof this.response !== 'undefined') {
5582
- toReturn['response'] = this.response;
5583
- }
5584
- if (typeof this.noOp !== 'undefined') {
5585
- toReturn['noOp'] = this.noOp;
5586
- }
5587
- return toReturn;
5588
- }
5589
- }
5590
5634
  class UpdateAssistantRequest {
5591
5635
  static fromProto(proto) {
5592
5636
  let m = new UpdateAssistantRequest();
@@ -5936,15 +5980,12 @@ class ValidatePromptModulesResponse {
5936
5980
  return toReturn;
5937
5981
  }
5938
5982
  }
5939
- class ValidationResult {
5983
+ class ValidatePromptModulesResponseValidationResult {
5940
5984
  static fromProto(proto) {
5941
- let m = new ValidationResult();
5985
+ let m = new ValidatePromptModulesResponseValidationResult();
5942
5986
  m = Object.assign(m, proto);
5943
- if (proto.failureAction) {
5944
- m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
5945
- }
5946
- if (proto.violations) {
5947
- m.violations = proto.violations.map(ValidationViolation.fromProto);
5987
+ if (proto.namespace) {
5988
+ m.namespace = Namespace.fromProto(proto.namespace);
5948
5989
  }
5949
5990
  return m;
5950
5991
  }
@@ -5956,11 +5997,17 @@ class ValidationResult {
5956
5997
  }
5957
5998
  toApiJson() {
5958
5999
  const toReturn = {};
5959
- if (typeof this.failureAction !== 'undefined') {
5960
- toReturn['failureAction'] = this.failureAction;
6000
+ if (typeof this.id !== 'undefined') {
6001
+ toReturn['id'] = this.id;
5961
6002
  }
5962
- if (typeof this.violations !== 'undefined' && this.violations !== null) {
5963
- toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
6003
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
6004
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
6005
+ }
6006
+ if (typeof this.isValid !== 'undefined') {
6007
+ toReturn['isValid'] = this.isValid;
6008
+ }
6009
+ if (typeof this.errorMessage !== 'undefined') {
6010
+ toReturn['errorMessage'] = this.errorMessage;
5964
6011
  }
5965
6012
  return toReturn;
5966
6013
  }
@@ -5997,12 +6044,15 @@ class ValidatePromptModuleVersionsResponseValidationResult {
5997
6044
  return toReturn;
5998
6045
  }
5999
6046
  }
6000
- class ValidatePromptModulesResponseValidationResult {
6047
+ class ValidationResult {
6001
6048
  static fromProto(proto) {
6002
- let m = new ValidatePromptModulesResponseValidationResult();
6049
+ let m = new ValidationResult();
6003
6050
  m = Object.assign(m, proto);
6004
- if (proto.namespace) {
6005
- m.namespace = Namespace.fromProto(proto.namespace);
6051
+ if (proto.failureAction) {
6052
+ m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
6053
+ }
6054
+ if (proto.violations) {
6055
+ m.violations = proto.violations.map(ValidationViolation.fromProto);
6006
6056
  }
6007
6057
  return m;
6008
6058
  }
@@ -6014,17 +6064,11 @@ class ValidatePromptModulesResponseValidationResult {
6014
6064
  }
6015
6065
  toApiJson() {
6016
6066
  const toReturn = {};
6017
- if (typeof this.id !== 'undefined') {
6018
- toReturn['id'] = this.id;
6019
- }
6020
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
6021
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
6022
- }
6023
- if (typeof this.isValid !== 'undefined') {
6024
- toReturn['isValid'] = this.isValid;
6067
+ if (typeof this.failureAction !== 'undefined') {
6068
+ toReturn['failureAction'] = this.failureAction;
6025
6069
  }
6026
- if (typeof this.errorMessage !== 'undefined') {
6027
- toReturn['errorMessage'] = this.errorMessage;
6070
+ if (typeof this.violations !== 'undefined' && this.violations !== null) {
6071
+ toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
6028
6072
  }
6029
6073
  return toReturn;
6030
6074
  }
@@ -6565,5 +6609,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6565
6609
  * Generated bundle index. Do not edit.
6566
6610
  */
6567
6611
 
6568
- export { Access, Action, AgentArchitecture, AgentRole, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionRequestOptions, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyImpersonationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsRequestSortOptions, ListGoalsRequestSortingOrder, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, RunTestsRequest, RunTestsResponse, Scope, SerializeFunctionRequest, SerializeFunctionResponse, SerializeGoalRequest, SerializeGoalResponse, SerializeMCPRequest, SerializeMCPResponse, SerializePromptModuleRequest, SerializePromptModuleResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SetConnectionAssistantRequest, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TemplateVariable, TestCase, TestLLMOptions, TestResult, TestResultCitation, TestRun, ToolCall, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidateFunctionsRequest, ValidateFunctionsResponse, ValidateFunctionsResponseValidationResult, ValidateGoalsRequest, ValidateGoalsResponse, ValidateGoalsResponseValidationResult, ValidateMCPsRequest, ValidateMCPsResponse, ValidateMCPsResponseValidationResult, ValidatePromptModuleRequest, ValidatePromptModuleResponse, ValidatePromptModuleVersionsRequest, ValidatePromptModuleVersionsResponse, ValidatePromptModuleVersionsResponseValidationResult, ValidatePromptModulesRequest, ValidatePromptModulesResponse, ValidatePromptModulesResponseValidationResult, ValidationFailureAction, ValidationResult, ValidationViolation, Validator, VendorModel };
6612
+ export { Access, Action, AgentArchitecture, AgentRole, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionRequestOptions, ExecuteFunctionResponse, ExpectedToolCall, 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 };
6569
6613
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map