@vendasta/ai-assistants 0.58.0 → 0.59.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 +12 -2
- package/esm2020/lib/_internal/index.mjs +1 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +452 -477
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-ai-assistants.mjs +431 -520
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +431 -520
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/assistant.api.service.d.ts +4 -2
- package/lib/_internal/index.d.ts +0 -1
- package/lib/_internal/interfaces/api.interface.d.ts +90 -89
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +144 -158
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
- package/esm2020/lib/_internal/prompt.api.service.mjs +0 -81
- package/lib/_internal/prompt.api.service.d.ts +0 -23
|
@@ -2827,6 +2827,32 @@ class SetAssistantConnectionsRequestConnectionState {
|
|
|
2827
2827
|
return toReturn;
|
|
2828
2828
|
}
|
|
2829
2829
|
}
|
|
2830
|
+
class StreamingGenerateChatAnswerResponseContentChunk {
|
|
2831
|
+
static fromProto(proto) {
|
|
2832
|
+
let m = new StreamingGenerateChatAnswerResponseContentChunk();
|
|
2833
|
+
m = Object.assign(m, proto);
|
|
2834
|
+
if (proto.contentType) {
|
|
2835
|
+
m.contentType = enumStringToValue(StreamingGenerateChatAnswerResponseContentType, proto.contentType);
|
|
2836
|
+
}
|
|
2837
|
+
return m;
|
|
2838
|
+
}
|
|
2839
|
+
constructor(kwargs) {
|
|
2840
|
+
if (!kwargs) {
|
|
2841
|
+
return;
|
|
2842
|
+
}
|
|
2843
|
+
Object.assign(this, kwargs);
|
|
2844
|
+
}
|
|
2845
|
+
toApiJson() {
|
|
2846
|
+
const toReturn = {};
|
|
2847
|
+
if (typeof this.content !== 'undefined') {
|
|
2848
|
+
toReturn['content'] = this.content;
|
|
2849
|
+
}
|
|
2850
|
+
if (typeof this.contentType !== 'undefined') {
|
|
2851
|
+
toReturn['contentType'] = this.contentType;
|
|
2852
|
+
}
|
|
2853
|
+
return toReturn;
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2830
2856
|
class CreateAssistantRequest {
|
|
2831
2857
|
static fromProto(proto) {
|
|
2832
2858
|
let m = new CreateAssistantRequest();
|
|
@@ -3015,32 +3041,6 @@ class CreatePromptModuleVersionRequest {
|
|
|
3015
3041
|
return toReturn;
|
|
3016
3042
|
}
|
|
3017
3043
|
}
|
|
3018
|
-
class CreatePromptRequest {
|
|
3019
|
-
static fromProto(proto) {
|
|
3020
|
-
let m = new CreatePromptRequest();
|
|
3021
|
-
m = Object.assign(m, proto);
|
|
3022
|
-
return m;
|
|
3023
|
-
}
|
|
3024
|
-
constructor(kwargs) {
|
|
3025
|
-
if (!kwargs) {
|
|
3026
|
-
return;
|
|
3027
|
-
}
|
|
3028
|
-
Object.assign(this, kwargs);
|
|
3029
|
-
}
|
|
3030
|
-
toApiJson() {
|
|
3031
|
-
const toReturn = {};
|
|
3032
|
-
if (typeof this.id !== 'undefined') {
|
|
3033
|
-
toReturn['id'] = this.id;
|
|
3034
|
-
}
|
|
3035
|
-
if (typeof this.content !== 'undefined') {
|
|
3036
|
-
toReturn['content'] = this.content;
|
|
3037
|
-
}
|
|
3038
|
-
if (typeof this.description !== 'undefined') {
|
|
3039
|
-
toReturn['description'] = this.description;
|
|
3040
|
-
}
|
|
3041
|
-
return toReturn;
|
|
3042
|
-
}
|
|
3043
|
-
}
|
|
3044
3044
|
class DeleteAssistantRequest {
|
|
3045
3045
|
static fromProto(proto) {
|
|
3046
3046
|
let m = new DeleteAssistantRequest();
|
|
@@ -3180,26 +3180,6 @@ class DeletePromptModuleRequest {
|
|
|
3180
3180
|
return toReturn;
|
|
3181
3181
|
}
|
|
3182
3182
|
}
|
|
3183
|
-
class DeletePromptRequest {
|
|
3184
|
-
static fromProto(proto) {
|
|
3185
|
-
let m = new DeletePromptRequest();
|
|
3186
|
-
m = Object.assign(m, proto);
|
|
3187
|
-
return m;
|
|
3188
|
-
}
|
|
3189
|
-
constructor(kwargs) {
|
|
3190
|
-
if (!kwargs) {
|
|
3191
|
-
return;
|
|
3192
|
-
}
|
|
3193
|
-
Object.assign(this, kwargs);
|
|
3194
|
-
}
|
|
3195
|
-
toApiJson() {
|
|
3196
|
-
const toReturn = {};
|
|
3197
|
-
if (typeof this.id !== 'undefined') {
|
|
3198
|
-
toReturn['id'] = this.id;
|
|
3199
|
-
}
|
|
3200
|
-
return toReturn;
|
|
3201
|
-
}
|
|
3202
|
-
}
|
|
3203
3183
|
class DeployPromptModuleRequest {
|
|
3204
3184
|
static fromProto(proto) {
|
|
3205
3185
|
let m = new DeployPromptModuleRequest();
|
|
@@ -3229,10 +3209,13 @@ class DeployPromptModuleRequest {
|
|
|
3229
3209
|
return toReturn;
|
|
3230
3210
|
}
|
|
3231
3211
|
}
|
|
3232
|
-
class
|
|
3212
|
+
class StreamingGenerateChatAnswerResponseErrorChunk {
|
|
3233
3213
|
static fromProto(proto) {
|
|
3234
|
-
let m = new
|
|
3214
|
+
let m = new StreamingGenerateChatAnswerResponseErrorChunk();
|
|
3235
3215
|
m = Object.assign(m, proto);
|
|
3216
|
+
if (proto.errorDetails) {
|
|
3217
|
+
m.errorDetails = proto.errorDetails.map(KeyValuePair.fromProto);
|
|
3218
|
+
}
|
|
3236
3219
|
return m;
|
|
3237
3220
|
}
|
|
3238
3221
|
constructor(kwargs) {
|
|
@@ -3243,11 +3226,17 @@ class DeployPromptRequest {
|
|
|
3243
3226
|
}
|
|
3244
3227
|
toApiJson() {
|
|
3245
3228
|
const toReturn = {};
|
|
3246
|
-
if (typeof this.
|
|
3247
|
-
toReturn['
|
|
3229
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
3230
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
3248
3231
|
}
|
|
3249
|
-
if (typeof this.
|
|
3250
|
-
toReturn['
|
|
3232
|
+
if (typeof this.errorCode !== 'undefined') {
|
|
3233
|
+
toReturn['errorCode'] = this.errorCode;
|
|
3234
|
+
}
|
|
3235
|
+
if (typeof this.errorDetails !== 'undefined' && this.errorDetails !== null) {
|
|
3236
|
+
toReturn['errorDetails'] = 'toApiJson' in this.errorDetails ? this.errorDetails.toApiJson() : this.errorDetails;
|
|
3237
|
+
}
|
|
3238
|
+
if (typeof this.resumable !== 'undefined') {
|
|
3239
|
+
toReturn['resumable'] = this.resumable;
|
|
3251
3240
|
}
|
|
3252
3241
|
return toReturn;
|
|
3253
3242
|
}
|
|
@@ -3316,15 +3305,27 @@ class ExecuteFunctionResponse {
|
|
|
3316
3305
|
return toReturn;
|
|
3317
3306
|
}
|
|
3318
3307
|
}
|
|
3319
|
-
class
|
|
3308
|
+
class ListGoalsRequestFilters {
|
|
3320
3309
|
static fromProto(proto) {
|
|
3321
|
-
let m = new
|
|
3310
|
+
let m = new ListGoalsRequestFilters();
|
|
3322
3311
|
m = Object.assign(m, proto);
|
|
3323
3312
|
if (proto.namespace) {
|
|
3324
3313
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3325
3314
|
}
|
|
3326
3315
|
if (proto.type) {
|
|
3327
|
-
m.type = enumStringToValue(
|
|
3316
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
3317
|
+
}
|
|
3318
|
+
if (proto.supportedChannels) {
|
|
3319
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3320
|
+
}
|
|
3321
|
+
if (proto.namespaces) {
|
|
3322
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3323
|
+
}
|
|
3324
|
+
if (proto.constraintFilters) {
|
|
3325
|
+
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3326
|
+
}
|
|
3327
|
+
if (proto.sortOptions) {
|
|
3328
|
+
m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
|
|
3328
3329
|
}
|
|
3329
3330
|
return m;
|
|
3330
3331
|
}
|
|
@@ -3342,18 +3343,33 @@ class ListAssistantRequestFilters {
|
|
|
3342
3343
|
if (typeof this.type !== 'undefined') {
|
|
3343
3344
|
toReturn['type'] = this.type;
|
|
3344
3345
|
}
|
|
3346
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
3347
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3348
|
+
}
|
|
3349
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3350
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3351
|
+
}
|
|
3352
|
+
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3353
|
+
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3354
|
+
}
|
|
3355
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
3356
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
3357
|
+
}
|
|
3358
|
+
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
3359
|
+
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
3360
|
+
}
|
|
3361
|
+
if (typeof this.omitOverrides !== 'undefined') {
|
|
3362
|
+
toReturn['omitOverrides'] = this.omitOverrides;
|
|
3363
|
+
}
|
|
3345
3364
|
return toReturn;
|
|
3346
3365
|
}
|
|
3347
3366
|
}
|
|
3348
|
-
class
|
|
3367
|
+
class ListPromptModuleRequestFilters {
|
|
3349
3368
|
static fromProto(proto) {
|
|
3350
|
-
let m = new
|
|
3369
|
+
let m = new ListPromptModuleRequestFilters();
|
|
3351
3370
|
m = Object.assign(m, proto);
|
|
3352
|
-
if (proto.
|
|
3353
|
-
m.
|
|
3354
|
-
}
|
|
3355
|
-
if (proto.type) {
|
|
3356
|
-
m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
|
|
3371
|
+
if (proto.namespace) {
|
|
3372
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3357
3373
|
}
|
|
3358
3374
|
return m;
|
|
3359
3375
|
}
|
|
@@ -3365,24 +3381,21 @@ class ListAvailableModelsRequestFilters {
|
|
|
3365
3381
|
}
|
|
3366
3382
|
toApiJson() {
|
|
3367
3383
|
const toReturn = {};
|
|
3368
|
-
if (typeof this.
|
|
3369
|
-
toReturn['
|
|
3370
|
-
}
|
|
3371
|
-
if (typeof this.type !== 'undefined') {
|
|
3372
|
-
toReturn['type'] = this.type;
|
|
3384
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3385
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3373
3386
|
}
|
|
3374
3387
|
return toReturn;
|
|
3375
3388
|
}
|
|
3376
3389
|
}
|
|
3377
|
-
class
|
|
3390
|
+
class ListAssistantRequestFilters {
|
|
3378
3391
|
static fromProto(proto) {
|
|
3379
|
-
let m = new
|
|
3392
|
+
let m = new ListAssistantRequestFilters();
|
|
3380
3393
|
m = Object.assign(m, proto);
|
|
3381
3394
|
if (proto.namespace) {
|
|
3382
3395
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3383
3396
|
}
|
|
3384
|
-
if (proto.
|
|
3385
|
-
m.
|
|
3397
|
+
if (proto.type) {
|
|
3398
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3386
3399
|
}
|
|
3387
3400
|
return m;
|
|
3388
3401
|
}
|
|
@@ -3397,19 +3410,22 @@ class ListConnectionsRequestFilters {
|
|
|
3397
3410
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3398
3411
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3399
3412
|
}
|
|
3400
|
-
if (typeof this.
|
|
3401
|
-
toReturn['
|
|
3413
|
+
if (typeof this.type !== 'undefined') {
|
|
3414
|
+
toReturn['type'] = this.type;
|
|
3402
3415
|
}
|
|
3403
3416
|
return toReturn;
|
|
3404
3417
|
}
|
|
3405
3418
|
}
|
|
3406
|
-
class
|
|
3419
|
+
class ListConnectionsRequestFilters {
|
|
3407
3420
|
static fromProto(proto) {
|
|
3408
|
-
let m = new
|
|
3421
|
+
let m = new ListConnectionsRequestFilters();
|
|
3409
3422
|
m = Object.assign(m, proto);
|
|
3410
3423
|
if (proto.namespace) {
|
|
3411
3424
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3412
3425
|
}
|
|
3426
|
+
if (proto.assistantType) {
|
|
3427
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
3428
|
+
}
|
|
3413
3429
|
return m;
|
|
3414
3430
|
}
|
|
3415
3431
|
constructor(kwargs) {
|
|
@@ -3423,31 +3439,25 @@ class ListPromptModuleRequestFilters {
|
|
|
3423
3439
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3424
3440
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3425
3441
|
}
|
|
3442
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
3443
|
+
toReturn['assistantType'] = this.assistantType;
|
|
3444
|
+
}
|
|
3426
3445
|
return toReturn;
|
|
3427
3446
|
}
|
|
3428
3447
|
}
|
|
3429
|
-
class
|
|
3448
|
+
class ListFunctionRequestFilters {
|
|
3430
3449
|
static fromProto(proto) {
|
|
3431
|
-
let m = new
|
|
3450
|
+
let m = new ListFunctionRequestFilters();
|
|
3432
3451
|
m = Object.assign(m, proto);
|
|
3433
3452
|
if (proto.namespace) {
|
|
3434
3453
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3435
3454
|
}
|
|
3436
|
-
if (proto.type) {
|
|
3437
|
-
m.type = enumStringToValue(GoalType, proto.type);
|
|
3438
|
-
}
|
|
3439
|
-
if (proto.supportedChannels) {
|
|
3440
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3441
|
-
}
|
|
3442
3455
|
if (proto.namespaces) {
|
|
3443
3456
|
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3444
3457
|
}
|
|
3445
3458
|
if (proto.constraintFilters) {
|
|
3446
3459
|
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3447
3460
|
}
|
|
3448
|
-
if (proto.sortOptions) {
|
|
3449
|
-
m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
|
|
3450
|
-
}
|
|
3451
3461
|
return m;
|
|
3452
3462
|
}
|
|
3453
3463
|
constructor(kwargs) {
|
|
@@ -3461,26 +3471,43 @@ class ListGoalsRequestFilters {
|
|
|
3461
3471
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3462
3472
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3463
3473
|
}
|
|
3464
|
-
if (typeof this.type !== 'undefined') {
|
|
3465
|
-
toReturn['type'] = this.type;
|
|
3466
|
-
}
|
|
3467
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
3468
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3469
|
-
}
|
|
3470
3474
|
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3471
3475
|
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3472
3476
|
}
|
|
3477
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
3478
|
+
toReturn['mcpId'] = this.mcpId;
|
|
3479
|
+
}
|
|
3473
3480
|
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3474
3481
|
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3475
3482
|
}
|
|
3476
|
-
|
|
3477
|
-
|
|
3483
|
+
return toReturn;
|
|
3484
|
+
}
|
|
3485
|
+
}
|
|
3486
|
+
class ListAvailableModelsRequestFilters {
|
|
3487
|
+
static fromProto(proto) {
|
|
3488
|
+
let m = new ListAvailableModelsRequestFilters();
|
|
3489
|
+
m = Object.assign(m, proto);
|
|
3490
|
+
if (proto.vendor) {
|
|
3491
|
+
m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
|
|
3478
3492
|
}
|
|
3479
|
-
if (
|
|
3480
|
-
|
|
3493
|
+
if (proto.type) {
|
|
3494
|
+
m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
|
|
3481
3495
|
}
|
|
3482
|
-
|
|
3483
|
-
|
|
3496
|
+
return m;
|
|
3497
|
+
}
|
|
3498
|
+
constructor(kwargs) {
|
|
3499
|
+
if (!kwargs) {
|
|
3500
|
+
return;
|
|
3501
|
+
}
|
|
3502
|
+
Object.assign(this, kwargs);
|
|
3503
|
+
}
|
|
3504
|
+
toApiJson() {
|
|
3505
|
+
const toReturn = {};
|
|
3506
|
+
if (typeof this.vendor !== 'undefined') {
|
|
3507
|
+
toReturn['vendor'] = this.vendor;
|
|
3508
|
+
}
|
|
3509
|
+
if (typeof this.type !== 'undefined') {
|
|
3510
|
+
toReturn['type'] = this.type;
|
|
3484
3511
|
}
|
|
3485
3512
|
return toReturn;
|
|
3486
3513
|
}
|
|
@@ -3508,19 +3535,59 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
3508
3535
|
return toReturn;
|
|
3509
3536
|
}
|
|
3510
3537
|
}
|
|
3511
|
-
class
|
|
3538
|
+
class StreamingGenerateChatAnswerResponseFinalChunk {
|
|
3512
3539
|
static fromProto(proto) {
|
|
3513
|
-
let m = new
|
|
3540
|
+
let m = new StreamingGenerateChatAnswerResponseFinalChunk();
|
|
3514
3541
|
m = Object.assign(m, proto);
|
|
3515
|
-
|
|
3516
|
-
|
|
3542
|
+
return m;
|
|
3543
|
+
}
|
|
3544
|
+
constructor(kwargs) {
|
|
3545
|
+
if (!kwargs) {
|
|
3546
|
+
return;
|
|
3517
3547
|
}
|
|
3518
|
-
|
|
3519
|
-
|
|
3548
|
+
Object.assign(this, kwargs);
|
|
3549
|
+
}
|
|
3550
|
+
toApiJson() {
|
|
3551
|
+
const toReturn = {};
|
|
3552
|
+
return toReturn;
|
|
3553
|
+
}
|
|
3554
|
+
}
|
|
3555
|
+
class StreamingGenerateChatAnswerResponseFunctionCompleteChunk {
|
|
3556
|
+
static fromProto(proto) {
|
|
3557
|
+
let m = new StreamingGenerateChatAnswerResponseFunctionCompleteChunk();
|
|
3558
|
+
m = Object.assign(m, proto);
|
|
3559
|
+
if (proto.metadata) {
|
|
3560
|
+
m.metadata = proto.metadata.map(KeyValuePair.fromProto);
|
|
3520
3561
|
}
|
|
3521
|
-
|
|
3522
|
-
|
|
3562
|
+
return m;
|
|
3563
|
+
}
|
|
3564
|
+
constructor(kwargs) {
|
|
3565
|
+
if (!kwargs) {
|
|
3566
|
+
return;
|
|
3567
|
+
}
|
|
3568
|
+
Object.assign(this, kwargs);
|
|
3569
|
+
}
|
|
3570
|
+
toApiJson() {
|
|
3571
|
+
const toReturn = {};
|
|
3572
|
+
if (typeof this.functionName !== 'undefined') {
|
|
3573
|
+
toReturn['functionName'] = this.functionName;
|
|
3523
3574
|
}
|
|
3575
|
+
if (typeof this.result !== 'undefined') {
|
|
3576
|
+
toReturn['result'] = this.result;
|
|
3577
|
+
}
|
|
3578
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
3579
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
3580
|
+
}
|
|
3581
|
+
if (typeof this.functionCallId !== 'undefined') {
|
|
3582
|
+
toReturn['functionCallId'] = this.functionCallId;
|
|
3583
|
+
}
|
|
3584
|
+
return toReturn;
|
|
3585
|
+
}
|
|
3586
|
+
}
|
|
3587
|
+
class StreamingGenerateChatAnswerResponseFunctionProgressChunk {
|
|
3588
|
+
static fromProto(proto) {
|
|
3589
|
+
let m = new StreamingGenerateChatAnswerResponseFunctionProgressChunk();
|
|
3590
|
+
m = Object.assign(m, proto);
|
|
3524
3591
|
return m;
|
|
3525
3592
|
}
|
|
3526
3593
|
constructor(kwargs) {
|
|
@@ -3531,17 +3598,46 @@ class ListFunctionRequestFilters {
|
|
|
3531
3598
|
}
|
|
3532
3599
|
toApiJson() {
|
|
3533
3600
|
const toReturn = {};
|
|
3534
|
-
if (typeof this.
|
|
3535
|
-
toReturn['
|
|
3601
|
+
if (typeof this.functionName !== 'undefined') {
|
|
3602
|
+
toReturn['functionName'] = this.functionName;
|
|
3536
3603
|
}
|
|
3537
|
-
if (typeof this.
|
|
3538
|
-
toReturn['
|
|
3604
|
+
if (typeof this.status !== 'undefined') {
|
|
3605
|
+
toReturn['status'] = this.status;
|
|
3539
3606
|
}
|
|
3540
|
-
if (typeof this.
|
|
3541
|
-
toReturn['
|
|
3607
|
+
if (typeof this.progressMessage !== 'undefined') {
|
|
3608
|
+
toReturn['progressMessage'] = this.progressMessage;
|
|
3542
3609
|
}
|
|
3543
|
-
if (typeof this.
|
|
3544
|
-
toReturn['
|
|
3610
|
+
if (typeof this.functionCallId !== 'undefined') {
|
|
3611
|
+
toReturn['functionCallId'] = this.functionCallId;
|
|
3612
|
+
}
|
|
3613
|
+
return toReturn;
|
|
3614
|
+
}
|
|
3615
|
+
}
|
|
3616
|
+
class StreamingGenerateChatAnswerResponseFunctionStartChunk {
|
|
3617
|
+
static fromProto(proto) {
|
|
3618
|
+
let m = new StreamingGenerateChatAnswerResponseFunctionStartChunk();
|
|
3619
|
+
m = Object.assign(m, proto);
|
|
3620
|
+
return m;
|
|
3621
|
+
}
|
|
3622
|
+
constructor(kwargs) {
|
|
3623
|
+
if (!kwargs) {
|
|
3624
|
+
return;
|
|
3625
|
+
}
|
|
3626
|
+
Object.assign(this, kwargs);
|
|
3627
|
+
}
|
|
3628
|
+
toApiJson() {
|
|
3629
|
+
const toReturn = {};
|
|
3630
|
+
if (typeof this.functionName !== 'undefined') {
|
|
3631
|
+
toReturn['functionName'] = this.functionName;
|
|
3632
|
+
}
|
|
3633
|
+
if (typeof this.functionDescription !== 'undefined') {
|
|
3634
|
+
toReturn['functionDescription'] = this.functionDescription;
|
|
3635
|
+
}
|
|
3636
|
+
if (typeof this.arguments !== 'undefined') {
|
|
3637
|
+
toReturn['arguments'] = this.arguments;
|
|
3638
|
+
}
|
|
3639
|
+
if (typeof this.functionCallId !== 'undefined') {
|
|
3640
|
+
toReturn['functionCallId'] = this.functionCallId;
|
|
3545
3641
|
}
|
|
3546
3642
|
return toReturn;
|
|
3547
3643
|
}
|
|
@@ -3842,55 +3938,6 @@ class GetDeployedPromptModuleVersionResponse {
|
|
|
3842
3938
|
return toReturn;
|
|
3843
3939
|
}
|
|
3844
3940
|
}
|
|
3845
|
-
class GetDeployedPromptVersionRequest {
|
|
3846
|
-
static fromProto(proto) {
|
|
3847
|
-
let m = new GetDeployedPromptVersionRequest();
|
|
3848
|
-
m = Object.assign(m, proto);
|
|
3849
|
-
return m;
|
|
3850
|
-
}
|
|
3851
|
-
constructor(kwargs) {
|
|
3852
|
-
if (!kwargs) {
|
|
3853
|
-
return;
|
|
3854
|
-
}
|
|
3855
|
-
Object.assign(this, kwargs);
|
|
3856
|
-
}
|
|
3857
|
-
toApiJson() {
|
|
3858
|
-
const toReturn = {};
|
|
3859
|
-
if (typeof this.id !== 'undefined') {
|
|
3860
|
-
toReturn['id'] = this.id;
|
|
3861
|
-
}
|
|
3862
|
-
return toReturn;
|
|
3863
|
-
}
|
|
3864
|
-
}
|
|
3865
|
-
class GetDeployedPromptVersionResponse {
|
|
3866
|
-
static fromProto(proto) {
|
|
3867
|
-
let m = new GetDeployedPromptVersionResponse();
|
|
3868
|
-
m = Object.assign(m, proto);
|
|
3869
|
-
if (proto.prompt) {
|
|
3870
|
-
m.prompt = Prompt.fromProto(proto.prompt);
|
|
3871
|
-
}
|
|
3872
|
-
if (proto.deployedPromptVersion) {
|
|
3873
|
-
m.deployedPromptVersion = PromptVersion.fromProto(proto.deployedPromptVersion);
|
|
3874
|
-
}
|
|
3875
|
-
return m;
|
|
3876
|
-
}
|
|
3877
|
-
constructor(kwargs) {
|
|
3878
|
-
if (!kwargs) {
|
|
3879
|
-
return;
|
|
3880
|
-
}
|
|
3881
|
-
Object.assign(this, kwargs);
|
|
3882
|
-
}
|
|
3883
|
-
toApiJson() {
|
|
3884
|
-
const toReturn = {};
|
|
3885
|
-
if (typeof this.prompt !== 'undefined' && this.prompt !== null) {
|
|
3886
|
-
toReturn['prompt'] = 'toApiJson' in this.prompt ? this.prompt.toApiJson() : this.prompt;
|
|
3887
|
-
}
|
|
3888
|
-
if (typeof this.deployedPromptVersion !== 'undefined' && this.deployedPromptVersion !== null) {
|
|
3889
|
-
toReturn['deployedPromptVersion'] = 'toApiJson' in this.deployedPromptVersion ? this.deployedPromptVersion.toApiJson() : this.deployedPromptVersion;
|
|
3890
|
-
}
|
|
3891
|
-
return toReturn;
|
|
3892
|
-
}
|
|
3893
|
-
}
|
|
3894
3941
|
class GetFunctionRequest {
|
|
3895
3942
|
static fromProto(proto) {
|
|
3896
3943
|
let m = new GetFunctionRequest();
|
|
@@ -4093,55 +4140,6 @@ class GetMultiAssistantResponse {
|
|
|
4093
4140
|
return toReturn;
|
|
4094
4141
|
}
|
|
4095
4142
|
}
|
|
4096
|
-
class GetMultiDeployedPromptVersionRequest {
|
|
4097
|
-
static fromProto(proto) {
|
|
4098
|
-
let m = new GetMultiDeployedPromptVersionRequest();
|
|
4099
|
-
m = Object.assign(m, proto);
|
|
4100
|
-
return m;
|
|
4101
|
-
}
|
|
4102
|
-
constructor(kwargs) {
|
|
4103
|
-
if (!kwargs) {
|
|
4104
|
-
return;
|
|
4105
|
-
}
|
|
4106
|
-
Object.assign(this, kwargs);
|
|
4107
|
-
}
|
|
4108
|
-
toApiJson() {
|
|
4109
|
-
const toReturn = {};
|
|
4110
|
-
if (typeof this.ids !== 'undefined') {
|
|
4111
|
-
toReturn['ids'] = this.ids;
|
|
4112
|
-
}
|
|
4113
|
-
return toReturn;
|
|
4114
|
-
}
|
|
4115
|
-
}
|
|
4116
|
-
class GetMultiDeployedPromptVersionResponse {
|
|
4117
|
-
static fromProto(proto) {
|
|
4118
|
-
let m = new GetMultiDeployedPromptVersionResponse();
|
|
4119
|
-
m = Object.assign(m, proto);
|
|
4120
|
-
if (proto.prompts) {
|
|
4121
|
-
m.prompts = proto.prompts.map(Prompt.fromProto);
|
|
4122
|
-
}
|
|
4123
|
-
if (proto.deployedPromptVersions) {
|
|
4124
|
-
m.deployedPromptVersions = proto.deployedPromptVersions.map(PromptVersion.fromProto);
|
|
4125
|
-
}
|
|
4126
|
-
return m;
|
|
4127
|
-
}
|
|
4128
|
-
constructor(kwargs) {
|
|
4129
|
-
if (!kwargs) {
|
|
4130
|
-
return;
|
|
4131
|
-
}
|
|
4132
|
-
Object.assign(this, kwargs);
|
|
4133
|
-
}
|
|
4134
|
-
toApiJson() {
|
|
4135
|
-
const toReturn = {};
|
|
4136
|
-
if (typeof this.prompts !== 'undefined' && this.prompts !== null) {
|
|
4137
|
-
toReturn['prompts'] = 'toApiJson' in this.prompts ? this.prompts.toApiJson() : this.prompts;
|
|
4138
|
-
}
|
|
4139
|
-
if (typeof this.deployedPromptVersions !== 'undefined' && this.deployedPromptVersions !== null) {
|
|
4140
|
-
toReturn['deployedPromptVersions'] = 'toApiJson' in this.deployedPromptVersions ? this.deployedPromptVersions.toApiJson() : this.deployedPromptVersions;
|
|
4141
|
-
}
|
|
4142
|
-
return toReturn;
|
|
4143
|
-
}
|
|
4144
|
-
}
|
|
4145
4143
|
class GetMultiFunctionRequest {
|
|
4146
4144
|
static fromProto(proto) {
|
|
4147
4145
|
let m = new GetMultiFunctionRequest();
|
|
@@ -4384,95 +4382,6 @@ class GetPromptModuleVersionResponse {
|
|
|
4384
4382
|
return toReturn;
|
|
4385
4383
|
}
|
|
4386
4384
|
}
|
|
4387
|
-
class GetPromptRequest {
|
|
4388
|
-
static fromProto(proto) {
|
|
4389
|
-
let m = new GetPromptRequest();
|
|
4390
|
-
m = Object.assign(m, proto);
|
|
4391
|
-
return m;
|
|
4392
|
-
}
|
|
4393
|
-
constructor(kwargs) {
|
|
4394
|
-
if (!kwargs) {
|
|
4395
|
-
return;
|
|
4396
|
-
}
|
|
4397
|
-
Object.assign(this, kwargs);
|
|
4398
|
-
}
|
|
4399
|
-
toApiJson() {
|
|
4400
|
-
const toReturn = {};
|
|
4401
|
-
if (typeof this.id !== 'undefined') {
|
|
4402
|
-
toReturn['id'] = this.id;
|
|
4403
|
-
}
|
|
4404
|
-
return toReturn;
|
|
4405
|
-
}
|
|
4406
|
-
}
|
|
4407
|
-
class GetPromptResponse {
|
|
4408
|
-
static fromProto(proto) {
|
|
4409
|
-
let m = new GetPromptResponse();
|
|
4410
|
-
m = Object.assign(m, proto);
|
|
4411
|
-
if (proto.prompt) {
|
|
4412
|
-
m.prompt = Prompt.fromProto(proto.prompt);
|
|
4413
|
-
}
|
|
4414
|
-
return m;
|
|
4415
|
-
}
|
|
4416
|
-
constructor(kwargs) {
|
|
4417
|
-
if (!kwargs) {
|
|
4418
|
-
return;
|
|
4419
|
-
}
|
|
4420
|
-
Object.assign(this, kwargs);
|
|
4421
|
-
}
|
|
4422
|
-
toApiJson() {
|
|
4423
|
-
const toReturn = {};
|
|
4424
|
-
if (typeof this.prompt !== 'undefined' && this.prompt !== null) {
|
|
4425
|
-
toReturn['prompt'] = 'toApiJson' in this.prompt ? this.prompt.toApiJson() : this.prompt;
|
|
4426
|
-
}
|
|
4427
|
-
return toReturn;
|
|
4428
|
-
}
|
|
4429
|
-
}
|
|
4430
|
-
class GetPromptVersionRequest {
|
|
4431
|
-
static fromProto(proto) {
|
|
4432
|
-
let m = new GetPromptVersionRequest();
|
|
4433
|
-
m = Object.assign(m, proto);
|
|
4434
|
-
return m;
|
|
4435
|
-
}
|
|
4436
|
-
constructor(kwargs) {
|
|
4437
|
-
if (!kwargs) {
|
|
4438
|
-
return;
|
|
4439
|
-
}
|
|
4440
|
-
Object.assign(this, kwargs);
|
|
4441
|
-
}
|
|
4442
|
-
toApiJson() {
|
|
4443
|
-
const toReturn = {};
|
|
4444
|
-
if (typeof this.id !== 'undefined') {
|
|
4445
|
-
toReturn['id'] = this.id;
|
|
4446
|
-
}
|
|
4447
|
-
if (typeof this.version !== 'undefined') {
|
|
4448
|
-
toReturn['version'] = this.version;
|
|
4449
|
-
}
|
|
4450
|
-
return toReturn;
|
|
4451
|
-
}
|
|
4452
|
-
}
|
|
4453
|
-
class GetPromptVersionResponse {
|
|
4454
|
-
static fromProto(proto) {
|
|
4455
|
-
let m = new GetPromptVersionResponse();
|
|
4456
|
-
m = Object.assign(m, proto);
|
|
4457
|
-
if (proto.promptVersion) {
|
|
4458
|
-
m.promptVersion = PromptVersion.fromProto(proto.promptVersion);
|
|
4459
|
-
}
|
|
4460
|
-
return m;
|
|
4461
|
-
}
|
|
4462
|
-
constructor(kwargs) {
|
|
4463
|
-
if (!kwargs) {
|
|
4464
|
-
return;
|
|
4465
|
-
}
|
|
4466
|
-
Object.assign(this, kwargs);
|
|
4467
|
-
}
|
|
4468
|
-
toApiJson() {
|
|
4469
|
-
const toReturn = {};
|
|
4470
|
-
if (typeof this.promptVersion !== 'undefined' && this.promptVersion !== null) {
|
|
4471
|
-
toReturn['promptVersion'] = 'toApiJson' in this.promptVersion ? this.promptVersion.toApiJson() : this.promptVersion;
|
|
4472
|
-
}
|
|
4473
|
-
return toReturn;
|
|
4474
|
-
}
|
|
4475
|
-
}
|
|
4476
4385
|
class GoalsDisabledForAccountGroupRequest {
|
|
4477
4386
|
static fromProto(proto) {
|
|
4478
4387
|
let m = new GoalsDisabledForAccountGroupRequest();
|
|
@@ -4977,12 +4886,15 @@ class ListPromptModuleVersionsResponse {
|
|
|
4977
4886
|
return toReturn;
|
|
4978
4887
|
}
|
|
4979
4888
|
}
|
|
4980
|
-
class
|
|
4889
|
+
class ListTemplateVariablesRequest {
|
|
4981
4890
|
static fromProto(proto) {
|
|
4982
|
-
let m = new
|
|
4891
|
+
let m = new ListTemplateVariablesRequest();
|
|
4983
4892
|
m = Object.assign(m, proto);
|
|
4984
|
-
if (proto.
|
|
4985
|
-
m.
|
|
4893
|
+
if (proto.assistantKey) {
|
|
4894
|
+
m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
|
|
4895
|
+
}
|
|
4896
|
+
if (proto.chatUserInfo) {
|
|
4897
|
+
m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
|
|
4986
4898
|
}
|
|
4987
4899
|
return m;
|
|
4988
4900
|
}
|
|
@@ -4994,24 +4906,44 @@ class ListPromptRequest {
|
|
|
4994
4906
|
}
|
|
4995
4907
|
toApiJson() {
|
|
4996
4908
|
const toReturn = {};
|
|
4997
|
-
if (typeof this.
|
|
4998
|
-
toReturn['
|
|
4909
|
+
if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
|
|
4910
|
+
toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
|
|
4911
|
+
}
|
|
4912
|
+
if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
|
|
4913
|
+
toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
|
|
4999
4914
|
}
|
|
5000
4915
|
return toReturn;
|
|
5001
4916
|
}
|
|
5002
4917
|
}
|
|
5003
|
-
class
|
|
4918
|
+
class ListTemplateVariablesResponse {
|
|
5004
4919
|
static fromProto(proto) {
|
|
5005
|
-
let m = new
|
|
4920
|
+
let m = new ListTemplateVariablesResponse();
|
|
5006
4921
|
m = Object.assign(m, proto);
|
|
5007
|
-
if (proto.
|
|
5008
|
-
m.
|
|
4922
|
+
if (proto.assistantScopedVariables) {
|
|
4923
|
+
m.assistantScopedVariables = proto.assistantScopedVariables.map(TemplateVariable.fromProto);
|
|
4924
|
+
}
|
|
4925
|
+
return m;
|
|
4926
|
+
}
|
|
4927
|
+
constructor(kwargs) {
|
|
4928
|
+
if (!kwargs) {
|
|
4929
|
+
return;
|
|
5009
4930
|
}
|
|
5010
|
-
|
|
5011
|
-
|
|
4931
|
+
Object.assign(this, kwargs);
|
|
4932
|
+
}
|
|
4933
|
+
toApiJson() {
|
|
4934
|
+
const toReturn = {};
|
|
4935
|
+
if (typeof this.assistantScopedVariables !== 'undefined' && this.assistantScopedVariables !== null) {
|
|
4936
|
+
toReturn['assistantScopedVariables'] = 'toApiJson' in this.assistantScopedVariables ? this.assistantScopedVariables.toApiJson() : this.assistantScopedVariables;
|
|
5012
4937
|
}
|
|
4938
|
+
return toReturn;
|
|
4939
|
+
}
|
|
4940
|
+
}
|
|
4941
|
+
class StreamingGenerateChatAnswerResponseMetadataChunk {
|
|
4942
|
+
static fromProto(proto) {
|
|
4943
|
+
let m = new StreamingGenerateChatAnswerResponseMetadataChunk();
|
|
4944
|
+
m = Object.assign(m, proto);
|
|
5013
4945
|
if (proto.metadata) {
|
|
5014
|
-
m.metadata =
|
|
4946
|
+
m.metadata = proto.metadata.map(KeyValuePair.fromProto);
|
|
5015
4947
|
}
|
|
5016
4948
|
return m;
|
|
5017
4949
|
}
|
|
@@ -5023,25 +4955,16 @@ class ListPromptResponse {
|
|
|
5023
4955
|
}
|
|
5024
4956
|
toApiJson() {
|
|
5025
4957
|
const toReturn = {};
|
|
5026
|
-
if (typeof this.prompts !== 'undefined' && this.prompts !== null) {
|
|
5027
|
-
toReturn['prompts'] = 'toApiJson' in this.prompts ? this.prompts.toApiJson() : this.prompts;
|
|
5028
|
-
}
|
|
5029
|
-
if (typeof this.deployedPromptVersions !== 'undefined' && this.deployedPromptVersions !== null) {
|
|
5030
|
-
toReturn['deployedPromptVersions'] = 'toApiJson' in this.deployedPromptVersions ? this.deployedPromptVersions.toApiJson() : this.deployedPromptVersions;
|
|
5031
|
-
}
|
|
5032
4958
|
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
5033
4959
|
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
5034
4960
|
}
|
|
5035
4961
|
return toReturn;
|
|
5036
4962
|
}
|
|
5037
4963
|
}
|
|
5038
|
-
class
|
|
4964
|
+
class GetAssistantRequestOptions {
|
|
5039
4965
|
static fromProto(proto) {
|
|
5040
|
-
let m = new
|
|
4966
|
+
let m = new GetAssistantRequestOptions();
|
|
5041
4967
|
m = Object.assign(m, proto);
|
|
5042
|
-
if (proto.pagingOptions) {
|
|
5043
|
-
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
5044
|
-
}
|
|
5045
4968
|
return m;
|
|
5046
4969
|
}
|
|
5047
4970
|
constructor(kwargs) {
|
|
@@ -5052,25 +4975,36 @@ class ListPromptVersionsRequest {
|
|
|
5052
4975
|
}
|
|
5053
4976
|
toApiJson() {
|
|
5054
4977
|
const toReturn = {};
|
|
5055
|
-
if (typeof this.
|
|
5056
|
-
toReturn['
|
|
4978
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
4979
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
5057
4980
|
}
|
|
5058
|
-
|
|
5059
|
-
|
|
4981
|
+
return toReturn;
|
|
4982
|
+
}
|
|
4983
|
+
}
|
|
4984
|
+
class GetMultiAssistantRequestOptions {
|
|
4985
|
+
static fromProto(proto) {
|
|
4986
|
+
let m = new GetMultiAssistantRequestOptions();
|
|
4987
|
+
m = Object.assign(m, proto);
|
|
4988
|
+
return m;
|
|
4989
|
+
}
|
|
4990
|
+
constructor(kwargs) {
|
|
4991
|
+
if (!kwargs) {
|
|
4992
|
+
return;
|
|
4993
|
+
}
|
|
4994
|
+
Object.assign(this, kwargs);
|
|
4995
|
+
}
|
|
4996
|
+
toApiJson() {
|
|
4997
|
+
const toReturn = {};
|
|
4998
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
4999
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
5060
5000
|
}
|
|
5061
5001
|
return toReturn;
|
|
5062
5002
|
}
|
|
5063
5003
|
}
|
|
5064
|
-
class
|
|
5004
|
+
class UpsertAssistantRequestOptions {
|
|
5065
5005
|
static fromProto(proto) {
|
|
5066
|
-
let m = new
|
|
5006
|
+
let m = new UpsertAssistantRequestOptions();
|
|
5067
5007
|
m = Object.assign(m, proto);
|
|
5068
|
-
if (proto.promptVersions) {
|
|
5069
|
-
m.promptVersions = proto.promptVersions.map(PromptVersion.fromProto);
|
|
5070
|
-
}
|
|
5071
|
-
if (proto.metadata) {
|
|
5072
|
-
m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
|
|
5073
|
-
}
|
|
5074
5008
|
return m;
|
|
5075
5009
|
}
|
|
5076
5010
|
constructor(kwargs) {
|
|
@@ -5081,25 +5015,16 @@ class ListPromptVersionsResponse {
|
|
|
5081
5015
|
}
|
|
5082
5016
|
toApiJson() {
|
|
5083
5017
|
const toReturn = {};
|
|
5084
|
-
if (typeof this.
|
|
5085
|
-
toReturn['
|
|
5086
|
-
}
|
|
5087
|
-
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
5088
|
-
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
5018
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
5019
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
5089
5020
|
}
|
|
5090
5021
|
return toReturn;
|
|
5091
5022
|
}
|
|
5092
5023
|
}
|
|
5093
|
-
class
|
|
5024
|
+
class CreateAssistantRequestOptions {
|
|
5094
5025
|
static fromProto(proto) {
|
|
5095
|
-
let m = new
|
|
5026
|
+
let m = new CreateAssistantRequestOptions();
|
|
5096
5027
|
m = Object.assign(m, proto);
|
|
5097
|
-
if (proto.assistantKey) {
|
|
5098
|
-
m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
|
|
5099
|
-
}
|
|
5100
|
-
if (proto.chatUserInfo) {
|
|
5101
|
-
m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
|
|
5102
|
-
}
|
|
5103
5028
|
return m;
|
|
5104
5029
|
}
|
|
5105
5030
|
constructor(kwargs) {
|
|
@@ -5110,21 +5035,18 @@ class ListTemplateVariablesRequest {
|
|
|
5110
5035
|
}
|
|
5111
5036
|
toApiJson() {
|
|
5112
5037
|
const toReturn = {};
|
|
5113
|
-
if (typeof this.
|
|
5114
|
-
toReturn['
|
|
5115
|
-
}
|
|
5116
|
-
if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
|
|
5117
|
-
toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
|
|
5038
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
5039
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
5118
5040
|
}
|
|
5119
5041
|
return toReturn;
|
|
5120
5042
|
}
|
|
5121
5043
|
}
|
|
5122
|
-
class
|
|
5044
|
+
class ExecuteFunctionRequestOptions {
|
|
5123
5045
|
static fromProto(proto) {
|
|
5124
|
-
let m = new
|
|
5046
|
+
let m = new ExecuteFunctionRequestOptions();
|
|
5125
5047
|
m = Object.assign(m, proto);
|
|
5126
|
-
if (proto.
|
|
5127
|
-
m.
|
|
5048
|
+
if (proto.contextInfo) {
|
|
5049
|
+
m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
|
|
5128
5050
|
}
|
|
5129
5051
|
return m;
|
|
5130
5052
|
}
|
|
@@ -5136,8 +5058,11 @@ class ListTemplateVariablesResponse {
|
|
|
5136
5058
|
}
|
|
5137
5059
|
toApiJson() {
|
|
5138
5060
|
const toReturn = {};
|
|
5139
|
-
if (typeof this.
|
|
5140
|
-
toReturn['
|
|
5061
|
+
if (typeof this.skipComputeTemplateVariables !== 'undefined') {
|
|
5062
|
+
toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
|
|
5063
|
+
}
|
|
5064
|
+
if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
|
|
5065
|
+
toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
|
|
5141
5066
|
}
|
|
5142
5067
|
return toReturn;
|
|
5143
5068
|
}
|
|
@@ -5171,13 +5096,10 @@ class GenerateChatAnswerRequestOptions {
|
|
|
5171
5096
|
return toReturn;
|
|
5172
5097
|
}
|
|
5173
5098
|
}
|
|
5174
|
-
class
|
|
5099
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
5175
5100
|
static fromProto(proto) {
|
|
5176
|
-
let m = new
|
|
5101
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
5177
5102
|
m = Object.assign(m, proto);
|
|
5178
|
-
if (proto.contextInfo) {
|
|
5179
|
-
m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
|
|
5180
|
-
}
|
|
5181
5103
|
return m;
|
|
5182
5104
|
}
|
|
5183
5105
|
constructor(kwargs) {
|
|
@@ -5188,19 +5110,19 @@ class ExecuteFunctionRequestOptions {
|
|
|
5188
5110
|
}
|
|
5189
5111
|
toApiJson() {
|
|
5190
5112
|
const toReturn = {};
|
|
5191
|
-
if (typeof this.
|
|
5192
|
-
toReturn['
|
|
5193
|
-
}
|
|
5194
|
-
if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
|
|
5195
|
-
toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
|
|
5113
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
5114
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
5196
5115
|
}
|
|
5197
5116
|
return toReturn;
|
|
5198
5117
|
}
|
|
5199
5118
|
}
|
|
5200
|
-
class
|
|
5119
|
+
class ResumeStreamingGenerateChatAnswerRequest {
|
|
5201
5120
|
static fromProto(proto) {
|
|
5202
|
-
let m = new
|
|
5121
|
+
let m = new ResumeStreamingGenerateChatAnswerRequest();
|
|
5203
5122
|
m = Object.assign(m, proto);
|
|
5123
|
+
if (proto.lastReceivedSequenceNumber) {
|
|
5124
|
+
m.lastReceivedSequenceNumber = parseInt(proto.lastReceivedSequenceNumber, 10);
|
|
5125
|
+
}
|
|
5204
5126
|
return m;
|
|
5205
5127
|
}
|
|
5206
5128
|
constructor(kwargs) {
|
|
@@ -5211,36 +5133,25 @@ class CreateAssistantRequestOptions {
|
|
|
5211
5133
|
}
|
|
5212
5134
|
toApiJson() {
|
|
5213
5135
|
const toReturn = {};
|
|
5214
|
-
if (typeof this.
|
|
5215
|
-
toReturn['
|
|
5136
|
+
if (typeof this.streamId !== 'undefined') {
|
|
5137
|
+
toReturn['streamId'] = this.streamId;
|
|
5138
|
+
}
|
|
5139
|
+
if (typeof this.lastReceivedSequenceNumber !== 'undefined') {
|
|
5140
|
+
toReturn['lastReceivedSequenceNumber'] = this.lastReceivedSequenceNumber;
|
|
5216
5141
|
}
|
|
5217
5142
|
return toReturn;
|
|
5218
5143
|
}
|
|
5219
5144
|
}
|
|
5220
|
-
class
|
|
5145
|
+
class SetAssistantConnectionsRequest {
|
|
5221
5146
|
static fromProto(proto) {
|
|
5222
|
-
let m = new
|
|
5147
|
+
let m = new SetAssistantConnectionsRequest();
|
|
5223
5148
|
m = Object.assign(m, proto);
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
constructor(kwargs) {
|
|
5227
|
-
if (!kwargs) {
|
|
5228
|
-
return;
|
|
5149
|
+
if (proto.associationStates) {
|
|
5150
|
+
m.associationStates = proto.associationStates.map(SetAssistantConnectionsRequestConnectionState.fromProto);
|
|
5229
5151
|
}
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
toApiJson() {
|
|
5233
|
-
const toReturn = {};
|
|
5234
|
-
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
5235
|
-
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
5152
|
+
if (proto.assistantKey) {
|
|
5153
|
+
m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
|
|
5236
5154
|
}
|
|
5237
|
-
return toReturn;
|
|
5238
|
-
}
|
|
5239
|
-
}
|
|
5240
|
-
class UpsertAssistantRequestOptions {
|
|
5241
|
-
static fromProto(proto) {
|
|
5242
|
-
let m = new UpsertAssistantRequestOptions();
|
|
5243
|
-
m = Object.assign(m, proto);
|
|
5244
5155
|
return m;
|
|
5245
5156
|
}
|
|
5246
5157
|
constructor(kwargs) {
|
|
@@ -5251,16 +5162,22 @@ class UpsertAssistantRequestOptions {
|
|
|
5251
5162
|
}
|
|
5252
5163
|
toApiJson() {
|
|
5253
5164
|
const toReturn = {};
|
|
5254
|
-
if (typeof this.
|
|
5255
|
-
toReturn['
|
|
5165
|
+
if (typeof this.associationStates !== 'undefined' && this.associationStates !== null) {
|
|
5166
|
+
toReturn['associationStates'] = 'toApiJson' in this.associationStates ? this.associationStates.toApiJson() : this.associationStates;
|
|
5167
|
+
}
|
|
5168
|
+
if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
|
|
5169
|
+
toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
|
|
5256
5170
|
}
|
|
5257
5171
|
return toReturn;
|
|
5258
5172
|
}
|
|
5259
5173
|
}
|
|
5260
|
-
class
|
|
5174
|
+
class ListGoalsRequestSortOptions {
|
|
5261
5175
|
static fromProto(proto) {
|
|
5262
|
-
let m = new
|
|
5176
|
+
let m = new ListGoalsRequestSortOptions();
|
|
5263
5177
|
m = Object.assign(m, proto);
|
|
5178
|
+
if (proto.order) {
|
|
5179
|
+
m.order = enumStringToValue(ListGoalsRequestSortingOrder, proto.order);
|
|
5180
|
+
}
|
|
5264
5181
|
return m;
|
|
5265
5182
|
}
|
|
5266
5183
|
constructor(kwargs) {
|
|
@@ -5271,16 +5188,22 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
5271
5188
|
}
|
|
5272
5189
|
toApiJson() {
|
|
5273
5190
|
const toReturn = {};
|
|
5274
|
-
if (typeof this.
|
|
5275
|
-
toReturn['
|
|
5191
|
+
if (typeof this.field !== 'undefined') {
|
|
5192
|
+
toReturn['field'] = this.field;
|
|
5193
|
+
}
|
|
5194
|
+
if (typeof this.order !== 'undefined') {
|
|
5195
|
+
toReturn['order'] = this.order;
|
|
5276
5196
|
}
|
|
5277
5197
|
return toReturn;
|
|
5278
5198
|
}
|
|
5279
5199
|
}
|
|
5280
|
-
class
|
|
5200
|
+
class StreamingGenerateChatAnswerResponseStartChunk {
|
|
5281
5201
|
static fromProto(proto) {
|
|
5282
|
-
let m = new
|
|
5202
|
+
let m = new StreamingGenerateChatAnswerResponseStartChunk();
|
|
5283
5203
|
m = Object.assign(m, proto);
|
|
5204
|
+
if (proto.metadata) {
|
|
5205
|
+
m.metadata = proto.metadata.map(KeyValuePair.fromProto);
|
|
5206
|
+
}
|
|
5284
5207
|
return m;
|
|
5285
5208
|
}
|
|
5286
5209
|
constructor(kwargs) {
|
|
@@ -5291,22 +5214,40 @@ class GetMultiAssistantRequestOptions {
|
|
|
5291
5214
|
}
|
|
5292
5215
|
toApiJson() {
|
|
5293
5216
|
const toReturn = {};
|
|
5294
|
-
if (typeof this.
|
|
5295
|
-
toReturn['
|
|
5217
|
+
if (typeof this.streamId !== 'undefined') {
|
|
5218
|
+
toReturn['streamId'] = this.streamId;
|
|
5219
|
+
}
|
|
5220
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
5221
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
5296
5222
|
}
|
|
5297
5223
|
return toReturn;
|
|
5298
5224
|
}
|
|
5299
5225
|
}
|
|
5300
|
-
class
|
|
5226
|
+
class StreamingGenerateChatAnswerRequest {
|
|
5301
5227
|
static fromProto(proto) {
|
|
5302
|
-
let m = new
|
|
5228
|
+
let m = new StreamingGenerateChatAnswerRequest();
|
|
5303
5229
|
m = Object.assign(m, proto);
|
|
5304
|
-
if (proto.
|
|
5305
|
-
m.
|
|
5230
|
+
if (proto.connectionKey) {
|
|
5231
|
+
m.connectionKey = ConnectionKey.fromProto(proto.connectionKey);
|
|
5306
5232
|
}
|
|
5307
5233
|
if (proto.assistantKey) {
|
|
5308
5234
|
m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
|
|
5309
5235
|
}
|
|
5236
|
+
if (proto.chatHistory) {
|
|
5237
|
+
m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
|
|
5238
|
+
}
|
|
5239
|
+
if (proto.chatUserInfo) {
|
|
5240
|
+
m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
|
|
5241
|
+
}
|
|
5242
|
+
if (proto.chatChannel) {
|
|
5243
|
+
m.chatChannel = enumStringToValue(ChatChannel, proto.chatChannel);
|
|
5244
|
+
}
|
|
5245
|
+
if (proto.contextInfo) {
|
|
5246
|
+
m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
|
|
5247
|
+
}
|
|
5248
|
+
if (proto.agentArchitecture) {
|
|
5249
|
+
m.agentArchitecture = enumStringToValue(AgentArchitecture, proto.agentArchitecture);
|
|
5250
|
+
}
|
|
5310
5251
|
return m;
|
|
5311
5252
|
}
|
|
5312
5253
|
constructor(kwargs) {
|
|
@@ -5317,21 +5258,60 @@ class SetAssistantConnectionsRequest {
|
|
|
5317
5258
|
}
|
|
5318
5259
|
toApiJson() {
|
|
5319
5260
|
const toReturn = {};
|
|
5320
|
-
if (typeof this.
|
|
5321
|
-
toReturn['
|
|
5261
|
+
if (typeof this.connectionKey !== 'undefined' && this.connectionKey !== null) {
|
|
5262
|
+
toReturn['connectionKey'] = 'toApiJson' in this.connectionKey ? this.connectionKey.toApiJson() : this.connectionKey;
|
|
5322
5263
|
}
|
|
5323
5264
|
if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
|
|
5324
5265
|
toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
|
|
5325
5266
|
}
|
|
5267
|
+
if (typeof this.chatHistory !== 'undefined' && this.chatHistory !== null) {
|
|
5268
|
+
toReturn['chatHistory'] = 'toApiJson' in this.chatHistory ? this.chatHistory.toApiJson() : this.chatHistory;
|
|
5269
|
+
}
|
|
5270
|
+
if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
|
|
5271
|
+
toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
|
|
5272
|
+
}
|
|
5273
|
+
if (typeof this.chatChannel !== 'undefined') {
|
|
5274
|
+
toReturn['chatChannel'] = this.chatChannel;
|
|
5275
|
+
}
|
|
5276
|
+
if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
|
|
5277
|
+
toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
|
|
5278
|
+
}
|
|
5279
|
+
if (typeof this.agentArchitecture !== 'undefined') {
|
|
5280
|
+
toReturn['agentArchitecture'] = this.agentArchitecture;
|
|
5281
|
+
}
|
|
5326
5282
|
return toReturn;
|
|
5327
5283
|
}
|
|
5328
5284
|
}
|
|
5329
|
-
class
|
|
5285
|
+
class StreamingGenerateChatAnswerResponse {
|
|
5330
5286
|
static fromProto(proto) {
|
|
5331
|
-
let m = new
|
|
5287
|
+
let m = new StreamingGenerateChatAnswerResponse();
|
|
5332
5288
|
m = Object.assign(m, proto);
|
|
5333
|
-
if (proto.
|
|
5334
|
-
m.
|
|
5289
|
+
if (proto.sequenceNumber) {
|
|
5290
|
+
m.sequenceNumber = parseInt(proto.sequenceNumber, 10);
|
|
5291
|
+
}
|
|
5292
|
+
if (proto.start) {
|
|
5293
|
+
m.start = StreamingGenerateChatAnswerResponseStartChunk.fromProto(proto.start);
|
|
5294
|
+
}
|
|
5295
|
+
if (proto.content) {
|
|
5296
|
+
m.content = StreamingGenerateChatAnswerResponseContentChunk.fromProto(proto.content);
|
|
5297
|
+
}
|
|
5298
|
+
if (proto.metadata) {
|
|
5299
|
+
m.metadata = StreamingGenerateChatAnswerResponseMetadataChunk.fromProto(proto.metadata);
|
|
5300
|
+
}
|
|
5301
|
+
if (proto.functionStart) {
|
|
5302
|
+
m.functionStart = StreamingGenerateChatAnswerResponseFunctionStartChunk.fromProto(proto.functionStart);
|
|
5303
|
+
}
|
|
5304
|
+
if (proto.functionProgress) {
|
|
5305
|
+
m.functionProgress = StreamingGenerateChatAnswerResponseFunctionProgressChunk.fromProto(proto.functionProgress);
|
|
5306
|
+
}
|
|
5307
|
+
if (proto.functionComplete) {
|
|
5308
|
+
m.functionComplete = StreamingGenerateChatAnswerResponseFunctionCompleteChunk.fromProto(proto.functionComplete);
|
|
5309
|
+
}
|
|
5310
|
+
if (proto.final) {
|
|
5311
|
+
m.final = StreamingGenerateChatAnswerResponseFinalChunk.fromProto(proto.final);
|
|
5312
|
+
}
|
|
5313
|
+
if (proto.error) {
|
|
5314
|
+
m.error = StreamingGenerateChatAnswerResponseErrorChunk.fromProto(proto.error);
|
|
5335
5315
|
}
|
|
5336
5316
|
return m;
|
|
5337
5317
|
}
|
|
@@ -5343,11 +5323,32 @@ class ListGoalsRequestSortOptions {
|
|
|
5343
5323
|
}
|
|
5344
5324
|
toApiJson() {
|
|
5345
5325
|
const toReturn = {};
|
|
5346
|
-
if (typeof this.
|
|
5347
|
-
toReturn['
|
|
5326
|
+
if (typeof this.sequenceNumber !== 'undefined') {
|
|
5327
|
+
toReturn['sequenceNumber'] = this.sequenceNumber;
|
|
5348
5328
|
}
|
|
5349
|
-
if (typeof this.
|
|
5350
|
-
toReturn['
|
|
5329
|
+
if (typeof this.start !== 'undefined' && this.start !== null) {
|
|
5330
|
+
toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
|
|
5331
|
+
}
|
|
5332
|
+
if (typeof this.content !== 'undefined' && this.content !== null) {
|
|
5333
|
+
toReturn['content'] = 'toApiJson' in this.content ? this.content.toApiJson() : this.content;
|
|
5334
|
+
}
|
|
5335
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
5336
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
5337
|
+
}
|
|
5338
|
+
if (typeof this.functionStart !== 'undefined' && this.functionStart !== null) {
|
|
5339
|
+
toReturn['functionStart'] = 'toApiJson' in this.functionStart ? this.functionStart.toApiJson() : this.functionStart;
|
|
5340
|
+
}
|
|
5341
|
+
if (typeof this.functionProgress !== 'undefined' && this.functionProgress !== null) {
|
|
5342
|
+
toReturn['functionProgress'] = 'toApiJson' in this.functionProgress ? this.functionProgress.toApiJson() : this.functionProgress;
|
|
5343
|
+
}
|
|
5344
|
+
if (typeof this.functionComplete !== 'undefined' && this.functionComplete !== null) {
|
|
5345
|
+
toReturn['functionComplete'] = 'toApiJson' in this.functionComplete ? this.functionComplete.toApiJson() : this.functionComplete;
|
|
5346
|
+
}
|
|
5347
|
+
if (typeof this.final !== 'undefined' && this.final !== null) {
|
|
5348
|
+
toReturn['final'] = 'toApiJson' in this.final ? this.final.toApiJson() : this.final;
|
|
5349
|
+
}
|
|
5350
|
+
if (typeof this.error !== 'undefined' && this.error !== null) {
|
|
5351
|
+
toReturn['error'] = 'toApiJson' in this.error ? this.error.toApiJson() : this.error;
|
|
5351
5352
|
}
|
|
5352
5353
|
return toReturn;
|
|
5353
5354
|
}
|
|
@@ -5436,32 +5437,6 @@ class UpdatePromptModuleRequest {
|
|
|
5436
5437
|
return toReturn;
|
|
5437
5438
|
}
|
|
5438
5439
|
}
|
|
5439
|
-
class UpdatePromptRequest {
|
|
5440
|
-
static fromProto(proto) {
|
|
5441
|
-
let m = new UpdatePromptRequest();
|
|
5442
|
-
m = Object.assign(m, proto);
|
|
5443
|
-
return m;
|
|
5444
|
-
}
|
|
5445
|
-
constructor(kwargs) {
|
|
5446
|
-
if (!kwargs) {
|
|
5447
|
-
return;
|
|
5448
|
-
}
|
|
5449
|
-
Object.assign(this, kwargs);
|
|
5450
|
-
}
|
|
5451
|
-
toApiJson() {
|
|
5452
|
-
const toReturn = {};
|
|
5453
|
-
if (typeof this.id !== 'undefined') {
|
|
5454
|
-
toReturn['id'] = this.id;
|
|
5455
|
-
}
|
|
5456
|
-
if (typeof this.content !== 'undefined') {
|
|
5457
|
-
toReturn['content'] = this.content;
|
|
5458
|
-
}
|
|
5459
|
-
if (typeof this.description !== 'undefined') {
|
|
5460
|
-
toReturn['description'] = this.description;
|
|
5461
|
-
}
|
|
5462
|
-
return toReturn;
|
|
5463
|
-
}
|
|
5464
|
-
}
|
|
5465
5440
|
class UpsertAssistantRequest {
|
|
5466
5441
|
static fromProto(proto) {
|
|
5467
5442
|
let m = new UpsertAssistantRequest();
|
|
@@ -5702,6 +5677,16 @@ class AssistantApiService {
|
|
|
5702
5677
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GenerateChatAnswer", request.toApiJson(), this.apiOptions())
|
|
5703
5678
|
.pipe(map(resp => GenerateChatAnswerResponse.fromProto(resp)));
|
|
5704
5679
|
}
|
|
5680
|
+
streamingGenerateChatAnswer(r) {
|
|
5681
|
+
const request = (r.toApiJson) ? r : new StreamingGenerateChatAnswerRequest(r);
|
|
5682
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/StreamingGenerateChatAnswer", request.toApiJson(), this.apiOptions())
|
|
5683
|
+
.pipe(map(resp => StreamingGenerateChatAnswerResponse.fromProto(resp)));
|
|
5684
|
+
}
|
|
5685
|
+
resumeStreamingGenerateChatAnswer(r) {
|
|
5686
|
+
const request = (r.toApiJson) ? r : new ResumeStreamingGenerateChatAnswerRequest(r);
|
|
5687
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ResumeStreamingGenerateChatAnswer", request.toApiJson(), this.apiOptions())
|
|
5688
|
+
.pipe(map(resp => StreamingGenerateChatAnswerResponse.fromProto(resp)));
|
|
5689
|
+
}
|
|
5705
5690
|
getChatAnswerFunctionExecutionJob(r) {
|
|
5706
5691
|
const request = (r.toApiJson) ? r : new GetChatAnswerFunctionExecutionJobRequest(r);
|
|
5707
5692
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetChatAnswerFunctionExecutionJob", request.toApiJson(), this.apiOptions())
|
|
@@ -6067,80 +6052,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6067
6052
|
args: [{ providedIn: 'root' }]
|
|
6068
6053
|
}] });
|
|
6069
6054
|
|
|
6070
|
-
// *********************************
|
|
6071
|
-
// Code generated by sdkgen
|
|
6072
|
-
// DO NOT EDIT!.
|
|
6073
|
-
//
|
|
6074
|
-
// API Service.
|
|
6075
|
-
// *********************************
|
|
6076
|
-
class PromptApiService {
|
|
6077
|
-
constructor() {
|
|
6078
|
-
this.hostService = inject(HostService);
|
|
6079
|
-
this.http = inject(HttpClient);
|
|
6080
|
-
this._host = this.hostService.hostWithScheme;
|
|
6081
|
-
}
|
|
6082
|
-
apiOptions() {
|
|
6083
|
-
return {
|
|
6084
|
-
headers: new HttpHeaders({
|
|
6085
|
-
'Content-Type': 'application/json'
|
|
6086
|
-
}),
|
|
6087
|
-
withCredentials: true
|
|
6088
|
-
};
|
|
6089
|
-
}
|
|
6090
|
-
create(r) {
|
|
6091
|
-
const request = (r.toApiJson) ? r : new CreatePromptRequest(r);
|
|
6092
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Create", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
6093
|
-
}
|
|
6094
|
-
get(r) {
|
|
6095
|
-
const request = (r.toApiJson) ? r : new GetPromptRequest(r);
|
|
6096
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Get", request.toApiJson(), this.apiOptions())
|
|
6097
|
-
.pipe(map(resp => GetPromptResponse.fromProto(resp)));
|
|
6098
|
-
}
|
|
6099
|
-
getVersion(r) {
|
|
6100
|
-
const request = (r.toApiJson) ? r : new GetPromptVersionRequest(r);
|
|
6101
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/GetVersion", request.toApiJson(), this.apiOptions())
|
|
6102
|
-
.pipe(map(resp => GetPromptVersionResponse.fromProto(resp)));
|
|
6103
|
-
}
|
|
6104
|
-
getDeployedVersion(r) {
|
|
6105
|
-
const request = (r.toApiJson) ? r : new GetDeployedPromptVersionRequest(r);
|
|
6106
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/GetDeployedVersion", request.toApiJson(), this.apiOptions())
|
|
6107
|
-
.pipe(map(resp => GetDeployedPromptVersionResponse.fromProto(resp)));
|
|
6108
|
-
}
|
|
6109
|
-
getMultiDeployedVersion(r) {
|
|
6110
|
-
const request = (r.toApiJson) ? r : new GetMultiDeployedPromptVersionRequest(r);
|
|
6111
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/GetMultiDeployedVersion", request.toApiJson(), this.apiOptions())
|
|
6112
|
-
.pipe(map(resp => GetMultiDeployedPromptVersionResponse.fromProto(resp)));
|
|
6113
|
-
}
|
|
6114
|
-
update(r) {
|
|
6115
|
-
const request = (r.toApiJson) ? r : new UpdatePromptRequest(r);
|
|
6116
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Update", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
6117
|
-
}
|
|
6118
|
-
deploy(r) {
|
|
6119
|
-
const request = (r.toApiJson) ? r : new DeployPromptRequest(r);
|
|
6120
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Deploy", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
6121
|
-
}
|
|
6122
|
-
list(r) {
|
|
6123
|
-
const request = (r.toApiJson) ? r : new ListPromptRequest(r);
|
|
6124
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/List", request.toApiJson(), this.apiOptions())
|
|
6125
|
-
.pipe(map(resp => ListPromptResponse.fromProto(resp)));
|
|
6126
|
-
}
|
|
6127
|
-
listVersions(r) {
|
|
6128
|
-
const request = (r.toApiJson) ? r : new ListPromptVersionsRequest(r);
|
|
6129
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/ListVersions", request.toApiJson(), this.apiOptions())
|
|
6130
|
-
.pipe(map(resp => ListPromptVersionsResponse.fromProto(resp)));
|
|
6131
|
-
}
|
|
6132
|
-
delete(r) {
|
|
6133
|
-
const request = (r.toApiJson) ? r : new DeletePromptRequest(r);
|
|
6134
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Delete", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
6135
|
-
}
|
|
6136
|
-
}
|
|
6137
|
-
PromptApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6138
|
-
PromptApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptApiService, providedIn: 'root' });
|
|
6139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptApiService, decorators: [{
|
|
6140
|
-
type: Injectable,
|
|
6141
|
-
args: [{ providedIn: 'root' }]
|
|
6142
|
-
}] });
|
|
6143
|
-
|
|
6144
6055
|
// *********************************
|
|
6145
6056
|
// Code generated by sdkgen
|
|
6146
6057
|
// DO NOT EDIT!.
|
|
@@ -6152,5 +6063,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6152
6063
|
* Generated bundle index. Do not edit.
|
|
6153
6064
|
*/
|
|
6154
6065
|
|
|
6155
|
-
export { Access, Action, AgentArchitecture, 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,
|
|
6066
|
+
export { Access, Action, AgentArchitecture, 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, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, ResumeStreamingGenerateChatAnswerRequest, RunTestsRequest, RunTestsResponse, Scope, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, StreamingGenerateChatAnswerRequest, StreamingGenerateChatAnswerResponse, StreamingGenerateChatAnswerResponseContentChunk, StreamingGenerateChatAnswerResponseContentType, StreamingGenerateChatAnswerResponseErrorChunk, StreamingGenerateChatAnswerResponseFinalChunk, StreamingGenerateChatAnswerResponseFunctionCompleteChunk, StreamingGenerateChatAnswerResponseFunctionProgressChunk, StreamingGenerateChatAnswerResponseFunctionStartChunk, StreamingGenerateChatAnswerResponseMetadataChunk, StreamingGenerateChatAnswerResponseStartChunk, TemplateVariable, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, VendorModel };
|
|
6156
6067
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|