@fonoster/sdk 0.13.3 → 0.13.5
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/dist/node/Applications.d.ts +63 -1
- package/dist/node/Applications.js +102 -0
- package/dist/node/client/types/ApplicationsClient.d.ts +2 -1
- package/dist/node/generated/node/applications_grpc_pb.js +34 -0
- package/dist/node/generated/node/applications_pb.js +1312 -0
- package/dist/node/generated/web/ApplicationsServiceClientPb.ts +43 -0
- package/dist/node/generated/web/applications_pb.d.ts +162 -0
- package/dist/node/generated/web/applications_pb.js +1312 -0
- package/dist/node/tsconfig.tsbuildinfo +1 -1
- package/dist/web/fonoster.min.js +1 -1
- package/dist/web/index.esm.js +1 -1
- package/package.json +4 -4
|
@@ -254,5 +254,48 @@ export class ApplicationsClient {
|
|
|
254
254
|
this.methodDescriptorDeleteApplication);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
+
methodDescriptorEvaluateIntelligence = new grpcWeb.MethodDescriptor(
|
|
258
|
+
'/fonoster.applications.v1beta2.Applications/EvaluateIntelligence',
|
|
259
|
+
grpcWeb.MethodType.UNARY,
|
|
260
|
+
applications_pb.EvaluateIntelligenceRequest,
|
|
261
|
+
applications_pb.EvaluateIntelligenceResponse,
|
|
262
|
+
(request: applications_pb.EvaluateIntelligenceRequest) => {
|
|
263
|
+
return request.serializeBinary();
|
|
264
|
+
},
|
|
265
|
+
applications_pb.EvaluateIntelligenceResponse.deserializeBinary
|
|
266
|
+
);
|
|
267
|
+
|
|
268
|
+
evaluateIntelligence(
|
|
269
|
+
request: applications_pb.EvaluateIntelligenceRequest,
|
|
270
|
+
metadata?: grpcWeb.Metadata | null): Promise<applications_pb.EvaluateIntelligenceResponse>;
|
|
271
|
+
|
|
272
|
+
evaluateIntelligence(
|
|
273
|
+
request: applications_pb.EvaluateIntelligenceRequest,
|
|
274
|
+
metadata: grpcWeb.Metadata | null,
|
|
275
|
+
callback: (err: grpcWeb.RpcError,
|
|
276
|
+
response: applications_pb.EvaluateIntelligenceResponse) => void): grpcWeb.ClientReadableStream<applications_pb.EvaluateIntelligenceResponse>;
|
|
277
|
+
|
|
278
|
+
evaluateIntelligence(
|
|
279
|
+
request: applications_pb.EvaluateIntelligenceRequest,
|
|
280
|
+
metadata?: grpcWeb.Metadata | null,
|
|
281
|
+
callback?: (err: grpcWeb.RpcError,
|
|
282
|
+
response: applications_pb.EvaluateIntelligenceResponse) => void) {
|
|
283
|
+
if (callback !== undefined) {
|
|
284
|
+
return this.client_.rpcCall(
|
|
285
|
+
this.hostname_ +
|
|
286
|
+
'/fonoster.applications.v1beta2.Applications/EvaluateIntelligence',
|
|
287
|
+
request,
|
|
288
|
+
metadata || {},
|
|
289
|
+
this.methodDescriptorEvaluateIntelligence,
|
|
290
|
+
callback);
|
|
291
|
+
}
|
|
292
|
+
return this.client_.unaryCall(
|
|
293
|
+
this.hostname_ +
|
|
294
|
+
'/fonoster.applications.v1beta2.Applications/EvaluateIntelligence',
|
|
295
|
+
request,
|
|
296
|
+
metadata || {},
|
|
297
|
+
this.methodDescriptorEvaluateIntelligence);
|
|
298
|
+
}
|
|
299
|
+
|
|
257
300
|
}
|
|
258
301
|
|
|
@@ -317,6 +317,168 @@ export namespace DeleteApplicationResponse {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
+
export class EvaluateIntelligenceRequest extends jspb.Message {
|
|
321
|
+
getIntelligence(): ProductContainer | undefined;
|
|
322
|
+
setIntelligence(value?: ProductContainer): EvaluateIntelligenceRequest;
|
|
323
|
+
hasIntelligence(): boolean;
|
|
324
|
+
clearIntelligence(): EvaluateIntelligenceRequest;
|
|
325
|
+
|
|
326
|
+
serializeBinary(): Uint8Array;
|
|
327
|
+
toObject(includeInstance?: boolean): EvaluateIntelligenceRequest.AsObject;
|
|
328
|
+
static toObject(includeInstance: boolean, msg: EvaluateIntelligenceRequest): EvaluateIntelligenceRequest.AsObject;
|
|
329
|
+
static serializeBinaryToWriter(message: EvaluateIntelligenceRequest, writer: jspb.BinaryWriter): void;
|
|
330
|
+
static deserializeBinary(bytes: Uint8Array): EvaluateIntelligenceRequest;
|
|
331
|
+
static deserializeBinaryFromReader(message: EvaluateIntelligenceRequest, reader: jspb.BinaryReader): EvaluateIntelligenceRequest;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export namespace EvaluateIntelligenceRequest {
|
|
335
|
+
export type AsObject = {
|
|
336
|
+
intelligence?: ProductContainer.AsObject,
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export class EvaluateIntelligenceResponse extends jspb.Message {
|
|
341
|
+
getResultsList(): Array<EvaluateIntelligenceResponse.ScenarioEvaluationReport>;
|
|
342
|
+
setResultsList(value: Array<EvaluateIntelligenceResponse.ScenarioEvaluationReport>): EvaluateIntelligenceResponse;
|
|
343
|
+
clearResultsList(): EvaluateIntelligenceResponse;
|
|
344
|
+
addResults(value?: EvaluateIntelligenceResponse.ScenarioEvaluationReport, index?: number): EvaluateIntelligenceResponse.ScenarioEvaluationReport;
|
|
345
|
+
|
|
346
|
+
serializeBinary(): Uint8Array;
|
|
347
|
+
toObject(includeInstance?: boolean): EvaluateIntelligenceResponse.AsObject;
|
|
348
|
+
static toObject(includeInstance: boolean, msg: EvaluateIntelligenceResponse): EvaluateIntelligenceResponse.AsObject;
|
|
349
|
+
static serializeBinaryToWriter(message: EvaluateIntelligenceResponse, writer: jspb.BinaryWriter): void;
|
|
350
|
+
static deserializeBinary(bytes: Uint8Array): EvaluateIntelligenceResponse;
|
|
351
|
+
static deserializeBinaryFromReader(message: EvaluateIntelligenceResponse, reader: jspb.BinaryReader): EvaluateIntelligenceResponse;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export namespace EvaluateIntelligenceResponse {
|
|
355
|
+
export type AsObject = {
|
|
356
|
+
resultsList: Array<EvaluateIntelligenceResponse.ScenarioEvaluationReport.AsObject>,
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export class ToolEvaluationReport extends jspb.Message {
|
|
360
|
+
getExpectedTool(): string;
|
|
361
|
+
setExpectedTool(value: string): ToolEvaluationReport;
|
|
362
|
+
|
|
363
|
+
getActualTool(): string;
|
|
364
|
+
setActualTool(value: string): ToolEvaluationReport;
|
|
365
|
+
|
|
366
|
+
getPassed(): boolean;
|
|
367
|
+
setPassed(value: boolean): ToolEvaluationReport;
|
|
368
|
+
|
|
369
|
+
getExpectedParameters(): google_protobuf_struct_pb.Struct | undefined;
|
|
370
|
+
setExpectedParameters(value?: google_protobuf_struct_pb.Struct): ToolEvaluationReport;
|
|
371
|
+
hasExpectedParameters(): boolean;
|
|
372
|
+
clearExpectedParameters(): ToolEvaluationReport;
|
|
373
|
+
|
|
374
|
+
getActualParameters(): google_protobuf_struct_pb.Struct | undefined;
|
|
375
|
+
setActualParameters(value?: google_protobuf_struct_pb.Struct): ToolEvaluationReport;
|
|
376
|
+
hasActualParameters(): boolean;
|
|
377
|
+
clearActualParameters(): ToolEvaluationReport;
|
|
378
|
+
|
|
379
|
+
getErrorMessage(): string;
|
|
380
|
+
setErrorMessage(value: string): ToolEvaluationReport;
|
|
381
|
+
|
|
382
|
+
serializeBinary(): Uint8Array;
|
|
383
|
+
toObject(includeInstance?: boolean): ToolEvaluationReport.AsObject;
|
|
384
|
+
static toObject(includeInstance: boolean, msg: ToolEvaluationReport): ToolEvaluationReport.AsObject;
|
|
385
|
+
static serializeBinaryToWriter(message: ToolEvaluationReport, writer: jspb.BinaryWriter): void;
|
|
386
|
+
static deserializeBinary(bytes: Uint8Array): ToolEvaluationReport;
|
|
387
|
+
static deserializeBinaryFromReader(message: ToolEvaluationReport, reader: jspb.BinaryReader): ToolEvaluationReport;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export namespace ToolEvaluationReport {
|
|
391
|
+
export type AsObject = {
|
|
392
|
+
expectedTool: string,
|
|
393
|
+
actualTool: string,
|
|
394
|
+
passed: boolean,
|
|
395
|
+
expectedParameters?: google_protobuf_struct_pb.Struct.AsObject,
|
|
396
|
+
actualParameters?: google_protobuf_struct_pb.Struct.AsObject,
|
|
397
|
+
errorMessage: string,
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
export class StepEvaluationReport extends jspb.Message {
|
|
403
|
+
getHumanInput(): string;
|
|
404
|
+
setHumanInput(value: string): StepEvaluationReport;
|
|
405
|
+
|
|
406
|
+
getExpectedResponse(): string;
|
|
407
|
+
setExpectedResponse(value: string): StepEvaluationReport;
|
|
408
|
+
|
|
409
|
+
getAiResponse(): string;
|
|
410
|
+
setAiResponse(value: string): StepEvaluationReport;
|
|
411
|
+
|
|
412
|
+
getEvaluationType(): EvaluateIntelligenceResponse.ExpectedTextType;
|
|
413
|
+
setEvaluationType(value: EvaluateIntelligenceResponse.ExpectedTextType): StepEvaluationReport;
|
|
414
|
+
|
|
415
|
+
getPassed(): boolean;
|
|
416
|
+
setPassed(value: boolean): StepEvaluationReport;
|
|
417
|
+
|
|
418
|
+
getErrorMessage(): string;
|
|
419
|
+
setErrorMessage(value: string): StepEvaluationReport;
|
|
420
|
+
|
|
421
|
+
getToolEvaluationsList(): Array<EvaluateIntelligenceResponse.ToolEvaluationReport>;
|
|
422
|
+
setToolEvaluationsList(value: Array<EvaluateIntelligenceResponse.ToolEvaluationReport>): StepEvaluationReport;
|
|
423
|
+
clearToolEvaluationsList(): StepEvaluationReport;
|
|
424
|
+
addToolEvaluations(value?: EvaluateIntelligenceResponse.ToolEvaluationReport, index?: number): EvaluateIntelligenceResponse.ToolEvaluationReport;
|
|
425
|
+
|
|
426
|
+
serializeBinary(): Uint8Array;
|
|
427
|
+
toObject(includeInstance?: boolean): StepEvaluationReport.AsObject;
|
|
428
|
+
static toObject(includeInstance: boolean, msg: StepEvaluationReport): StepEvaluationReport.AsObject;
|
|
429
|
+
static serializeBinaryToWriter(message: StepEvaluationReport, writer: jspb.BinaryWriter): void;
|
|
430
|
+
static deserializeBinary(bytes: Uint8Array): StepEvaluationReport;
|
|
431
|
+
static deserializeBinaryFromReader(message: StepEvaluationReport, reader: jspb.BinaryReader): StepEvaluationReport;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export namespace StepEvaluationReport {
|
|
435
|
+
export type AsObject = {
|
|
436
|
+
humanInput: string,
|
|
437
|
+
expectedResponse: string,
|
|
438
|
+
aiResponse: string,
|
|
439
|
+
evaluationType: EvaluateIntelligenceResponse.ExpectedTextType,
|
|
440
|
+
passed: boolean,
|
|
441
|
+
errorMessage: string,
|
|
442
|
+
toolEvaluationsList: Array<EvaluateIntelligenceResponse.ToolEvaluationReport.AsObject>,
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
export class ScenarioEvaluationReport extends jspb.Message {
|
|
448
|
+
getScenarioRef(): string;
|
|
449
|
+
setScenarioRef(value: string): ScenarioEvaluationReport;
|
|
450
|
+
|
|
451
|
+
getOverallPassed(): boolean;
|
|
452
|
+
setOverallPassed(value: boolean): ScenarioEvaluationReport;
|
|
453
|
+
|
|
454
|
+
getStepsList(): Array<EvaluateIntelligenceResponse.StepEvaluationReport>;
|
|
455
|
+
setStepsList(value: Array<EvaluateIntelligenceResponse.StepEvaluationReport>): ScenarioEvaluationReport;
|
|
456
|
+
clearStepsList(): ScenarioEvaluationReport;
|
|
457
|
+
addSteps(value?: EvaluateIntelligenceResponse.StepEvaluationReport, index?: number): EvaluateIntelligenceResponse.StepEvaluationReport;
|
|
458
|
+
|
|
459
|
+
serializeBinary(): Uint8Array;
|
|
460
|
+
toObject(includeInstance?: boolean): ScenarioEvaluationReport.AsObject;
|
|
461
|
+
static toObject(includeInstance: boolean, msg: ScenarioEvaluationReport): ScenarioEvaluationReport.AsObject;
|
|
462
|
+
static serializeBinaryToWriter(message: ScenarioEvaluationReport, writer: jspb.BinaryWriter): void;
|
|
463
|
+
static deserializeBinary(bytes: Uint8Array): ScenarioEvaluationReport;
|
|
464
|
+
static deserializeBinaryFromReader(message: ScenarioEvaluationReport, reader: jspb.BinaryReader): ScenarioEvaluationReport;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export namespace ScenarioEvaluationReport {
|
|
468
|
+
export type AsObject = {
|
|
469
|
+
scenarioRef: string,
|
|
470
|
+
overallPassed: boolean,
|
|
471
|
+
stepsList: Array<EvaluateIntelligenceResponse.StepEvaluationReport.AsObject>,
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
export enum ExpectedTextType {
|
|
477
|
+
EXACT = 0,
|
|
478
|
+
SIMILAR = 1,
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
320
482
|
export enum ApplicationType {
|
|
321
483
|
EXTERNAL = 0,
|
|
322
484
|
AUTOPILOT = 1,
|