@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.
@@ -2653,6 +2653,41 @@ class ImageContent {
2653
2653
  return toReturn;
2654
2654
  }
2655
2655
  }
2656
+ class ToolCall {
2657
+ static fromProto(proto) {
2658
+ let m = new ToolCall();
2659
+ m = Object.assign(m, proto);
2660
+ if (proto.namespace) {
2661
+ m.namespace = Namespace.fromProto(proto.namespace);
2662
+ }
2663
+ return m;
2664
+ }
2665
+ constructor(kwargs) {
2666
+ if (!kwargs) {
2667
+ return;
2668
+ }
2669
+ Object.assign(this, kwargs);
2670
+ }
2671
+ toApiJson() {
2672
+ const toReturn = {};
2673
+ if (typeof this.toolName !== 'undefined') {
2674
+ toReturn['toolName'] = this.toolName;
2675
+ }
2676
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2677
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2678
+ }
2679
+ if (typeof this.arguments !== 'undefined') {
2680
+ toReturn['arguments'] = this.arguments;
2681
+ }
2682
+ if (typeof this.response !== 'undefined') {
2683
+ toReturn['response'] = this.response;
2684
+ }
2685
+ if (typeof this.noOp !== 'undefined') {
2686
+ toReturn['noOp'] = this.noOp;
2687
+ }
2688
+ return toReturn;
2689
+ }
2690
+ }
2656
2691
 
