@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
|
@@ -448,6 +448,9 @@ class Function {
|
|
|
448
448
|
if (typeof this.authStrategy !== 'undefined' && this.authStrategy !== null) {
|
|
449
449
|
toReturn['authStrategy'] = 'toApiJson' in this.authStrategy ? this.authStrategy.toApiJson() : this.authStrategy;
|
|
450
450
|
}
|
|
451
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
452
|
+
toReturn['mcpId'] = this.mcpId;
|
|
453
|
+
}
|
|
451
454
|
return toReturn;
|
|
452
455
|
}
|
|
453
456
|
}
|
|
@@ -2900,15 +2903,21 @@ class ExecuteFunctionResponse {
|
|
|
2900
2903
|
return toReturn;
|
|
2901
2904
|
}
|
|
2902
2905
|
}
|
|
2903
|
-
class
|
|
2906
|
+
class ListGoalsRequestFilters {
|
|
2904
2907
|
static fromProto(proto) {
|
|
2905
|
-
let m = new
|
|
2908
|
+
let m = new ListGoalsRequestFilters();
|
|
2906
2909
|
m = Object.assign(m, proto);
|
|
2907
2910
|
if (proto.namespace) {
|
|
2908
2911
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2909
2912
|
}
|
|
2910
|
-
if (proto.
|
|
2911
|
-
m.
|
|
2913
|
+
if (proto.type) {
|
|
2914
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
2915
|
+
}
|
|
2916
|
+
if (proto.supportedChannels) {
|
|
2917
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2918
|
+
}
|
|
2919
|
+
if (proto.namespaces) {
|
|
2920
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
2912
2921
|
}
|
|
2913
2922
|
return m;
|
|
2914
2923
|
}
|
|
@@ -2923,21 +2932,27 @@ class ListConnectionsRequestFilters {
|
|
|
2923
2932
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2924
2933
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2925
2934
|
}
|
|
2926
|
-
if (typeof this.
|
|
2927
|
-
toReturn['
|
|
2935
|
+
if (typeof this.type !== 'undefined') {
|
|
2936
|
+
toReturn['type'] = this.type;
|
|
2937
|
+
}
|
|
2938
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
2939
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
2940
|
+
}
|
|
2941
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
2942
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
2928
2943
|
}
|
|
2929
2944
|
return toReturn;
|
|
2930
2945
|
}
|
|
2931
2946
|
}
|
|
2932
|
-
class
|
|
2947
|
+
class ListFunctionRequestFilters {
|
|
2933
2948
|
static fromProto(proto) {
|
|
2934
|
-
let m = new
|
|
2949
|
+
let m = new ListFunctionRequestFilters();
|
|
2935
2950
|
m = Object.assign(m, proto);
|
|
2936
|
-
if (proto.
|
|
2937
|
-
m.
|
|
2951
|
+
if (proto.namespace) {
|
|
2952
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2938
2953
|
}
|
|
2939
|
-
if (proto.
|
|
2940
|
-
m.
|
|
2954
|
+
if (proto.namespaces) {
|
|
2955
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
2941
2956
|
}
|
|
2942
2957
|
return m;
|
|
2943
2958
|
}
|
|
@@ -2949,21 +2964,24 @@ class ListAvailableModelsRequestFilters {
|
|
|
2949
2964
|
}
|
|
2950
2965
|
toApiJson() {
|
|
2951
2966
|
const toReturn = {};
|
|
2952
|
-
if (typeof this.
|
|
2953
|
-
toReturn['
|
|
2967
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2968
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2954
2969
|
}
|
|
2955
|
-
if (typeof this.
|
|
2956
|
-
toReturn['
|
|
2970
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
2971
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
2957
2972
|
}
|
|
2958
2973
|
return toReturn;
|
|
2959
2974
|
}
|
|
2960
2975
|
}
|
|
2961
|
-
class
|
|
2976
|
+
class ListConnectionsRequestFilters {
|
|
2962
2977
|
static fromProto(proto) {
|
|
2963
|
-
let m = new
|
|
2978
|
+
let m = new ListConnectionsRequestFilters();
|
|
2964
2979
|
m = Object.assign(m, proto);
|
|
2965
|
-
if (proto.
|
|
2966
|
-
m.
|
|
2980
|
+
if (proto.namespace) {
|
|
2981
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2982
|
+
}
|
|
2983
|
+
if (proto.assistantType) {
|
|
2984
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
2967
2985
|
}
|
|
2968
2986
|
return m;
|
|
2969
2987
|
}
|
|
@@ -2975,27 +2993,24 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
2975
2993
|
}
|
|
2976
2994
|
toApiJson() {
|
|
2977
2995
|
const toReturn = {};
|
|
2978
|
-
if (typeof this.
|
|
2979
|
-
toReturn['
|
|
2996
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2997
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2998
|
+
}
|
|
2999
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
3000
|
+
toReturn['assistantType'] = this.assistantType;
|
|
2980
3001
|
}
|
|
2981
3002
|
return toReturn;
|
|
2982
3003
|
}
|
|
2983
3004
|
}
|
|
2984
|
-
class
|
|
3005
|
+
class ListAvailableModelsRequestFilters {
|
|
2985
3006
|
static fromProto(proto) {
|
|
2986
|
-
let m = new
|
|
3007
|
+
let m = new ListAvailableModelsRequestFilters();
|
|
2987
3008
|
m = Object.assign(m, proto);
|
|
2988
|
-
if (proto.
|
|
2989
|
-
m.
|
|
3009
|
+
if (proto.vendor) {
|
|
3010
|
+
m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
|
|
2990
3011
|
}
|
|
2991
3012
|
if (proto.type) {
|
|
2992
|
-
m.type = enumStringToValue(
|
|
2993
|
-
}
|
|
2994
|
-
if (proto.supportedChannels) {
|
|
2995
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2996
|
-
}
|
|
2997
|
-
if (proto.namespaces) {
|
|
2998
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3013
|
+
m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
|
|
2999
3014
|
}
|
|
3000
3015
|
return m;
|
|
3001
3016
|
}
|
|
@@ -3007,31 +3022,22 @@ class ListGoalsRequestFilters {
|
|
|
3007
3022
|
}
|
|
3008
3023
|
toApiJson() {
|
|
3009
3024
|
const toReturn = {};
|
|
3010
|
-
if (typeof this.
|
|
3011
|
-
toReturn['
|
|
3025
|
+
if (typeof this.vendor !== 'undefined') {
|
|
3026
|
+
toReturn['vendor'] = this.vendor;
|
|
3012
3027
|
}
|
|
3013
3028
|
if (typeof this.type !== 'undefined') {
|
|
3014
3029
|
toReturn['type'] = this.type;
|
|
3015
3030
|
}
|
|
3016
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
3017
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3018
|
-
}
|
|
3019
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3020
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3021
|
-
}
|
|
3022
3031
|
return toReturn;
|
|
3023
3032
|
}
|
|
3024
3033
|
}
|
|
3025
|
-
class
|
|
3034
|
+
class ListPromptModuleRequestFilters {
|
|
3026
3035
|
static fromProto(proto) {
|
|
3027
|
-
let m = new
|
|
3036
|
+
let m = new ListPromptModuleRequestFilters();
|
|
3028
3037
|
m = Object.assign(m, proto);
|
|
3029
3038
|
if (proto.namespace) {
|
|
3030
3039
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3031
3040
|
}
|
|
3032
|
-
if (proto.type) {
|
|
3033
|
-
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3034
|
-
}
|
|
3035
3041
|
return m;
|
|
3036
3042
|
}
|
|
3037
3043
|
constructor(kwargs) {
|
|
@@ -3045,21 +3051,18 @@ class ListAssistantRequestFilters {
|
|
|
3045
3051
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3046
3052
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3047
3053
|
}
|
|
3048
|
-
if (typeof this.type !== 'undefined') {
|
|
3049
|
-
toReturn['type'] = this.type;
|
|
3050
|
-
}
|
|
3051
3054
|
return toReturn;
|
|
3052
3055
|
}
|
|
3053
3056
|
}
|
|
3054
|
-
class
|
|
3057
|
+
class ListAssistantRequestFilters {
|
|
3055
3058
|
static fromProto(proto) {
|
|
3056
|
-
let m = new
|
|
3059
|
+
let m = new ListAssistantRequestFilters();
|
|
3057
3060
|
m = Object.assign(m, proto);
|
|
3058
3061
|
if (proto.namespace) {
|
|
3059
3062
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3060
3063
|
}
|
|
3061
|
-
if (proto.
|
|
3062
|
-
m.
|
|
3064
|
+
if (proto.type) {
|
|
3065
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3063
3066
|
}
|
|
3064
3067
|
return m;
|
|
3065
3068
|
}
|
|
@@ -3074,18 +3077,18 @@ class ListFunctionRequestFilters {
|
|
|
3074
3077
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3075
3078
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3076
3079
|
}
|
|
3077
|
-
if (typeof this.
|
|
3078
|
-
toReturn['
|
|
3080
|
+
if (typeof this.type !== 'undefined') {
|
|
3081
|
+
toReturn['type'] = this.type;
|
|
3079
3082
|
}
|
|
3080
3083
|
return toReturn;
|
|
3081
3084
|
}
|
|
3082
3085
|
}
|
|
3083
|
-
class
|
|
3086
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
3084
3087
|
static fromProto(proto) {
|
|
3085
|
-
let m = new
|
|
3088
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
3086
3089
|
m = Object.assign(m, proto);
|
|
3087
|
-
if (proto.
|
|
3088
|
-
m.
|
|
3090
|
+
if (proto.type) {
|
|
3091
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3089
3092
|
}
|
|
3090
3093
|
return m;
|
|
3091
3094
|
}
|
|
@@ -3097,8 +3100,8 @@ class ListPromptModuleRequestFilters {
|
|
|
3097
3100
|
}
|
|
3098
3101
|
toApiJson() {
|
|
3099
3102
|
const toReturn = {};
|
|
3100
|
-
if (typeof this.
|
|
3101
|
-
toReturn['
|
|
3103
|
+
if (typeof this.type !== 'undefined') {
|
|
3104
|
+
toReturn['type'] = this.type;
|
|
3102
3105
|
}
|
|
3103
3106
|
return toReturn;
|
|
3104
3107
|
}
|
|
@@ -3598,6 +3601,58 @@ class GetHydratedDeployedPromptModuleVersionResponse {
|
|
|
3598
3601
|
return toReturn;
|
|
3599
3602
|
}
|
|
3600
3603
|
}
|
|
3604
|
+
class GetMultiAssistantRequest {
|
|
3605
|
+
static fromProto(proto) {
|
|
3606
|
+
let m = new GetMultiAssistantRequest();
|
|
3607
|
+
m = Object.assign(m, proto);
|
|
3608
|
+
if (proto.assistantKeys) {
|
|
3609
|
+
m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
|
|
3610
|
+
}
|
|
3611
|
+
if (proto.options) {
|
|
3612
|
+
m.options = GetMultiAssistantRequestOptions.fromProto(proto.options);
|
|
3613
|
+
}
|
|
3614
|
+
return m;
|
|
3615
|
+
}
|
|
3616
|
+
constructor(kwargs) {
|
|
3617
|
+
if (!kwargs) {
|
|
3618
|
+
return;
|
|
3619
|
+
}
|
|
3620
|
+
Object.assign(this, kwargs);
|
|
3621
|
+
}
|
|
3622
|
+
toApiJson() {
|
|
3623
|
+
const toReturn = {};
|
|
3624
|
+
if (typeof this.assistantKeys !== 'undefined' && this.assistantKeys !== null) {
|
|
3625
|
+
toReturn['assistantKeys'] = 'toApiJson' in this.assistantKeys ? this.assistantKeys.toApiJson() : this.assistantKeys;
|
|
3626
|
+
}
|
|
3627
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
3628
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
3629
|
+
}
|
|
3630
|
+
return toReturn;
|
|
3631
|
+
}
|
|
3632
|
+
}
|
|
3633
|
+
class GetMultiAssistantResponse {
|
|
3634
|
+
static fromProto(proto) {
|
|
3635
|
+
let m = new GetMultiAssistantResponse();
|
|
3636
|
+
m = Object.assign(m, proto);
|
|
3637
|
+
if (proto.assistants) {
|
|
3638
|
+
m.assistants = proto.assistants.map(Assistant.fromProto);
|
|
3639
|
+
}
|
|
3640
|
+
return m;
|
|
3641
|
+
}
|
|
3642
|
+
constructor(kwargs) {
|
|
3643
|
+
if (!kwargs) {
|
|
3644
|
+
return;
|
|
3645
|
+
}
|
|
3646
|
+
Object.assign(this, kwargs);
|
|
3647
|
+
}
|
|
3648
|
+
toApiJson() {
|
|
3649
|
+
const toReturn = {};
|
|
3650
|
+
if (typeof this.assistants !== 'undefined' && this.assistants !== null) {
|
|
3651
|
+
toReturn['assistants'] = 'toApiJson' in this.assistants ? this.assistants.toApiJson() : this.assistants;
|
|
3652
|
+
}
|
|
3653
|
+
return toReturn;
|
|
3654
|
+
}
|
|
3655
|
+
}
|
|
3601
3656
|
class GetMultiDeployedPromptVersionRequest {
|
|
3602
3657
|
static fromProto(proto) {
|
|
3603
3658
|
let m = new GetMultiDeployedPromptVersionRequest();
|
|
@@ -4595,9 +4650,9 @@ class ListPromptVersionsResponse {
|
|
|
4595
4650
|
return toReturn;
|
|
4596
4651
|
}
|
|
4597
4652
|
}
|
|
4598
|
-
class
|
|
4653
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
4599
4654
|
static fromProto(proto) {
|
|
4600
|
-
let m = new
|
|
4655
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
4601
4656
|
m = Object.assign(m, proto);
|
|
4602
4657
|
return m;
|
|
4603
4658
|
}
|
|
@@ -4609,8 +4664,28 @@ class UpsertAssistantRequestOptions {
|
|
|
4609
4664
|
}
|
|
4610
4665
|
toApiJson() {
|
|
4611
4666
|
const toReturn = {};
|
|
4612
|
-
if (typeof this.
|
|
4613
|
-
toReturn['
|
|
4667
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
4668
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
4669
|
+
}
|
|
4670
|
+
return toReturn;
|
|
4671
|
+
}
|
|
4672
|
+
}
|
|
4673
|
+
class GetAssistantRequestOptions {
|
|
4674
|
+
static fromProto(proto) {
|
|
4675
|
+
let m = new GetAssistantRequestOptions();
|
|
4676
|
+
m = Object.assign(m, proto);
|
|
4677
|
+
return m;
|
|
4678
|
+
}
|
|
4679
|
+
constructor(kwargs) {
|
|
4680
|
+
if (!kwargs) {
|
|
4681
|
+
return;
|
|
4682
|
+
}
|
|
4683
|
+
Object.assign(this, kwargs);
|
|
4684
|
+
}
|
|
4685
|
+
toApiJson() {
|
|
4686
|
+
const toReturn = {};
|
|
4687
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
4688
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
4614
4689
|
}
|
|
4615
4690
|
return toReturn;
|
|
4616
4691
|
}
|
|
@@ -4635,9 +4710,9 @@ class CreateAssistantRequestOptions {
|
|
|
4635
4710
|
return toReturn;
|
|
4636
4711
|
}
|
|
4637
4712
|
}
|
|
4638
|
-
class
|
|
4713
|
+
class UpsertAssistantRequestOptions {
|
|
4639
4714
|
static fromProto(proto) {
|
|
4640
|
-
let m = new
|
|
4715
|
+
let m = new UpsertAssistantRequestOptions();
|
|
4641
4716
|
m = Object.assign(m, proto);
|
|
4642
4717
|
return m;
|
|
4643
4718
|
}
|
|
@@ -4649,19 +4724,16 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
4649
4724
|
}
|
|
4650
4725
|
toApiJson() {
|
|
4651
4726
|
const toReturn = {};
|
|
4652
|
-
if (typeof this.
|
|
4653
|
-
toReturn['
|
|
4727
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
4728
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
4654
4729
|
}
|
|
4655
4730
|
return toReturn;
|
|
4656
4731
|
}
|
|
4657
4732
|
}
|
|
4658
|
-
class
|
|
4733
|
+
class GetMultiAssistantRequestOptions {
|
|
4659
4734
|
static fromProto(proto) {
|
|
4660
|
-
let m = new
|
|
4735
|
+
let m = new GetMultiAssistantRequestOptions();
|
|
4661
4736
|
m = Object.assign(m, proto);
|
|
4662
|
-
if (proto.maxTokens) {
|
|
4663
|
-
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4664
|
-
}
|
|
4665
4737
|
return m;
|
|
4666
4738
|
}
|
|
4667
4739
|
constructor(kwargs) {
|
|
@@ -4672,22 +4744,19 @@ class GenerateChatAnswerRequestOptions {
|
|
|
4672
4744
|
}
|
|
4673
4745
|
toApiJson() {
|
|
4674
4746
|
const toReturn = {};
|
|
4675
|
-
if (typeof this.
|
|
4676
|
-
toReturn['
|
|
4677
|
-
}
|
|
4678
|
-
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
4679
|
-
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
4680
|
-
}
|
|
4681
|
-
if (typeof this.maxTokens !== 'undefined') {
|
|
4682
|
-
toReturn['maxTokens'] = this.maxTokens;
|
|
4747
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
4748
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
4683
4749
|
}
|
|
4684
4750
|
return toReturn;
|
|
4685
4751
|
}
|
|
4686
4752
|
}
|
|
4687
|
-
class
|
|
4753
|
+
class GenerateChatAnswerRequestOptions {
|
|
4688
4754
|
static fromProto(proto) {
|
|
4689
|
-
let m = new
|
|
4755
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
4690
4756
|
m = Object.assign(m, proto);
|
|
4757
|
+
if (proto.maxTokens) {
|
|
4758
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4759
|
+
}
|
|
4691
4760
|
return m;
|
|
4692
4761
|
}
|
|
4693
4762
|
constructor(kwargs) {
|
|
@@ -4698,8 +4767,14 @@ class GetAssistantRequestOptions {
|
|
|
4698
4767
|
}
|
|
4699
4768
|
toApiJson() {
|
|
4700
4769
|
const toReturn = {};
|
|
4701
|
-
if (typeof this.
|
|
4702
|
-
toReturn['
|
|
4770
|
+
if (typeof this.includeAllCitations !== 'undefined') {
|
|
4771
|
+
toReturn['includeAllCitations'] = this.includeAllCitations;
|
|
4772
|
+
}
|
|
4773
|
+
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
4774
|
+
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
4775
|
+
}
|
|
4776
|
+
if (typeof this.maxTokens !== 'undefined') {
|
|
4777
|
+
toReturn['maxTokens'] = this.maxTokens;
|
|
4703
4778
|
}
|
|
4704
4779
|
return toReturn;
|
|
4705
4780
|
}
|
|
@@ -5011,6 +5086,11 @@ class AssistantApiService {
|
|
|
5011
5086
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetAssistant", request.toApiJson(), this.apiOptions())
|
|
5012
5087
|
.pipe(map(resp => GetAssistantResponse.fromProto(resp)));
|
|
5013
5088
|
}
|
|
5089
|
+
getMultiAssistant(r) {
|
|
5090
|
+
const request = (r.toApiJson) ? r : new GetMultiAssistantRequest(r);
|
|
5091
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetMultiAssistant", request.toApiJson(), this.apiOptions())
|
|
5092
|
+
.pipe(map(resp => GetMultiAssistantResponse.fromProto(resp)));
|
|
5093
|
+
}
|
|
5014
5094
|
buildDefaultAssistant(r) {
|
|
5015
5095
|
const request = (r.toApiJson) ? r : new BuildDefaultAssistantRequest(r);
|
|
5016
5096
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/BuildDefaultAssistant", request.toApiJson(), this.apiOptions())
|
|
@@ -5467,5 +5547,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5467
5547
|
* Generated bundle index. Do not edit.
|
|
5468
5548
|
*/
|
|
5469
5549
|
|
|
5470
|
-
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 };
|
|
5550
|
+
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 };
|
|
5471
5551
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|