@botpress/api 0.44.1 → 0.45.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/src/gen/state.ts CHANGED
@@ -5450,6 +5450,108 @@ export const state = {
5450
5450
  "additionalProperties": {
5451
5451
  "type": "number"
5452
5452
  }
5453
+ },
5454
+ "llm": {
5455
+ "type": "object",
5456
+ "properties": {
5457
+ "calls": {
5458
+ "type": "integer"
5459
+ },
5460
+ "errors": {
5461
+ "type": "integer"
5462
+ },
5463
+ "inputTokens": {
5464
+ "type": "integer"
5465
+ },
5466
+ "outputTokens": {
5467
+ "type": "integer"
5468
+ },
5469
+ "latency": {
5470
+ "type": "object",
5471
+ "properties": {
5472
+ "mean": {
5473
+ "type": "number"
5474
+ },
5475
+ "sd": {
5476
+ "type": "number"
5477
+ },
5478
+ "min": {
5479
+ "type": "number"
5480
+ },
5481
+ "max": {
5482
+ "type": "number"
5483
+ }
5484
+ },
5485
+ "required": [
5486
+ "mean",
5487
+ "sd",
5488
+ "min",
5489
+ "max"
5490
+ ],
5491
+ "description": "The time it took for the LLM to complete its response. Values are expressed in milliseconds"
5492
+ },
5493
+ "tokensPerSecond": {
5494
+ "type": "object",
5495
+ "properties": {
5496
+ "mean": {
5497
+ "type": "number"
5498
+ },
5499
+ "sd": {
5500
+ "type": "number"
5501
+ },
5502
+ "min": {
5503
+ "type": "number"
5504
+ },
5505
+ "max": {
5506
+ "type": "number"
5507
+ }
5508
+ },
5509
+ "required": [
5510
+ "mean",
5511
+ "sd",
5512
+ "min",
5513
+ "max"
5514
+ ],
5515
+ "description": "LLM response generation speed expressed in output tokens per second."
5516
+ },
5517
+ "cost": {
5518
+ "type": "object",
5519
+ "properties": {
5520
+ "sum": {
5521
+ "type": "number"
5522
+ },
5523
+ "mean": {
5524
+ "type": "number"
5525
+ },
5526
+ "sd": {
5527
+ "type": "number"
5528
+ },
5529
+ "min": {
5530
+ "type": "number"
5531
+ },
5532
+ "max": {
5533
+ "type": "number"
5534
+ }
5535
+ },
5536
+ "required": [
5537
+ "sum",
5538
+ "mean",
5539
+ "sd",
5540
+ "min",
5541
+ "max"
5542
+ ],
5543
+ "description": "Values are expressed in U.S. dollars"
5544
+ }
5545
+ },
5546
+ "required": [
5547
+ "calls",
5548
+ "errors",
5549
+ "inputTokens",
5550
+ "outputTokens",
5551
+ "latency",
5552
+ "tokensPerSecond",
5553
+ "cost"
5554
+ ]
5453
5555
  }
5454
5556
  },
5455
5557
  "required": [
@@ -5463,7 +5565,8 @@ export const state = {
5463
5565
  "botMessages",
5464
5566
  "events",
5465
5567
  "eventTypes",
5466
- "customEvents"
5568
+ "customEvents",
5569
+ "llm"
5467
5570
  ]
5468
5571
  }
5469
5572
  }
@@ -12229,7 +12332,7 @@ export const state = {
12229
12332
  "title": "Botpress API",
12230
12333
  "description": "API for Botpress Cloud",
12231
12334
  "server": "https://api.botpress.cloud",
12232
- "version": "0.44.1",
12335
+ "version": "0.45.0",
12233
12336
  "prefix": "v1"
12234
12337
  },
12235
12338
  "errors": [