@vendasta/ai-assistants 0.69.0 → 0.71.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.
@@ -231,6 +231,7 @@ var AgentArchitecture;
231
231
  AgentArchitecture[AgentArchitecture["STANDARD"] = 1] = "STANDARD";
232
232
  AgentArchitecture[AgentArchitecture["REACT"] = 2] = "REACT";
233
233
  AgentArchitecture[AgentArchitecture["DEEP_RESEARCH"] = 3] = "DEEP_RESEARCH";
234
+ AgentArchitecture[AgentArchitecture["SUPERVISOR"] = 4] = "SUPERVISOR";
234
235
  })(AgentArchitecture || (AgentArchitecture = {}));
235
236
  var StreamingGenerateChatAnswerResponseContentType;
236
237
  (function (StreamingGenerateChatAnswerResponseContentType) {
@@ -2654,6 +2655,41 @@ class ImageContent {
2654
2655
  return toReturn;
2655
2656
  }
2656
2657
  }
2658
+ class ToolCall {
2659
+ static fromProto(proto) {
2660
+ let m = new ToolCall();
2661
+ m = Object.assign(m, proto);
2662
+ if (proto.namespace) {
2663
+ m.namespace = Namespace.fromProto(proto.namespace);
2664
+ }
2665
+ return m;
2666
+ }
2667
+ constructor(kwargs) {
2668
+ if (!kwargs) {
2669
+ return;
2670
+ }
2671
+ Object.assign(this, kwargs);
2672
+ }
2673
+ toApiJson() {
2674
+ const toReturn = {};
2675
+ if (typeof this.toolName !== 'undefined') {
2676
+ toReturn['toolName'] = this.toolName;
2677
+ }
2678
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2679
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2680
+ }
2681
+ if (typeof this.arguments !== 'undefined') {
2682
+ toReturn['arguments'] = this.arguments;
2683
+ }
2684
+ if (typeof this.response !== 'undefined') {
2685
+ toReturn['response'] = this.response;
2686
+ }
2687
+ if (typeof this.noOp !== 'undefined') {
2688
+ toReturn['noOp'] = this.noOp;
2689
+ }
2690
+ return toReturn;
2691
+ }
2692
+ }
2657
2693
 
