@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.
@@ -230,6 +230,7 @@ var AgentArchitecture;
230
230
  AgentArchitecture[AgentArchitecture["STANDARD"] = 1] = "STANDARD";
231
231
  AgentArchitecture[AgentArchitecture["REACT"] = 2] = "REACT";
232
232
  AgentArchitecture[AgentArchitecture["DEEP_RESEARCH"] = 3] = "DEEP_RESEARCH";
233
+ AgentArchitecture[AgentArchitecture["SUPERVISOR"] = 4] = "SUPERVISOR";
233
234
  })(AgentArchitecture || (AgentArchitecture = {}));
234
235
  var StreamingGenerateChatAnswerResponseContentType;
235
236
  (function (StreamingGenerateChatAnswerResponseContentType) {
@@ -2653,6 +2654,41 @@ class ImageContent {
2653
2654
  return toReturn;
2654
2655
  }
2655
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
+ }
2656
2692
 
2657
2693
  function enumStringToValue$3(enumRef, value) {
2658
2694
  if (typeof value === 'number') {
@@ -2753,6 +2789,32 @@ class DeleteTestCasesRequest {
2753
2789
  return toReturn;
2754
2790
  }
2755
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
+ }
2756
2818
  class GetTestRunRequest {
2757
2819
  static fromProto(proto) {
2758
2820
  let m = new GetTestRunRequest();
@@ -3012,6 +3074,9 @@ class TestCase {
3012
3074
  if (proto.chatHistory) {
3013
3075
  m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
3014
3076
  }
3077
+ if (proto.expectedToolCalls) {
3078
+ m.expectedToolCalls = proto.expectedToolCalls.map(ExpectedToolCall.fromProto);
3079
+ }
3015
3080
  return m;
3016
3081
  }
3017
3082
  constructor(kwargs) {
@@ -3034,6 +3099,9 @@ class TestCase {
3034
3099
  if (typeof this.expectation !== 'undefined') {
3035
3100
  toReturn['expectation'] = this.expectation;
3036
3101
  }
3102
+ if (typeof this.expectedToolCalls !== 'undefined' && this.expectedToolCalls !== null) {
3103
+ toReturn['expectedToolCalls'] = 'toApiJson' in this.expectedToolCalls ? this.expectedToolCalls.toApiJson() : this.expectedToolCalls;
3104
+ }
3037
3105
  return toReturn;
3038
3106
  }
3039
3107
  }
@@ -3073,6 +3141,12 @@ class TestResult {
3073
3141
  if (proto.llmOptions) {
3074
3142
  m.llmOptions = TestLLMOptions.fromProto(proto.llmOptions);
3075
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
+ }
3076
3150
  return m;
3077
3151
  }
3078
3152
  constructor(kwargs) {
@@ -3116,6 +3190,12 @@ class TestResult {
3116
3190
  if (typeof this.latency !== 'undefined') {
3117
3191
  toReturn['latency'] = this.latency;
3118
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
+ }
3119
3199
  return toReturn;
3120
3200
  }
3121
3201
  }
@@ -3774,15 +3854,27 @@ class ExecuteFunctionResponse {
3774
3854
  return toReturn;
3775
3855
  }
3776
3856
  }
3777
- class ListAssistantRequestFilters {
3857
+ class ListGoalsRequestFilters {
3778
3858
  static fromProto(proto) {
3779
- let m = new ListAssistantRequestFilters();
3859
+ let m = new ListGoalsRequestFilters();
3780
3860
  m = Object.assign(m, proto);
3781
3861
  if (proto.namespace) {
3782
3862
  m.namespace = Namespace.fromProto(proto.namespace);
3783
3863
  }
3784
3864
  if (proto.type) {
3785
- 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);
3786
3878
  }
3787
3879
  return m;
3788
3880
  }
@@ -3800,18 +3892,36 @@ class ListAssistantRequestFilters {
3800
3892
  if (typeof this.type !== 'undefined') {
3801
3893
  toReturn['type'] = this.type;
3802
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
+ }
3803
3913
  return toReturn;
3804
3914
  }
3805
3915
  }
3806
- class ListAvailableModelsRequestFilters {
3916
+ class ListAssistantRequestFilters {
3807
3917
  static fromProto(proto) {
3808
- let m = new ListAvailableModelsRequestFilters();
3918
+ let m = new ListAssistantRequestFilters();
3809
3919
  m = Object.assign(m, proto);
3810
- if (proto.vendor) {
3811
- m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3920
+ if (proto.namespace) {
3921
+ m.namespace = Namespace.fromProto(proto.namespace);
3812
3922
  }
3813
3923
  if (proto.type) {
3814
- m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3924
+ m.type = enumStringToValue(AssistantType, proto.type);
3815
3925
  }
3816
3926
  return m;
3817
3927
  }
@@ -3823,8 +3933,8 @@ class ListAvailableModelsRequestFilters {
3823
3933
  }
3824
3934
  toApiJson() {
3825
3935
  const toReturn = {};
3826
- if (typeof this.vendor !== 'undefined') {
3827
- 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;
3828
3938
  }
3829
3939
  if (typeof this.type !== 'undefined') {
3830
3940
  toReturn['type'] = this.type;
@@ -3832,13 +3942,19 @@ class ListAvailableModelsRequestFilters {
3832
3942
  return toReturn;
3833
3943
  }
3834
3944
  }
3835
- class ListPromptModuleRequestFilters {
3945
+ class ListFunctionRequestFilters {
3836
3946
  static fromProto(proto) {
3837
- let m = new ListPromptModuleRequestFilters();
3947
+ let m = new ListFunctionRequestFilters();
3838
3948
  m = Object.assign(m, proto);
3839
3949
  if (proto.namespace) {
3840
3950
  m.namespace = Namespace.fromProto(proto.namespace);
3841
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
+ }
3842
3958
  return m;
3843
3959
  }
3844
3960
  constructor(kwargs) {
@@ -3852,30 +3968,27 @@ class ListPromptModuleRequestFilters {
3852
3968
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3853
3969
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3854
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
+ }
3855
3980
  return toReturn;
3856
3981
  }
3857
3982
  }
3858
- class ListGoalsRequestFilters {
3983
+ class ListAvailableModelsRequestFilters {
3859
3984
  static fromProto(proto) {
3860
- let m = new ListGoalsRequestFilters();
3985
+ let m = new ListAvailableModelsRequestFilters();
3861
3986
  m = Object.assign(m, proto);
3862
- if (proto.namespace) {
3863
- m.namespace = Namespace.fromProto(proto.namespace);
3987
+ if (proto.vendor) {
3988
+ m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3864
3989
  }
3865
3990
  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);
3991
+ m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3879
3992
  }
3880
3993
  return m;
3881
3994
  }
@@ -3887,45 +4000,21 @@ class ListGoalsRequestFilters {
3887
4000
  }
3888
4001
  toApiJson() {
3889
4002
  const toReturn = {};
3890
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3891
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
4003
+ if (typeof this.vendor !== 'undefined') {
4004
+ toReturn['vendor'] = this.vendor;
3892
4005
  }
3893
4006
  if (typeof this.type !== 'undefined') {
3894
4007
  toReturn['type'] = this.type;
3895
4008
  }
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
4009
  return toReturn;
3915
4010
  }
3916
4011
  }
3917
- class ListFunctionRequestFilters {
4012
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3918
4013
  static fromProto(proto) {
3919
- let m = new ListFunctionRequestFilters();
4014
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3920
4015
  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);
4016
+ if (proto.type) {
4017
+ m.type = enumStringToValue(AssistantType, proto.type);
3929
4018
  }
3930
4019
  return m;
3931
4020
  }
@@ -3937,31 +4026,19 @@ class ListFunctionRequestFilters {
3937
4026
  }
3938
4027
  toApiJson() {
3939
4028
  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;
4029
+ if (typeof this.type !== 'undefined') {
4030
+ toReturn['type'] = this.type;
3951
4031
  }
3952
4032
  return toReturn;
3953
4033
  }
3954
4034
  }
3955
- class ListConnectionsRequestFilters {
4035
+ class ListPromptModuleRequestFilters {
3956
4036
  static fromProto(proto) {
3957
- let m = new ListConnectionsRequestFilters();
4037
+ let m = new ListPromptModuleRequestFilters();
3958
4038
  m = Object.assign(m, proto);
3959
4039
  if (proto.namespace) {
3960
4040
  m.namespace = Namespace.fromProto(proto.namespace);
3961
4041
  }
3962
- if (proto.assistantType) {
3963
- m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3964
- }
3965
4042
  return m;
3966
4043
  }
3967
4044
  constructor(kwargs) {
@@ -3975,18 +4052,18 @@ class ListConnectionsRequestFilters {
3975
4052
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3976
4053
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3977
4054
  }
3978
- if (typeof this.assistantType !== 'undefined') {
3979
- toReturn['assistantType'] = this.assistantType;
3980
- }
3981
4055
  return toReturn;
3982
4056
  }
3983
4057
  }
3984
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
4058
+ class ListConnectionsRequestFilters {
3985
4059
  static fromProto(proto) {
3986
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
4060
+ let m = new ListConnectionsRequestFilters();
3987
4061
  m = Object.assign(m, proto);
3988
- if (proto.type) {
3989
- 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);
3990
4067
  }
3991
4068
  return m;
3992
4069
  }
@@ -3998,8 +4075,11 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3998
4075
  }
3999
4076
  toApiJson() {
4000
4077
  const toReturn = {};
4001
- if (typeof this.type !== 'undefined') {
4002
- 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;
4003
4083
  }
4004
4084
  return toReturn;
4005
4085
  }
@@ -5312,10 +5392,13 @@ class ListTemplateVariablesResponse {
5312
5392
  return toReturn;
5313
5393
  }
5314
5394
  }
5315
- class CreateAssistantRequestOptions {
5395
+ class GenerateChatAnswerRequestOptions {
5316
5396
  static fromProto(proto) {
5317
- let m = new CreateAssistantRequestOptions();
5397
+ let m = new GenerateChatAnswerRequestOptions();
5318
5398
  m = Object.assign(m, proto);
5399
+ if (proto.maxTokens) {
5400
+ m.maxTokens = parseInt(proto.maxTokens, 10);
5401
+ }
5319
5402
  return m;
5320
5403
  }
5321
5404
  constructor(kwargs) {
@@ -5326,15 +5409,21 @@ class CreateAssistantRequestOptions {
5326
5409
  }
5327
5410
  toApiJson() {
5328
5411
  const toReturn = {};
5329
- if (typeof this.applyDefaults !== 'undefined') {
5330
- 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;
5331
5420
  }
5332
5421
  return toReturn;
5333
5422
  }
5334
5423
  }
5335
- class UpsertAssistantRequestOptions {
5424
+ class GetMultiAssistantRequestOptions {
5336
5425
  static fromProto(proto) {
5337
- let m = new UpsertAssistantRequestOptions();
5426
+ let m = new GetMultiAssistantRequestOptions();
5338
5427
  m = Object.assign(m, proto);
5339
5428
  return m;
5340
5429
  }
@@ -5346,15 +5435,15 @@ class UpsertAssistantRequestOptions {
5346
5435
  }
5347
5436
  toApiJson() {
5348
5437
  const toReturn = {};
5349
- if (typeof this.applyDefaults !== 'undefined') {
5350
- toReturn['applyDefaults'] = this.applyDefaults;
5438
+ if (typeof this.skipGoalsHydration !== 'undefined') {
5439
+ toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5351
5440
  }
5352
5441
  return toReturn;
5353
5442
  }
5354
5443
  }
5355
- class CreatePromptModuleVersionRequestOptions {
5444
+ class UpsertAssistantRequestOptions {
5356
5445
  static fromProto(proto) {
5357
- let m = new CreatePromptModuleVersionRequestOptions();
5446
+ let m = new UpsertAssistantRequestOptions();
5358
5447
  m = Object.assign(m, proto);
5359
5448
  return m;
5360
5449
  }
@@ -5366,8 +5455,8 @@ class CreatePromptModuleVersionRequestOptions {
5366
5455
  }
5367
5456
  toApiJson() {
5368
5457
  const toReturn = {};
5369
- if (typeof this.shouldDeploy !== 'undefined') {
5370
- toReturn['shouldDeploy'] = this.shouldDeploy;
5458
+ if (typeof this.applyDefaults !== 'undefined') {
5459
+ toReturn['applyDefaults'] = this.applyDefaults;
5371
5460
  }
5372
5461
  return toReturn;
5373
5462
  }
@@ -5392,9 +5481,9 @@ class GetAssistantRequestOptions {
5392
5481
  return toReturn;
5393
5482
  }
5394
5483
  }
5395
- class GetMultiAssistantRequestOptions {
5484
+ class CreateAssistantRequestOptions {
5396
5485
  static fromProto(proto) {
5397
- let m = new GetMultiAssistantRequestOptions();
5486
+ let m = new CreateAssistantRequestOptions();
5398
5487
  m = Object.assign(m, proto);
5399
5488
  return m;
5400
5489
  }
@@ -5406,18 +5495,18 @@ class GetMultiAssistantRequestOptions {
5406
5495
  }
5407
5496
  toApiJson() {
5408
5497
  const toReturn = {};
5409
- if (typeof this.skipGoalsHydration !== 'undefined') {
5410
- toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5498
+ if (typeof this.applyDefaults !== 'undefined') {
5499
+ toReturn['applyDefaults'] = this.applyDefaults;
5411
5500
  }
5412
5501
  return toReturn;
5413
5502
  }
5414
5503
  }
5415
- class GenerateChatAnswerRequestOptions {
5504
+ class ExecuteFunctionRequestOptions {
5416
5505
  static fromProto(proto) {
5417
- let m = new GenerateChatAnswerRequestOptions();
5506
+ let m = new ExecuteFunctionRequestOptions();
5418
5507
  m = Object.assign(m, proto);
5419
- if (proto.maxTokens) {
5420
- m.maxTokens = parseInt(proto.maxTokens, 10);
5508
+ if (proto.contextInfo) {
5509
+ m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5421
5510
  }
5422
5511
  return m;
5423
5512
  }
@@ -5429,25 +5518,19 @@ class GenerateChatAnswerRequestOptions {
5429
5518
  }
5430
5519
  toApiJson() {
5431
5520
  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;
5521
+ if (typeof this.skipComputeTemplateVariables !== 'undefined') {
5522
+ toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
5437
5523
  }
5438
- if (typeof this.maxTokens !== 'undefined') {
5439
- 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;
5440
5526
  }
5441
5527
  return toReturn;
5442
5528
  }
5443
5529
  }
5444
- class ExecuteFunctionRequestOptions {
5530
+ class CreatePromptModuleVersionRequestOptions {
5445
5531
  static fromProto(proto) {
5446
- let m = new ExecuteFunctionRequestOptions();
5532
+ let m = new CreatePromptModuleVersionRequestOptions();
5447
5533
  m = Object.assign(m, proto);
5448
- if (proto.contextInfo) {
5449
- m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
5450
- }
5451
5534
  return m;
5452
5535
  }
5453
5536
  constructor(kwargs) {
@@ -5458,11 +5541,8 @@ class ExecuteFunctionRequestOptions {
5458
5541
  }
5459
5542
  toApiJson() {
5460
5543
  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;
5544
+ if (typeof this.shouldDeploy !== 'undefined') {
5545
+ toReturn['shouldDeploy'] = this.shouldDeploy;
5466
5546
  }
5467
5547
  return toReturn;
5468
5548
  }
@@ -5551,41 +5631,6 @@ class ListGoalsRequestSortOptions {
5551
5631
  return toReturn;
5552
5632
  }
5553
5633
  }
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
5634
  class UpdateAssistantRequest {
5590
5635
  static fromProto(proto) {
5591
5636
  let m = new UpdateAssistantRequest();
@@ -5935,15 +5980,12 @@ class ValidatePromptModulesResponse {
5935
5980
  return toReturn;
5936
5981
  }
5937
5982
  }
5938
- class ValidationResult {
5983
+ class ValidatePromptModulesResponseValidationResult {
5939
5984
  static fromProto(proto) {
5940
- let m = new ValidationResult();
5985
+ let m = new ValidatePromptModulesResponseValidationResult();
5941
5986
  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);
5987
+ if (proto.namespace) {
5988
+ m.namespace = Namespace.fromProto(proto.namespace);
5947
5989
  }
5948
5990
  return m;
5949
5991
  }
@@ -5955,11 +5997,17 @@ class ValidationResult {
5955
5997
  }
5956
5998
  toApiJson() {
5957
5999
  const toReturn = {};
5958
- if (typeof this.failureAction !== 'undefined') {
5959
- toReturn['failureAction'] = this.failureAction;
6000
+ if (typeof this.id !== 'undefined') {
6001
+ toReturn['id'] = this.id;
5960
6002
  }
5961
- if (typeof this.violations !== 'undefined' && this.violations !== null) {
5962
- 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;
5963
6011
  }
5964
6012
  return toReturn;
5965
6013
  }
@@ -5996,12 +6044,15 @@ class ValidatePromptModuleVersionsResponseValidationResult {
5996
6044
  return toReturn;
5997
6045
  }
5998
6046
  }
5999
- class ValidatePromptModulesResponseValidationResult {
6047
+ class ValidationResult {
6000
6048
  static fromProto(proto) {
6001
- let m = new ValidatePromptModulesResponseValidationResult();
6049
+ let m = new ValidationResult();
6002
6050
  m = Object.assign(m, proto);
6003
- if (proto.namespace) {
6004
- 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);
6005
6056
  }
6006
6057
  return m;
6007
6058
  }
@@ -6013,17 +6064,11 @@ class ValidatePromptModulesResponseValidationResult {
6013
6064
  }
6014
6065
  toApiJson() {
6015
6066
  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;
6067
+ if (typeof this.failureAction !== 'undefined') {
6068
+ toReturn['failureAction'] = this.failureAction;
6024
6069
  }
6025
- if (typeof this.errorMessage !== 'undefined') {
6026
- 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;
6027
6072
  }
6028
6073
  return toReturn;
6029
6074
  }
@@ -6564,5 +6609,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6564
6609
  * Generated bundle index. Do not edit.
6565
6610
  */
6566
6611
 
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 };
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 };
6568
6613
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map