@vendasta/ai-assistants 0.45.0 → 0.46.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.
- package/esm2020/lib/_internal/assistant.api.service.mjs +7 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/function.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +159 -87
- package/esm2020/lib/_internal/objects/function.mjs +4 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-ai-assistants.mjs +167 -87
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +167 -87
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/assistant.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +26 -16
- package/lib/_internal/interfaces/function.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +56 -37
- package/lib/_internal/objects/function.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -447,6 +447,9 @@ class Function {
|
|
|
447
447
|
if (typeof this.authStrategy !== 'undefined' && this.authStrategy !== null) {
|
|
448
448
|
toReturn['authStrategy'] = 'toApiJson' in this.authStrategy ? this.authStrategy.toApiJson() : this.authStrategy;
|
|
449
449
|
}
|
|
450
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
451
|
+
toReturn['mcpId'] = this.mcpId;
|
|
452
|
+
}
|
|
450
453
|
return toReturn;
|
|
451
454
|
}
|
|
452
455
|
}
|
|
@@ -2899,15 +2902,21 @@ class ExecuteFunctionResponse {
|
|
|
2899
2902
|
return toReturn;
|
|
2900
2903
|
}
|
|
2901
2904
|
}
|
|
2902
|
-
class
|
|
2905
|
+
class ListGoalsRequestFilters {
|
|
2903
2906
|
static fromProto(proto) {
|
|
2904
|
-
let m = new
|
|
2907
|
+
let m = new ListGoalsRequestFilters();
|
|
2905
2908
|
m = Object.assign(m, proto);
|
|
2906
2909
|
if (proto.namespace) {
|
|
2907
2910
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2908
2911
|
}
|
|
2909
|
-
if (proto.
|
|
2910
|
-
m.
|
|
2912
|
+
if (proto.type) {
|
|
2913
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
2914
|
+
}
|
|
2915
|
+
if (proto.supportedChannels) {
|
|
2916
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2917
|
+
}
|
|
2918
|
+
if (proto.namespaces) {
|
|
2919
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
2911
2920
|
}
|
|
2912
2921
|
return m;
|
|
2913
2922
|
}
|
|
@@ -2922,21 +2931,27 @@ class ListConnectionsRequestFilters {
|
|
|
2922
2931
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2923
2932
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2924
2933
|
}
|
|
2925
|
-
if (typeof this.
|
|
2926
|
-
toReturn['
|
|
2934
|
+
if (typeof this.type !== 'undefined') {
|
|
2935
|
+
toReturn['type'] = this.type;
|
|
2936
|
+
}
|
|
2937
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
2938
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
2939
|
+
}
|
|
2940
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
2941
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
2927
2942
|
}
|
|
2928
2943
|
return toReturn;
|
|
2929
2944
|
}
|
|
2930
2945
|
}
|
|
2931
|
-
class
|
|
2946
|
+
class ListFunctionRequestFilters {
|
|
2932
2947
|
static fromProto(proto) {
|
|
2933
|
-
let m = new
|
|
2948
|
+
let m = new ListFunctionRequestFilters();
|
|
2934
2949
|
m = Object.assign(m, proto);
|
|
2935
|
-
if (proto.
|
|
2936
|
-
m.
|
|
2950
|
+
if (proto.namespace) {
|
|
2951
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2937
2952
|
}
|
|
2938
|
-
if (proto.
|
|
2939
|
-
m.
|
|
2953
|
+
if (proto.namespaces) {
|
|
2954
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
2940
2955
|
}
|
|
2941
2956
|
return m;
|
|
2942
2957
|
}
|
|
@@ -2948,21 +2963,24 @@ class ListAvailableModelsRequestFilters {
|
|
|
2948
2963
|
}
|
|
2949
2964
|
toApiJson() {
|
|
2950
2965
|
const toReturn = {};
|
|
2951
|
-
if (typeof this.
|
|
2952
|
-
toReturn['
|
|
2966
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2967
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2953
2968
|
}
|
|
2954
|
-
if (typeof this.
|
|
2955
|
-
toReturn['
|
|
2969
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
2970
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
2956
2971
|
}
|
|
2957
2972
|
return toReturn;
|
|
2958
2973
|
}
|
|
2959
2974
|
}
|
|
2960
|
-
class
|
|
2975
|
+
class ListConnectionsRequestFilters {
|
|
2961
2976
|
static fromProto(proto) {
|
|
2962
|
-
let m = new
|
|
2977
|
+
let m = new ListConnectionsRequestFilters();
|
|
2963
2978
|
m = Object.assign(m, proto);
|
|
2964
|
-
if (proto.
|
|
2965
|
-
m.
|
|
2979
|
+
if (proto.namespace) {
|
|
2980
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2981
|
+
}
|
|
2982
|
+
if (proto.assistantType) {
|
|
2983
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
2966
2984
|
}
|
|
2967
2985
|
return m;
|
|
2968
2986
|
}
|
|
@@ -2974,27 +2992,24 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
2974
2992
|
}
|
|
2975
2993
|
toApiJson() {
|
|
2976
2994
|
const toReturn = {};
|
|
2977
|
-
if (typeof this.
|
|
2978
|
-
toReturn['
|
|
2995
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2996
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2997
|
+
}
|
|
2998
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
2999
|
+
toReturn['assistantType'] = this.assistantType;
|
|
2979
3000
|
}
|
|
2980
3001
|
return toReturn;
|
|
2981
3002
|
}
|
|
2982
3003
|
}
|
|
2983
|
-
class
|
|
3004
|
+
class ListAvailableModelsRequestFilters {
|
|
2984
3005
|
static fromProto(proto) {
|
|
2985
|
-
let m = new
|
|
3006
|
+
let m = new ListAvailableModelsRequestFilters();
|
|
2986
3007
|
m = Object.assign(m, proto);
|
|
2987
|
-
if (proto.
|
|
2988
|
-
m.
|
|
3008
|
+
if (proto.vendor) {
|
|
3009
|
+
m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
|
|
2989
3010
|
}
|
|
2990
3011
|
if (proto.type) {
|
|
2991
|
-
m.type = enumStringToValue(
|
|
2992
|
-
}
|
|
2993
|
-
if (proto.supportedChannels) {
|
|
2994
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2995
|
-
}
|
|
2996
|
-
if (proto.namespaces) {
|
|
2997
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3012
|
+
m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
|
|
2998
3013
|
}
|
|
2999
3014
|
return m;
|
|
3000
3015
|
}
|
|
@@ -3006,31 +3021,22 @@ class ListGoalsRequestFilters {
|
|
|
3006
3021
|
}
|
|
3007
3022
|
toApiJson() {
|
|
3008
3023
|
const toReturn = {};
|
|
3009
|
-
if (typeof this.
|
|
3010
|
-
toReturn['
|
|
3024
|
+
if (typeof this.vendor !== 'undefined') {
|
|
3025
|
+
toReturn['vendor'] = this.vendor;
|
|
3011
3026
|
}
|
|
3012
3027
|
if (typeof this.type !== 'undefined') {
|
|
3013
3028
|
toReturn['type'] = this.type;
|
|
3014
3029
|
}
|
|
3015
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
3016
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3017
|
-
}
|
|
3018
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3019
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3020
|
-
}
|
|
3021
3030
|
return toReturn;
|
|
3022
3031
|
}
|
|
3023
3032
|
}
|
|
3024
|
-
class
|
|
3033
|
+
class ListPromptModuleRequestFilters {
|
|
3025
3034
|
static fromProto(proto) {
|
|
3026
|
-
let m = new
|
|
3035
|
+
let m = new ListPromptModuleRequestFilters();
|
|
3027
3036
|
m = Object.assign(m, proto);
|
|
3028
3037
|
if (proto.namespace) {
|
|
3029
3038
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3030
3039
|
}
|
|
3031
|
-
if (proto.type) {
|
|
3032
|
-
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3033
|
-
}
|
|
3034
3040
|
return m;
|
|
3035
3041
|
}
|
|
3036
3042
|
constructor(kwargs) {
|
|
@@ -3044,21 +3050,18 @@ class ListAssistantRequestFilters {
|
|
|
3044
3050
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3045
3051
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3046
3052
|
}
|
|
3047
|
-
if (typeof this.type !== 'undefined') {
|
|
3048
|
-
toReturn['type'] = this.type;
|
|
3049
|
-
}
|
|
3050
3053
|
return toReturn;
|
|
3051
3054
|
}
|
|
3052
3055
|
}
|
|
3053
|
-
class
|
|
3056
|
+
class ListAssistantRequestFilters {
|
|
3054
3057
|
static fromProto(proto) {
|
|
3055
|
-
let m = new
|
|
3058
|
+
let m = new ListAssistantRequestFilters();
|
|
3056
3059
|
m = Object.assign(m, proto);
|
|
3057
3060
|
if (proto.namespace) {
|
|
3058
3061
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3059
3062
|
}
|
|
3060
|
-
if (proto.
|
|
3061
|
-
m.
|
|
3063
|
+
if (proto.type) {
|
|
3064
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3062
3065
|
}
|
|
3063
3066
|
return m;
|
|
3064
3067
|
}
|
|
@@ -3073,18 +3076,18 @@ class ListFunctionRequestFilters {
|
|
|
3073
3076
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3074
3077
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3075
3078
|
}
|
|
3076
|
-
if (typeof this.
|
|
3077
|
-
toReturn['
|
|
3079
|
+
if (typeof this.type !== 'undefined') {
|
|
3080
|
+
toReturn['type'] = this.type;
|
|
3078
3081
|
}
|
|
3079
3082
|
return toReturn;
|
|
3080
3083
|
}
|
|
3081
3084
|
}
|
|
3082
|
-
class
|
|
3085
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
3083
3086
|
static fromProto(proto) {
|
|
3084
|
-
let m = new
|
|
3087
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
3085
3088
|
m = Object.assign(m, proto);
|
|
3086
|
-
if (proto.
|
|
3087
|
-
m.
|
|
3089
|
+
if (proto.type) {
|
|
3090
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3088
3091
|
}
|
|
3089
3092
|
return m;
|
|
3090
3093
|
}
|
|
@@ -3096,8 +3099,8 @@ class ListPromptModuleRequestFilters {
|
|
|
3096
3099
|
}
|
|
3097
3100
|
toApiJson() {
|
|
3098
3101
|
const toReturn = {};
|
|
3099
|
-
if (typeof this.
|
|
3100
|
-
toReturn['
|
|
3102
|
+
if (typeof this.type !== 'undefined') {
|
|
3103
|
+
toReturn['type'] = this.type;
|
|
3101
3104
|
}
|
|
3102
3105
|
return toReturn;
|
|
3103
3106
|
}
|
|
@@ -3597,6 +3600,58 @@ class GetHydratedDeployedPromptModuleVersionResponse {
|
|
|
3597
3600
|
return toReturn;
|
|
3598
3601
|
}
|
|
3599
3602
|
}
|
|
3603
|
+
class GetMultiAssistantRequest {
|
|
3604
|
+
static fromProto(proto) {
|
|
3605
|
+
let m = new GetMultiAssistantRequest();
|
|
3606
|
+
m = Object.assign(m, proto);
|
|
3607
|
+
if (proto.assistantKeys) {
|
|
3608
|
+
m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
|
|
3609
|
+
}
|
|
3610
|
+
if (proto.options) {
|
|
3611
|
+
m.options = GetMultiAssistantRequestOptions.fromProto(proto.options);
|
|
3612
|
+
}
|
|
3613
|
+
return m;
|
|
3614
|
+
}
|
|
3615
|
+
constructor(kwargs) {
|
|
3616
|
+
if (!kwargs) {
|
|
3617
|
+
return;
|
|
3618
|
+
}
|
|
3619
|
+
Object.assign(this, kwargs);
|
|
3620
|
+
}
|
|
3621
|
+
toApiJson() {
|
|
3622
|
+
const toReturn = {};
|
|
3623
|
+
if (typeof this.assistantKeys !== 'undefined' && this.assistantKeys !== null) {
|
|
3624
|
+
toReturn['assistantKeys'] = 'toApiJson' in this.assistantKeys ? this.assistantKeys.toApiJson() : this.assistantKeys;
|
|
3625
|
+
}
|
|
3626
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
3627
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
3628
|
+
}
|
|
3629
|
+
return toReturn;
|
|
3630
|
+
}
|
|
3631
|
+
}
|
|
3632
|
+
class GetMultiAssistantResponse {
|
|
3633
|
+
static fromProto(proto) {
|
|
3634
|
+
let m = new GetMultiAssistantResponse();
|
|
3635
|
+
m = Object.assign(m, proto);
|
|
3636
|
+
if (proto.assistants) {
|
|
3637
|
+
m.assistants = proto.assistants.map(Assistant.fromProto);
|
|
3638
|
+
}
|
|
3639
|
+
return m;
|
|
3640
|
+
}
|
|
3641
|
+
constructor(kwargs) {
|
|
3642
|
+
if (!kwargs) {
|
|
3643
|
+
return;
|
|
3644
|
+
}
|
|
3645
|
+
Object.assign(this, kwargs);
|
|
3646
|
+
}
|
|
3647
|
+
toApiJson() {
|
|
3648
|
+
const toReturn = {};
|
|
3649
|
+
if (typeof this.assistants !== 'undefined' && this.assistants !== null) {
|
|
3650
|
+
toReturn['assistants'] = 'toApiJson' in this.assistants ? this.assistants.toApiJson() : this.assistants;
|
|
3651
|
+
}
|
|
3652
|
+
return toReturn;
|
|
3653
|
+
}
|
|
3654
|
+
}
|
|
3600
3655
|
class GetMultiDeployedPromptVersionRequest {
|
|
3601
3656
|
static fromProto(proto) {
|
|
3602
3657
|
let m = new GetMultiDeployedPromptVersionRequest();
|
|
@@ -4594,9 +4649,9 @@ class ListPromptVersionsResponse {
|
|
|
4594
4649
|
return toReturn;
|
|
4595
4650
|
}
|
|
4596
4651
|
}
|
|
4597
|
-
class
|
|
4652
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
4598
4653
|
static fromProto(proto) {
|
|
4599
|
-
let m = new
|
|
4654
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
4600
4655
|
m = Object.assign(m, proto);
|
|
4601
4656
|
return m;
|
|
4602
4657
|
}
|
|
@@ -4608,8 +4663,28 @@ class UpsertAssistantRequestOptions {
|
|
|
4608
4663
|
}
|
|
4609
4664
|
toApiJson() {
|
|
4610
4665
|
const toReturn = {};
|
|
4611
|
-
if (typeof this.
|
|
4612
|
-
toReturn['
|
|
4666
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
4667
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
4668
|
+
}
|
|
4669
|
+
return toReturn;
|
|
4670
|
+
}
|
|
4671
|
+
}
|
|
4672
|
+
class GetAssistantRequestOptions {
|
|
4673
|
+
static fromProto(proto) {
|
|
4674
|
+
let m = new GetAssistantRequestOptions();
|
|
4675
|
+
m = Object.assign(m, proto);
|
|
4676
|
+
return m;
|
|
4677
|
+
}
|
|
4678
|
+
constructor(kwargs) {
|
|
4679
|
+
if (!kwargs) {
|
|
4680
|
+
return;
|
|
4681
|
+
}
|
|
4682
|
+
Object.assign(this, kwargs);
|
|
4683
|
+
}
|
|
4684
|
+
toApiJson() {
|
|
4685
|
+
const toReturn = {};
|
|
4686
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
4687
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
4613
4688
|
}
|
|
4614
4689
|
return toReturn;
|
|
4615
4690
|
}
|
|
@@ -4634,9 +4709,9 @@ class CreateAssistantRequestOptions {
|
|
|
4634
4709
|
return toReturn;
|
|
4635
4710
|
}
|
|
4636
4711
|
}
|
|
4637
|
-
class
|
|
4712
|
+
class UpsertAssistantRequestOptions {
|
|
4638
4713
|
static fromProto(proto) {
|
|
4639
|
-
let m = new
|
|
4714
|
+
let m = new UpsertAssistantRequestOptions();
|
|
4640
4715
|
m = Object.assign(m, proto);
|
|
4641
4716
|
return m;
|
|
4642
4717
|
}
|
|
@@ -4648,19 +4723,16 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
4648
4723
|
}
|
|
4649
4724
|
toApiJson() {
|
|
4650
4725
|
const toReturn = {};
|
|
4651
|
-
if (typeof this.
|
|
4652
|
-
toReturn['
|
|
4726
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
4727
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
4653
4728
|
}
|
|
4654
4729
|
return toReturn;
|
|
4655
4730
|
}
|
|
4656
4731
|
}
|
|
4657
|
-
class
|
|
4732
|
+
class GetMultiAssistantRequestOptions {
|
|
4658
4733
|
static fromProto(proto) {
|
|
4659
|
-
let m = new
|
|
4734
|
+
let m = new GetMultiAssistantRequestOptions();
|
|
4660
4735
|
m = Object.assign(m, proto);
|
|
4661
|
-
if (proto.maxTokens) {
|
|
4662
|
-
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4663
|
-
}
|
|
4664
4736
|
return m;
|
|
4665
4737
|
}
|
|
4666
4738
|
constructor(kwargs) {
|
|
@@ -4671,22 +4743,19 @@ class GenerateChatAnswerRequestOptions {
|
|
|
4671
4743
|
}
|
|
4672
4744
|
toApiJson() {
|
|
4673
4745
|
const toReturn = {};
|
|
4674
|
-
if (typeof this.
|
|
4675
|
-
toReturn['
|
|
4676
|
-
}
|
|
4677
|
-
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
4678
|
-
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
4679
|
-
}
|
|
4680
|
-
if (typeof this.maxTokens !== 'undefined') {
|
|
4681
|
-
toReturn['maxTokens'] = this.maxTokens;
|
|
4746
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
4747
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
4682
4748
|
}
|
|
4683
4749
|
return toReturn;
|
|
4684
4750
|
}
|
|
4685
4751
|
}
|
|
4686
|
-
class
|
|
4752
|
+
class GenerateChatAnswerRequestOptions {
|
|
4687
4753
|
static fromProto(proto) {
|
|
4688
|
-
let m = new
|
|
4754
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
4689
4755
|
m = Object.assign(m, proto);
|
|
4756
|
+
if (proto.maxTokens) {
|
|
4757
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4758
|
+
}
|
|
4690
4759
|
return m;
|
|
4691
4760
|
}
|
|
4692
4761
|
constructor(kwargs) {
|
|
@@ -4697,8 +4766,14 @@ class GetAssistantRequestOptions {
|
|
|
4697
4766
|
}
|
|
4698
4767
|
toApiJson() {
|
|
4699
4768
|
const toReturn = {};
|
|
4700
|
-
if (typeof this.
|
|
4701
|
-
toReturn['
|
|
4769
|
+
if (typeof this.includeAllCitations !== 'undefined') {
|
|
4770
|
+
toReturn['includeAllCitations'] = this.includeAllCitations;
|
|
4771
|
+
}
|
|
4772
|
+
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
4773
|
+
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
4774
|
+
}
|
|
4775
|
+
if (typeof this.maxTokens !== 'undefined') {
|
|
4776
|
+
toReturn['maxTokens'] = this.maxTokens;
|
|
4702
4777
|
}
|
|
4703
4778
|
return toReturn;
|
|
4704
4779
|
}
|
|
@@ -5010,6 +5085,11 @@ class AssistantApiService {
|
|
|
5010
5085
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetAssistant", request.toApiJson(), this.apiOptions())
|
|
5011
5086
|
.pipe(map(resp => GetAssistantResponse.fromProto(resp)));
|
|
5012
5087
|
}
|
|
5088
|
+
getMultiAssistant(r) {
|
|
5089
|
+
const request = (r.toApiJson) ? r : new GetMultiAssistantRequest(r);
|
|
5090
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetMultiAssistant", request.toApiJson(), this.apiOptions())
|
|
5091
|
+
.pipe(map(resp => GetMultiAssistantResponse.fromProto(resp)));
|
|
5092
|
+
}
|
|
5013
5093
|
buildDefaultAssistant(r) {
|
|
5014
5094
|
const request = (r.toApiJson) ? r : new BuildDefaultAssistantRequest(r);
|
|
5015
5095
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/BuildDefaultAssistant", request.toApiJson(), this.apiOptions())
|
|
@@ -5466,5 +5546,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5466
5546
|
* Generated bundle index. Do not edit.
|
|
5467
5547
|
*/
|
|
5468
5548
|
|
|
5469
|
-
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, VendorModel };
|
|
5549
|
+
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, VendorModel };
|
|
5470
5550
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|