2658
2694
  function enumStringToValue$3(enumRef, value) {
2659
2695
  if (typeof value === 'number') {
@@ -2754,6 +2790,32 @@ class DeleteTestCasesRequest {
2754
2790
  return toReturn;
2755
2791
  }
2756
2792
  }
2793
+ class ExpectedToolCall {
2794
+ static fromProto(proto) {
2795
+ let m = new ExpectedToolCall();
2796
+ m = Object.assign(m, proto);
2797
+ return m;
2798
+ }
2799
+ constructor(kwargs) {
2800
+ if (!kwargs) {
2801
+ return;
2802
+ }
2803
+ Object.assign(this, kwargs);
2804
+ }
2805
+ toApiJson() {
2806
+ const toReturn = {};
2807
+ if (typeof this.name !== 'undefined') {
2808
+ toReturn['name'] = this.name;
2809
+ }
2810
+ if (typeof this.arguments !== 'undefined') {
2811
+ toReturn['arguments'] = this.arguments;
2812
+ }
2813
+ if (typeof this.response !== 'undefined') {
2814
+ toReturn['response'] = this.response;
2815
+ }
2816
+ return toReturn;
2817
+ }
2818
+ }
2757
2819
  class GetTestRunRequest {
2758
2820
  static fromProto(proto) {
2759
2821
  let m = new GetTestRunRequest();
@@ -3013,6 +3075,9 @@ class TestCase {
3013
3075
  if (proto.chatHistory) {
3014
3076
  m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
3015
3077
  }
3078
+ if (proto.expectedToolCalls) {
3079
+ m.expectedToolCalls = proto.expectedToolCalls.map(ExpectedToolCall.fromProto);
3080
+ }
3016
3081
  return m;
3017
3082
  }
3018
3083
  constructor(kwargs) {
@@ -3035,6 +3100,9 @@ class TestCase {
3035
3100
  if (typeof this.expectation !== 'undefined') {
3036
3101
  toReturn['expectation'] = this.expectation;
3037
3102
  }
3103
+ if (typeof this.expectedToolCalls !== 'undefined' && this.expectedToolCalls !== null) {
3104
+ toReturn['expectedToolCalls'] = 'toApiJson' in this.expectedToolCalls ? this.expectedToolCalls.toApiJson() : this.expectedToolCalls;
3105
+ }
3038
3106
  return toReturn;
3039
3107
  }
3040
3108
  }
@@ -3074,6 +3142,12 @@ class TestResult {
3074
3142
  if (proto.llmOptions) {
3075
3143
  m.llmOptions = TestLLMOptions.fromProto(proto.llmOptions);
3076
3144
  }
3145
+ if (proto.expectedToolCalls) {
3146
+ m.expectedToolCalls = proto.expectedToolCalls.map(ExpectedToolCall.fromProto);
3147
+ }
3148
+ if (proto.toolCalls) {
3149
+ m.toolCalls = proto.toolCalls.map(ToolCall.fromProto);
3150
+ }
3077
3151
  return m;
3078
3152
  }
3079
3153
  constructor(kwargs) {
@@ -3117,6 +3191,12 @@ class TestResult {
3117
3191
  if (typeof this.latency !== 'undefined') {
3118
3192
  toReturn['latency'] = this.latency;
3119
3193
  }
3194
+ if (typeof this.expectedToolCalls !== 'undefined' && this.expectedToolCalls !== null) {
3195
+ toReturn['expectedToolCalls'] = 'toApiJson' in this.expectedToolCalls ? this.expectedToolCalls.toApiJson() : this.expectedToolCalls;
3196
+ }
3197
+ if (typeof this.toolCalls !== 'undefined' && this.toolCalls !== null) {
3198
+ toReturn['toolCalls'] = 'toApiJson' in this.toolCalls ? this.toolCalls.toApiJson() : this.toolCalls;
3199
+ }
3120
3200
  return toReturn;
3121
3201
  }
3122
3202
  }
@@ -3775,15 +3855,27 @@ class ExecuteFunctionResponse {
3775
3855
  return toReturn;
3776
3856
  }
3777
3857
  }
3778
- class ListAssistantRequestFilters {
3858
+ class ListGoalsRequestFilters {
3779
3859
  static fromProto(proto) {
3780
- let m = new ListAssistantRequestFilters();
3860
+ let m = new ListGoalsRequestFilters();
3781
3861
  m = Object.assign(m, proto);
3782
3862
  if (proto.namespace) {
3783
3863
  m.namespace = Namespace.fromProto(proto.namespace);
3784
3864
  }
3785
3865
  if (proto.type) {
3786
- m.type = enumStringToValue(AssistantType, 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);
3787
3879
  }
3788
3880
  return m;
3789
3881
  }
@@ -3801,18 +3893,36 @@ class ListAssistantRequestFilters {
3801
3893
  if (typeof this.type !== 'undefined') {
3802
3894
  toReturn['type'] = this.type;
3803
3895
  }
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
+ }
3804
3914
  return toReturn;
3805
3915
  }
3806
3916
  }
3807
- class ListAvailableModelsRequestFilters {
3917
+ class ListAssistantRequestFilters {
3808
3918
  static fromProto(proto) {
3809
- let m = new ListAvailableModelsRequestFilters();
3919
+ let m = new ListAssistantRequestFilters();
3810
3920
  m = Object.assign(m, proto);
3811
- if (proto.vendor) {
3812
- m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3921
+ if (proto.namespace) {
3922
+ m.namespace = Namespace.fromProto(proto.namespace);
3813
3923
  }
3814
3924
  if (proto.type) {
3815
- m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3925
+ m.type = enumStringToValue(AssistantType, proto.type);
3816
3926
  }
3817
3927
  return m;
3818
3928
  }
@@ -3824,8 +3934,8 @@ class ListAvailableModelsRequestFilters {
3824
3934
  }
3825
3935
  toApiJson() {
3826
3936
  const toReturn = {};
3827
- if (typeof this.vendor !== 'undefined') {
3828
- toReturn['vendor'] = this.vendor;
3937
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3938
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3829
3939
  }
3830
3940
  if (typeof this.type !== 'undefined') {
3831
3941
  toReturn['type'] = this.type;
@@ -3833,13 +3943,19 @@ class ListAvailableModelsRequestFilters {
3833
3943
  return toReturn;
3834
3944
  }
3835
3945
  }
3836
- class ListPromptModuleRequestFilters {
3946
+ class ListFunctionRequestFilters {
3837
3947
  static fromProto(proto) {
3838
- let m = new ListPromptModuleRequestFilters();
3948
+ let m = new ListFunctionRequestFilters();
3839
3949
  m = Object.assign(m, proto);
3840
3950
  if (proto.namespace) {
3841
3951
  m.namespace = Namespace.fromProto(proto.namespace);
3842
3952
  }
3953
+ if (proto.namespaces) {
3954
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3955
+ }
3956
+ if (proto.constraintFilters) {
3957
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3958
+ }
3843
3959
  return m;
3844
3960
  }
3845
3961
  constructor(kwargs) {
@@ -3853,30 +3969,27 @@ class ListPromptModuleRequestFilters {
3853
3969
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3854
3970
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3855
3971
  }
3972
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3973
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3974
+ }
3975
+ if (typeof this.mcpId !== 'undefined') {
3976
+ toReturn['mcpId'] = this.mcpId;
3977
+ }
3978
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3979
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3980
+ }
3856
3981
  return toReturn;
3857
3982
  }
3858
3983
  }
3859
- class ListGoalsRequestFilters {
3984
+ class ListAvailableModelsRequestFilters {
3860
3985
  static fromProto(proto) {
3861
- let m = new ListGoalsRequestFilters();
3986
+ let m = new ListAvailableModelsRequestFilters();
3862
3987
  m = Object.assign(m, proto);
3863
- if (proto.namespace) {
3864
- m.namespace = Namespace.fromProto(proto.namespace);
3988
+ if (proto.vendor) {
3989
+ m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3865
3990
  }
3866
3991
  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);
3992
+ m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3880
3993
  }
3881
3994
  return m;
3882
3995
  }
@@ -3888,45 +4001,21 @@ class ListGoalsRequestFilters {
3888
4001
  }
3889
4002
  toApiJson() {
3890
4003
  const toReturn = {};
3891
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3892
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
4004
+ if (typeof this.vendor !== 'undefined') {
4005
+ toReturn['vendor'] = this.vendor;
3893
4006
  }
3894
4007
  if (typeof this.type !== 'undefined') {
3895
4008
  toReturn['type'] = this.type;
3896
4009
  }
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
4010
  return toReturn;
3916
4011
  }
3917
4012
  }
3918
- class ListFunctionRequestFilters {
4013
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3919
4014
  static fromProto(proto) {
3920
- let m = new ListFunctionRequestFilters();
4015
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3921
4016
  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);
4017
+ if (proto.type) {
4018
+ m.type = enumStringToValue(AssistantType, proto.type);
3930
4019
  }
3931
4020
  return m;
3932
4021
  }
@@ -3938,31 +4027,19 @@ class ListFunctionRequestFilters {
3938
4027
  }
3939
4028
  toApiJson() {
3940
4029
  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;
4030
+ if (typeof this.type !== 'undefined') {
4031
+ toReturn['type'] = this.type;
3952
4032
  }
3953
4033
  return toReturn;
3954
4034
  }
3955
4035
  }
3956
- class ListConnectionsRequestFilters {
4036
+ class ListPromptModuleRequestFilters {
3957
4037
  static fromProto(proto) {
3958
- let m = new ListConnectionsRequestFilters();
4038
+ let m = new ListPromptModuleRequestFilters();
3959
4039
  m = Object.assign(m, proto);
3960
4040
  if (proto.namespace) {
3961
4041
  m.namespace = Namespace.fromProto(proto.namespace);
3962
4042
  }
3963
- if (proto.assistantType) {
3964
- m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3965
- }
3966
4043
  return m;
3967
4044
  }
3968
4045
  constructor(kwargs) {
@@ -3976,18 +4053,18 @@ class ListConnectionsRequestFilters {
3976
4053
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3977
4054
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3978
4055
  }
3979
- if (typeof this.assistantType !== 'undefined') {
3980
- toReturn['assistantType'] = this.assistantType;
3981
- }
3982
4056
  return toReturn;
3983
4057
  }
3984
4058
  }
3985
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
4059
+ class ListConnectionsRequestFilters {
3986
4060
  static fromProto(proto) {
3987
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
4061
+ let m = new ListConnectionsRequestFilters();
3988
4062
  m = Object.assign(m, proto);
3989
- if (proto.type) {
3990
- m.type = enumStringToValue(AssistantType, proto.type);
4063
+ if (proto.namespace) {
4064
+ m.namespace = Namespace.fromProto(proto.namespace);
4065
+ }
4066
+ if (proto.assistantType) {
4067
+ m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3991
4068
  }
3992
4069
  return m;
3993
4070
  }
@@ -3999,8 +4076,11 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3999
4076
  }
4000
4077
  toApiJson() {
4001
4078
  const toReturn = {};
4002
- if (typeof this.type !== 'undefined') {
4003
- toReturn['type'] = this.type;
4079
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
4080
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
4081
+ }
4082
+ if (typeof this.assistantType !== 'undefined') {
4083
+ toReturn['assistantType'] = this.assistantType;
4004
4084
  }
4005
4085
  return toReturn;
4006
4086
  }
@@ -5313,10 +5393,13 @@ class ListTemplateVariablesResponse {
5313
5393
  return toReturn;
5314
5394
  }
5315
5395
  }
5316
- class CreateAssistantRequestOptions {
5396
+ class GenerateChatAnswerRequestOptions {
5317
5397
  static fromProto(proto) {
5318
- let m = new CreateAssistantRequestOptions();
5398
+ let m = new GenerateChatAnswerRequestOptions();
5319
5399
  m = Object.assign(m, proto);
5400
+ if (proto.maxTokens) {
5401
+ m.maxTokens = parseInt(proto.maxTokens, 10);
5402
+ }
5320
5403
  return m;
5321
5404
  }
5322
5405
  constructor(kwargs) {
@@ -5327,15 +5410,21 @@ class CreateAssistantRequestOptions {
5327
5410
  }
5328
5411
  toApiJson() {
5329
5412
  const toReturn = {};
5330
- if (typeof this.applyDefaults !== 'undefined') {
5331
- toReturn['applyDefaults'] = this.applyDefaults;
5413
+ if (typeof this.includeAllCitations !== 'undefined') {
5414
+ toReturn['includeAllCitations'] = this.includeAllCitations;
5415
+ }
5416
+ if (typeof this.enableAsyncFunctions !== 'undefined') {
5417
+ toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
5418
+ }
5419
+ if (typeof this.maxTokens !== 'undefined') {
5420
+ toReturn['maxTokens'] = this.maxTokens;
5332
5421
  }
5333
5422
  return toReturn;
5334
5423
  }
5335
5424
  }
5336
- class UpsertAssistantRequestOptions {
5425
+ class GetMultiAssistantRequestOptions {
5337
5426
  static fromProto(proto) {
5338
- let m = new UpsertAssistantRequestOptions();
5427
+ let m = new GetMultiAssistantRequestOptions();
5339
5428
  m = Object.assign(m, proto);
5340
5429
  return m;
5341
5430
  }
@@ -5347,15 +5436,15 @@ class UpsertAssistantRequestOptions {
5347
5436
  }
5348
5437
  toApiJson() {
5349
5438
  const toReturn = {};
5350
- if (typeof this.applyDefaults !== 'undefined') {
5351
- toReturn['applyDefaults'] = this.applyDefaults;
5439
+ if (typeof this.skipGoalsHydration !== 'undefined') {
5440
+ toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5352
5441
  }
5353
5442
  return toReturn;
5354
5443
  }
5355
5444
  }
5356
- class CreatePromptModuleVersionRequestOptions {
5445
+ class UpsertAssistantRequestOptions {
5357
5446
  static fromProto(proto) {
5358
- let m = new CreatePromptModuleVersionRequestOptions();
5447
+ let m = new UpsertAssistantRequestOptions();
5359
5448
  m = Object.assign(m, proto);
5360
5449
  return m;
5361
5450
  }
@@ -5367,8 +5456,8 @@ class CreatePromptModuleVersionRequestOptions {
5367
5456
  }
5368
5457
  toApiJson() {
5369
5458
  const toReturn = {};
5370
- if (typeof this.shouldDeploy !== 'undefined') {
5371
- toReturn['shouldDeploy'] = this.shouldDeploy;
5459
+ if (typeof this.applyDefaults !== 'undefined') {
5460
+ toReturn['applyDefaults'] = this.applyDefaults;
5372
5461
  }
5373
5462
  return toReturn;
5374
5463
  }
@@ -5393,9 +5482,9 @@ class GetAssistantRequestOptions {
5393
5482
  return toReturn;
5394
5483
  }
5395
5484
  }
5396
- class GetMultiAssistantRequestOptions {
5485
+ class CreateAssistantRequestOptions {
5397
5486
  static fromProto(proto) {
5398
- let m = new GetMultiAssistantRequestOptions();
5487
+ let m = new CreateAssistantRequestOptions();
5399
5488
  m = Object.assign(m, proto);
5400
5489
  return m;
5401
5490
  }
@@ -5407,18 +5496,18 @@ class GetMultiAssistantRequestOptions {
5407
5496
  }
5408
5497
  toApiJson() {
5409
5498
  const toReturn = {};
5410
- if (typeof this.skipGoalsHydration !== 'undefined') {
5411
- toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5499
+ if (typeof this.applyDefaults !== 'undefined') {
5500
+ toReturn['applyDefaults'] = this.applyDefaults;
5412
5501
  }
5413
5502
  return toReturn;
5414
5503
  }
5415
5504
  }
5416
- class GenerateChatAnswerRequestOptions {
5505
+ class ExecuteFunctionRequestOptions {
5417
5506
  static fromProto(proto) {
5418
- let m = new GenerateChatAnswerRequestOptions();
5507
+ let m = new ExecuteFunctionRequestOptions();
5419
5508
  m = Object.assign(m, proto);
5420
- if (proto.maxTokens) {
5421
- m.maxTokens = parseInt(proto.maxTokens, 10);
5509
+ if (proto.contextInfo) {
5510
+ m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5422
5511
  }
5423
5512
  return m;
5424
5513
  }
@@ -5430,25 +5519,19 @@ class GenerateChatAnswerRequestOptions {
5430
5519
  }
5431
5520
  toApiJson() {
5432
5521
  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;
5522
+ if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5523
+ toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5438
5524
  }
5439
- if (typeof this.maxTokens !== 'undefined') {
5440
- toReturn['maxTokens'] = this.maxTokens;
5525
+ if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
5526
+ toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
5441
5527
  }
5442
5528
  return toReturn;
5443
5529
  }
5444
5530
  }
5445
- class ExecuteFunctionRequestOptions {
5531
+ class CreatePromptModuleVersionRequestOptions {
5446
5532
  static fromProto(proto) {
5447
- let m = new ExecuteFunctionRequestOptions();
5533
+ let m = new CreatePromptModuleVersionRequestOptions();
5448
5534
  m = Object.assign(m, proto);
5449
- if (proto.contextInfo) {
5450
- m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5451
- }
5452
5535
  return m;
5453
5536
  }
5454
5537
  constructor(kwargs) {
@@ -5459,11 +5542,8 @@ class ExecuteFunctionRequestOptions {
5459
5542
  }
5460
5543
  toApiJson() {
5461
5544
  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;
5545
+ if (typeof this.shouldDeploy !== 'undefined') {
5546
+ toReturn['shouldDeploy'] = this.shouldDeploy;
5467
5547
  }
5468
5548
  return toReturn;
5469
5549
  }
@@ -5552,41 +5632,6 @@ class ListGoalsRequestSortOptions {
5552
5632
  return toReturn;
5553
5633
  }
5554
5634
  }
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
5635
  class UpdateAssistantRequest {
5591
5636
  static fromProto(proto) {
5592
5637
  let m = new UpdateAssistantRequest();
@@ -5936,15 +5981,12 @@ class ValidatePromptModulesResponse {
5936
5981
  return toReturn;
5937
5982
  }
5938
5983
  }
5939
- class ValidationResult {
5984
+ class ValidatePromptModulesResponseValidationResult {
5940
5985
  static fromProto(proto) {
5941
- let m = new ValidationResult();
5986
+ let m = new ValidatePromptModulesResponseValidationResult();
5942
5987
  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);
5988
+ if (proto.namespace) {
5989
+ m.namespace = Namespace.fromProto(proto.namespace);
5948
5990
  }
5949
5991
  return m;
5950
5992
  }
@@ -5956,11 +5998,17 @@ class ValidationResult {
5956
5998
  }
5957
5999
  toApiJson() {
5958
6000
  const toReturn = {};
5959
- if (typeof this.failureAction !== 'undefined') {
5960
- toReturn['failureAction'] = this.failureAction;
6001
+ if (typeof this.id !== 'undefined') {
6002
+ toReturn['id'] = this.id;
5961
6003
  }
5962
- if (typeof this.violations !== 'undefined' && this.violations !== null) {
5963
- toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
6004
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
6005
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
6006
+ }
6007
+ if (typeof this.isValid !== 'undefined') {
6008
+ toReturn['isValid'] = this.isValid;
6009
+ }
6010
+ if (typeof this.errorMessage !== 'undefined') {
6011
+ toReturn['errorMessage'] = this.errorMessage;
5964
6012
  }
5965
6013
  return toReturn;
5966
6014
  }
@@ -5997,12 +6045,15 @@ class ValidatePromptModuleVersionsResponseValidationResult {
5997
6045
  return toReturn;
5998
6046
  }
5999
6047
  }
6000
- class ValidatePromptModulesResponseValidationResult {
6048
+ class ValidationResult {
6001
6049
  static fromProto(proto) {
6002
- let m = new ValidatePromptModulesResponseValidationResult();
6050
+ let m = new ValidationResult();
6003
6051
  m = Object.assign(m, proto);
6004
- if (proto.namespace) {
6005
- m.namespace = Namespace.fromProto(proto.namespace);
6052
+ if (proto.failureAction) {
6053
+ m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
6054
+ }
6055
+ if (proto.violations) {
6056
+ m.violations = proto.violations.map(ValidationViolation.fromProto);
6006
6057
  }
6007
6058
  return m;
6008
6059
  }
@@ -6014,17 +6065,11 @@ class ValidatePromptModulesResponseValidationResult {
6014
6065
  }
6015
6066
  toApiJson() {
6016
6067
  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;
6068
+ if (typeof this.failureAction !== 'undefined') {
6069
+ toReturn['failureAction'] = this.failureAction;
6025
6070
  }
6026
- if (typeof this.errorMessage !== 'undefined') {
6027
- toReturn['errorMessage'] = this.errorMessage;
6071
+ if (typeof this.violations !== 'undefined' && this.violations !== null) {
6072
+ toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
6028
6073
  }
6029
6074
  return toReturn;
6030
6075
  }
@@ -6565,5 +6610,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6565
6610
  * Generated bundle index. Do not edit.
6566
6611
  */
6567
6612
 
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 };
6613
+ 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
6614
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map