2657
2692
  function enumStringToValue$3(enumRef, value) {
2658
2693
  if (typeof value === 'number') {
@@ -2753,6 +2788,32 @@ class DeleteTestCasesRequest {
2753
2788
  return toReturn;
2754
2789
  }
2755
2790
  }
2791
+ class ExpectedToolCall {
2792
+ static fromProto(proto) {
2793
+ let m = new ExpectedToolCall();
2794
+ m = Object.assign(m, proto);
2795
+ return m;
2796
+ }
2797
+ constructor(kwargs) {
2798
+ if (!kwargs) {
2799
+ return;
2800
+ }
2801
+ Object.assign(this, kwargs);
2802
+ }
2803
+ toApiJson() {
2804
+ const toReturn = {};
2805
+ if (typeof this.name !== 'undefined') {
2806
+ toReturn['name'] = this.name;
2807
+ }
2808
+ if (typeof this.arguments !== 'undefined') {
2809
+ toReturn['arguments'] = this.arguments;
2810
+ }
2811
+ if (typeof this.response !== 'undefined') {
2812
+ toReturn['response'] = this.response;
2813
+ }
2814
+ return toReturn;
2815
+ }
2816
+ }
2756
2817
  class GetTestRunRequest {
2757
2818
  static fromProto(proto) {
2758
2819
  let m = new GetTestRunRequest();
@@ -3012,6 +3073,9 @@ class TestCase {
3012
3073
  if (proto.chatHistory) {
3013
3074
  m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
3014
3075
  }
3076
+ if (proto.expectedToolCalls) {
3077
+ m.expectedToolCalls = proto.expectedToolCalls.map(ExpectedToolCall.fromProto);
3078
+ }
3015
3079
  return m;
3016
3080
  }
3017
3081
  constructor(kwargs) {
@@ -3034,6 +3098,9 @@ class TestCase {
3034
3098
  if (typeof this.expectation !== 'undefined') {
3035
3099
  toReturn['expectation'] = this.expectation;
3036
3100
  }
3101
+ if (typeof this.expectedToolCalls !== 'undefined' && this.expectedToolCalls !== null) {
3102
+ toReturn['expectedToolCalls'] = 'toApiJson' in this.expectedToolCalls ? this.expectedToolCalls.toApiJson() : this.expectedToolCalls;
3103
+ }
3037
3104
  return toReturn;
3038
3105
  }
3039
3106
  }
@@ -3073,6 +3140,12 @@ class TestResult {
3073
3140
  if (proto.llmOptions) {
3074
3141
  m.llmOptions = TestLLMOptions.fromProto(proto.llmOptions);
3075
3142
  }
3143
+ if (proto.expectedToolCalls) {
3144
+ m.expectedToolCalls = proto.expectedToolCalls.map(ExpectedToolCall.fromProto);
3145
+ }
3146
+ if (proto.toolCalls) {
3147
+ m.toolCalls = proto.toolCalls.map(ToolCall.fromProto);
3148
+ }
3076
3149
  return m;
3077
3150
  }
3078
3151
  constructor(kwargs) {
@@ -3116,6 +3189,12 @@ class TestResult {
3116
3189
  if (typeof this.latency !== 'undefined') {
3117
3190
  toReturn['latency'] = this.latency;
3118
3191
  }
3192
+ if (typeof this.expectedToolCalls !== 'undefined' && this.expectedToolCalls !== null) {
3193
+ toReturn['expectedToolCalls'] = 'toApiJson' in this.expectedToolCalls ? this.expectedToolCalls.toApiJson() : this.expectedToolCalls;
3194
+ }
3195
+ if (typeof this.toolCalls !== 'undefined' && this.toolCalls !== null) {
3196
+ toReturn['toolCalls'] = 'toApiJson' in this.toolCalls ? this.toolCalls.toApiJson() : this.toolCalls;
3197
+ }
3119
3198
  return toReturn;
3120
3199
  }
3121
3200
  }
@@ -3774,15 +3853,27 @@ class ExecuteFunctionResponse {
3774
3853
  return toReturn;
3775
3854
  }
3776
3855
  }
3777
- class ListAssistantRequestFilters {
3856
+ class ListGoalsRequestFilters {
3778
3857
  static fromProto(proto) {
3779
- let m = new ListAssistantRequestFilters();
3858
+ let m = new ListGoalsRequestFilters();
3780
3859
  m = Object.assign(m, proto);
3781
3860
  if (proto.namespace) {
3782
3861
  m.namespace = Namespace.fromProto(proto.namespace);
3783
3862
  }
3784
3863
  if (proto.type) {
3785
- m.type = enumStringToValue(AssistantType, proto.type);
3864
+ m.type = enumStringToValue(GoalType, proto.type);
3865
+ }
3866
+ if (proto.supportedChannels) {
3867
+ m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3868
+ }
3869
+ if (proto.namespaces) {
3870
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3871
+ }
3872
+ if (proto.constraintFilters) {
3873
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3874
+ }
3875
+ if (proto.sortOptions) {
3876
+ m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
3786
3877
  }
3787
3878
  return m;
3788
3879
  }
@@ -3800,18 +3891,36 @@ class ListAssistantRequestFilters {
3800
3891
  if (typeof this.type !== 'undefined') {
3801
3892
  toReturn['type'] = this.type;
3802
3893
  }
3894
+ if (typeof this.supportedChannels !== 'undefined') {
3895
+ toReturn['supportedChannels'] = this.supportedChannels;
3896
+ }
3897
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3898
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3899
+ }
3900
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3901
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3902
+ }
3903
+ if (typeof this.searchTerm !== 'undefined') {
3904
+ toReturn['searchTerm'] = this.searchTerm;
3905
+ }
3906
+ if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
3907
+ toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
3908
+ }
3909
+ if (typeof this.omitOverrides !== 'undefined') {
3910
+ toReturn['omitOverrides'] = this.omitOverrides;
3911
+ }
3803
3912
  return toReturn;
3804
3913
  }
3805
3914
  }
3806
- class ListAvailableModelsRequestFilters {
3915
+ class ListAssistantRequestFilters {
3807
3916
  static fromProto(proto) {
3808
- let m = new ListAvailableModelsRequestFilters();
3917
+ let m = new ListAssistantRequestFilters();
3809
3918
  m = Object.assign(m, proto);
3810
- if (proto.vendor) {
3811
- m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3919
+ if (proto.namespace) {
3920
+ m.namespace = Namespace.fromProto(proto.namespace);
3812
3921
  }
3813
3922
  if (proto.type) {
3814
- m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3923
+ m.type = enumStringToValue(AssistantType, proto.type);
3815
3924
  }
3816
3925
  return m;
3817
3926
  }
@@ -3823,8 +3932,8 @@ class ListAvailableModelsRequestFilters {
3823
3932
  }
3824
3933
  toApiJson() {
3825
3934
  const toReturn = {};
3826
- if (typeof this.vendor !== 'undefined') {
3827
- toReturn['vendor'] = this.vendor;
3935
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3936
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3828
3937
  }
3829
3938
  if (typeof this.type !== 'undefined') {
3830
3939
  toReturn['type'] = this.type;
@@ -3832,13 +3941,19 @@ class ListAvailableModelsRequestFilters {
3832
3941
  return toReturn;
3833
3942
  }
3834
3943
  }
3835
- class ListPromptModuleRequestFilters {
3944
+ class ListFunctionRequestFilters {
3836
3945
  static fromProto(proto) {
3837
- let m = new ListPromptModuleRequestFilters();
3946
+ let m = new ListFunctionRequestFilters();
3838
3947
  m = Object.assign(m, proto);
3839
3948
  if (proto.namespace) {
3840
3949
  m.namespace = Namespace.fromProto(proto.namespace);
3841
3950
  }
3951
+ if (proto.namespaces) {
3952
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3953
+ }
3954
+ if (proto.constraintFilters) {
3955
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3956
+ }
3842
3957
  return m;
3843
3958
  }
3844
3959
  constructor(kwargs) {
@@ -3852,30 +3967,27 @@ class ListPromptModuleRequestFilters {
3852
3967
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3853
3968
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3854
3969
  }
3970
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3971
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3972
+ }
3973
+ if (typeof this.mcpId !== 'undefined') {
3974
+ toReturn['mcpId'] = this.mcpId;
3975
+ }
3976
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3977
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3978
+ }
3855
3979
  return toReturn;
3856
3980
  }
3857
3981
  }
3858
- class ListGoalsRequestFilters {
3982
+ class ListAvailableModelsRequestFilters {
3859
3983
  static fromProto(proto) {
3860
- let m = new ListGoalsRequestFilters();
3984
+ let m = new ListAvailableModelsRequestFilters();
3861
3985
  m = Object.assign(m, proto);
3862
- if (proto.namespace) {
3863
- m.namespace = Namespace.fromProto(proto.namespace);
3986
+ if (proto.vendor) {
3987
+ m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3864
3988
  }
3865
3989
  if (proto.type) {
3866
- m.type = enumStringToValue(GoalType, proto.type);
3867
- }
3868
- if (proto.supportedChannels) {
3869
- m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3870
- }
3871
- if (proto.namespaces) {
3872
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3873
- }
3874
- if (proto.constraintFilters) {
3875
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3876
- }
3877
- if (proto.sortOptions) {
3878
- m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
3990
+ m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3879
3991
  }
3880
3992
  return m;
3881
3993
  }
@@ -3887,45 +3999,21 @@ class ListGoalsRequestFilters {
3887
3999
  }
3888
4000
  toApiJson() {
3889
4001
  const toReturn = {};
3890
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3891
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
4002
+ if (typeof this.vendor !== 'undefined') {
4003
+ toReturn['vendor'] = this.vendor;
3892
4004
  }
3893
4005
  if (typeof this.type !== 'undefined') {
3894
4006
  toReturn['type'] = this.type;
3895
4007
  }
3896
- if (typeof this.supportedChannels !== 'undefined') {
3897
- toReturn['supportedChannels'] = this.supportedChannels;
3898
- }
3899
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3900
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3901
- }
3902
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3903
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3904
- }
3905
- if (typeof this.searchTerm !== 'undefined') {
3906
- toReturn['searchTerm'] = this.searchTerm;
3907
- }
3908
- if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
3909
- toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
3910
- }
3911
- if (typeof this.omitOverrides !== 'undefined') {
3912
- toReturn['omitOverrides'] = this.omitOverrides;
3913
- }
3914
4008
  return toReturn;
3915
4009
  }
3916
4010
  }
3917
- class ListFunctionRequestFilters {
4011
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3918
4012
  static fromProto(proto) {
3919
- let m = new ListFunctionRequestFilters();
4013
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3920
4014
  m = Object.assign(m, proto);
3921
- if (proto.namespace) {
3922
- m.namespace = Namespace.fromProto(proto.namespace);
3923
- }
3924
- if (proto.namespaces) {
3925
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3926
- }
3927
- if (proto.constraintFilters) {
3928
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
4015
+ if (proto.type) {
4016
+ m.type = enumStringToValue(AssistantType, proto.type);
3929
4017
  }
3930
4018
  return m;
3931
4019
  }
@@ -3937,31 +4025,19 @@ class ListFunctionRequestFilters {
3937
4025
  }
3938
4026
  toApiJson() {
3939
4027
  const toReturn = {};
3940
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3941
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3942
- }
3943
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3944
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3945
- }
3946
- if (typeof this.mcpId !== 'undefined') {
3947
- toReturn['mcpId'] = this.mcpId;
3948
- }
3949
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3950
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
4028
+ if (typeof this.type !== 'undefined') {
4029
+ toReturn['type'] = this.type;
3951
4030
  }
3952
4031
  return toReturn;
3953
4032
  }
3954
4033
  }
3955
- class ListConnectionsRequestFilters {
4034
+ class ListPromptModuleRequestFilters {
3956
4035
  static fromProto(proto) {
3957
- let m = new ListConnectionsRequestFilters();
4036
+ let m = new ListPromptModuleRequestFilters();
3958
4037
  m = Object.assign(m, proto);
3959
4038
  if (proto.namespace) {
3960
4039
  m.namespace = Namespace.fromProto(proto.namespace);
3961
4040
  }
3962
- if (proto.assistantType) {
3963
- m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3964
- }
3965
4041
  return m;
3966
4042
  }
3967
4043
  constructor(kwargs) {
@@ -3975,18 +4051,18 @@ class ListConnectionsRequestFilters {
3975
4051
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3976
4052
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3977
4053
  }
3978
- if (typeof this.assistantType !== 'undefined') {
3979
- toReturn['assistantType'] = this.assistantType;
3980
- }
3981
4054
  return toReturn;
3982
4055
  }
3983
4056
  }
3984
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
4057
+ class ListConnectionsRequestFilters {
3985
4058
  static fromProto(proto) {
3986
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
4059
+ let m = new ListConnectionsRequestFilters();
3987
4060
  m = Object.assign(m, proto);
3988
- if (proto.type) {
3989
- m.type = enumStringToValue(AssistantType, proto.type);
4061
+ if (proto.namespace) {
4062
+ m.namespace = Namespace.fromProto(proto.namespace);
4063
+ }
4064
+ if (proto.assistantType) {
4065
+ m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3990
4066
  }
3991
4067
  return m;
3992
4068
  }
@@ -3998,8 +4074,11 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3998
4074
  }
3999
4075
  toApiJson() {
4000
4076
  const toReturn = {};
4001
- if (typeof this.type !== 'undefined') {
4002
- toReturn['type'] = this.type;
4077
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
4078
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
4079
+ }
4080
+ if (typeof this.assistantType !== 'undefined') {
4081
+ toReturn['assistantType'] = this.assistantType;
4003
4082
  }
4004
4083
  return toReturn;
4005
4084
  }
@@ -5312,10 +5391,13 @@ class ListTemplateVariablesResponse {
5312
5391
  return toReturn;
5313
5392
  }
5314
5393
  }
5315
- class CreateAssistantRequestOptions {
5394
+ class GenerateChatAnswerRequestOptions {
5316
5395
  static fromProto(proto) {
5317
- let m = new CreateAssistantRequestOptions();
5396
+ let m = new GenerateChatAnswerRequestOptions();
5318
5397
  m = Object.assign(m, proto);
5398
+ if (proto.maxTokens) {
5399
+ m.maxTokens = parseInt(proto.maxTokens, 10);
5400
+ }
5319
5401
  return m;
5320
5402
  }
5321
5403
  constructor(kwargs) {
@@ -5326,15 +5408,21 @@ class CreateAssistantRequestOptions {
5326
5408
  }
5327
5409
  toApiJson() {
5328
5410
  const toReturn = {};
5329
- if (typeof this.applyDefaults !== 'undefined') {
5330
- toReturn['applyDefaults'] = this.applyDefaults;
5411
+ if (typeof this.includeAllCitations !== 'undefined') {
5412
+ toReturn['includeAllCitations'] = this.includeAllCitations;
5413
+ }
5414
+ if (typeof this.enableAsyncFunctions !== 'undefined') {
5415
+ toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
5416
+ }
5417
+ if (typeof this.maxTokens !== 'undefined') {
5418
+ toReturn['maxTokens'] = this.maxTokens;
5331
5419
  }
5332
5420
  return toReturn;
5333
5421
  }
5334
5422
  }
5335
- class UpsertAssistantRequestOptions {
5423
+ class GetMultiAssistantRequestOptions {
5336
5424
  static fromProto(proto) {
5337
- let m = new UpsertAssistantRequestOptions();
5425
+ let m = new GetMultiAssistantRequestOptions();
5338
5426
  m = Object.assign(m, proto);
5339
5427
  return m;
5340
5428
  }
@@ -5346,15 +5434,15 @@ class UpsertAssistantRequestOptions {
5346
5434
  }
5347
5435
  toApiJson() {
5348
5436
  const toReturn = {};
5349
- if (typeof this.applyDefaults !== 'undefined') {
5350
- toReturn['applyDefaults'] = this.applyDefaults;
5437
+ if (typeof this.skipGoalsHydration !== 'undefined') {
5438
+ toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5351
5439
  }
5352
5440
  return toReturn;
5353
5441
  }
5354
5442
  }
5355
- class CreatePromptModuleVersionRequestOptions {
5443
+ class UpsertAssistantRequestOptions {
5356
5444
  static fromProto(proto) {
5357
- let m = new CreatePromptModuleVersionRequestOptions();
5445
+ let m = new UpsertAssistantRequestOptions();
5358
5446
  m = Object.assign(m, proto);
5359
5447
  return m;
5360
5448
  }
@@ -5366,8 +5454,8 @@ class CreatePromptModuleVersionRequestOptions {
5366
5454
  }
5367
5455
  toApiJson() {
5368
5456
  const toReturn = {};
5369
- if (typeof this.shouldDeploy !== 'undefined') {
5370
- toReturn['shouldDeploy'] = this.shouldDeploy;
5457
+ if (typeof this.applyDefaults !== 'undefined') {
5458
+ toReturn['applyDefaults'] = this.applyDefaults;
5371
5459
  }
5372
5460
  return toReturn;
5373
5461
  }
@@ -5392,9 +5480,9 @@ class GetAssistantRequestOptions {
5392
5480
  return toReturn;
5393
5481
  }
5394
5482
  }
5395
- class GetMultiAssistantRequestOptions {
5483
+ class CreateAssistantRequestOptions {
5396
5484
  static fromProto(proto) {
5397
- let m = new GetMultiAssistantRequestOptions();
5485
+ let m = new CreateAssistantRequestOptions();
5398
5486
  m = Object.assign(m, proto);
5399
5487
  return m;
5400
5488
  }
@@ -5406,18 +5494,18 @@ class GetMultiAssistantRequestOptions {
5406
5494
  }
5407
5495
  toApiJson() {
5408
5496
  const toReturn = {};
5409
- if (typeof this.skipGoalsHydration !== 'undefined') {
5410
- toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5497
+ if (typeof this.applyDefaults !== 'undefined') {
5498
+ toReturn['applyDefaults'] = this.applyDefaults;
5411
5499
  }
5412
5500
  return toReturn;
5413
5501
  }
5414
5502
  }
5415
- class GenerateChatAnswerRequestOptions {
5503
+ class ExecuteFunctionRequestOptions {
5416
5504
  static fromProto(proto) {
5417
- let m = new GenerateChatAnswerRequestOptions();
5505
+ let m = new ExecuteFunctionRequestOptions();
5418
5506
  m = Object.assign(m, proto);
5419
- if (proto.maxTokens) {
5420
- m.maxTokens = parseInt(proto.maxTokens, 10);
5507
+ if (proto.contextInfo) {
5508
+ m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5421
5509
  }
5422
5510
  return m;
5423
5511
  }
@@ -5429,25 +5517,19 @@ class GenerateChatAnswerRequestOptions {
5429
5517
  }
5430
5518
  toApiJson() {
5431
5519
  const toReturn = {};
5432
- if (typeof this.includeAllCitations !== 'undefined') {
5433
- toReturn['includeAllCitations'] = this.includeAllCitations;
5434
- }
5435
- if (typeof this.enableAsyncFunctions !== 'undefined') {
5436
- toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
5520
+ if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5521
+ toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5437
5522
  }
5438
- if (typeof this.maxTokens !== 'undefined') {
5439
- toReturn['maxTokens'] = this.maxTokens;
5523
+ if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
5524
+ toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
5440
5525
  }
5441
5526
  return toReturn;
5442
5527
  }
5443
5528
  }
5444
- class ExecuteFunctionRequestOptions {
5529
+ class CreatePromptModuleVersionRequestOptions {
5445
5530
  static fromProto(proto) {
5446
- let m = new ExecuteFunctionRequestOptions();
5531
+ let m = new CreatePromptModuleVersionRequestOptions();
5447
5532
  m = Object.assign(m, proto);
5448
- if (proto.contextInfo) {
5449
- m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5450
- }
5451
5533
  return m;
5452
5534
  }
5453
5535
  constructor(kwargs) {
@@ -5458,11 +5540,8 @@ class ExecuteFunctionRequestOptions {
5458
5540
  }
5459
5541
  toApiJson() {
5460
5542
  const toReturn = {};
5461
- if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5462
- toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5463
- }
5464
- if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
5465
- toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
5543
+ if (typeof this.shouldDeploy !== 'undefined') {
5544
+ toReturn['shouldDeploy'] = this.shouldDeploy;
5466
5545
  }
5467
5546
  return toReturn;
5468
5547
  }
@@ -5551,41 +5630,6 @@ class ListGoalsRequestSortOptions {
5551
5630
  return toReturn;
5552
5631
  }
5553
5632
  }
5554
- class ToolCall {
5555
- static fromProto(proto) {
5556
- let m = new ToolCall();
5557
- m = Object.assign(m, proto);
5558
- if (proto.namespace) {
5559
- m.namespace = Namespace.fromProto(proto.namespace);
5560
- }
5561
- return m;
5562
- }
5563
- constructor(kwargs) {
5564
- if (!kwargs) {
5565
- return;
5566
- }
5567
- Object.assign(this, kwargs);
5568
- }
5569
- toApiJson() {
5570
- const toReturn = {};
5571
- if (typeof this.toolName !== 'undefined') {
5572
- toReturn['toolName'] = this.toolName;
5573
- }
5574
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
5575
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
5576
- }
5577
- if (typeof this.arguments !== 'undefined') {
5578
- toReturn['arguments'] = this.arguments;
5579
- }
5580
- if (typeof this.response !== 'undefined') {
5581
- toReturn['response'] = this.response;
5582
- }
5583
- if (typeof this.noOp !== 'undefined') {
5584
- toReturn['noOp'] = this.noOp;
5585
- }
5586
- return toReturn;
5587
- }
5588
- }
5589
5633
  class UpdateAssistantRequest {
5590
5634
  static fromProto(proto) {
5591
5635
  let m = new UpdateAssistantRequest();
@@ -5935,15 +5979,12 @@ class ValidatePromptModulesResponse {
5935
5979
  return toReturn;
5936
5980
  }
5937
5981
  }
5938
- class ValidationResult {
5982
+ class ValidatePromptModulesResponseValidationResult {
5939
5983
  static fromProto(proto) {
5940
- let m = new ValidationResult();
5984
+ let m = new ValidatePromptModulesResponseValidationResult();
5941
5985
  m = Object.assign(m, proto);
5942
- if (proto.failureAction) {
5943
- m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
5944
- }
5945
- if (proto.violations) {
5946
- m.violations = proto.violations.map(ValidationViolation.fromProto);
5986
+ if (proto.namespace) {
5987
+ m.namespace = Namespace.fromProto(proto.namespace);
5947
5988
  }
5948
5989
  return m;
5949
5990
  }
@@ -5955,11 +5996,17 @@ class ValidationResult {
5955
5996
  }
5956
5997
  toApiJson() {
5957
5998
  const toReturn = {};
5958
- if (typeof this.failureAction !== 'undefined') {
5959
- toReturn['failureAction'] = this.failureAction;
5999
+ if (typeof this.id !== 'undefined') {
6000
+ toReturn['id'] = this.id;
5960
6001
  }
5961
- if (typeof this.violations !== 'undefined' && this.violations !== null) {
5962
- toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
6002
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
6003
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
6004
+ }
6005
+ if (typeof this.isValid !== 'undefined') {
6006
+ toReturn['isValid'] = this.isValid;
6007
+ }
6008
+ if (typeof this.errorMessage !== 'undefined') {
6009
+ toReturn['errorMessage'] = this.errorMessage;
5963
6010
  }
5964
6011
  return toReturn;
5965
6012
  }
@@ -5996,12 +6043,15 @@ class ValidatePromptModuleVersionsResponseValidationResult {
5996
6043
  return toReturn;
5997
6044
  }
5998
6045
  }
5999
- class ValidatePromptModulesResponseValidationResult {
6046
+ class ValidationResult {
6000
6047
  static fromProto(proto) {
6001
- let m = new ValidatePromptModulesResponseValidationResult();
6048
+ let m = new ValidationResult();
6002
6049
  m = Object.assign(m, proto);
6003
- if (proto.namespace) {
6004
- m.namespace = Namespace.fromProto(proto.namespace);
6050
+ if (proto.failureAction) {
6051
+ m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
6052
+ }
6053
+ if (proto.violations) {
6054
+ m.violations = proto.violations.map(ValidationViolation.fromProto);
6005
6055
  }
6006
6056
  return m;
6007
6057
  }
@@ -6013,17 +6063,11 @@ class ValidatePromptModulesResponseValidationResult {
6013
6063
  }
6014
6064
  toApiJson() {
6015
6065
  const toReturn = {};
6016
- if (typeof this.id !== 'undefined') {
6017
- toReturn['id'] = this.id;
6018
- }
6019
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
6020
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
6021
- }
6022
- if (typeof this.isValid !== 'undefined') {
6023
- toReturn['isValid'] = this.isValid;
6066
+ if (typeof this.failureAction !== 'undefined') {
6067
+ toReturn['failureAction'] = this.failureAction;
6024
6068
  }
6025
- if (typeof this.errorMessage !== 'undefined') {
6026
- toReturn['errorMessage'] = this.errorMessage;
6069
+ if (typeof this.violations !== 'undefined' && this.violations !== null) {
6070
+ toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
6027
6071
  }
6028
6072
  return toReturn;
6029
6073
  }
@@ -6564,5 +6608,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6564
6608
  * Generated bundle index. Do not edit.
6565
6609
  */
6566
6610
 
6567
- 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 };
6611
+ 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 };
6568
6612
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map