@botpress/api 0.44.1 → 0.45.1

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
@@ -2193,7 +2193,8 @@ export const state = {
2193
2193
  "cancelled",
2194
2194
  "listening",
2195
2195
  "paused",
2196
- "failed"
2196
+ "failed",
2197
+ "in_progress"
2197
2198
  ],
2198
2199
  "description": "Status of the workflow"
2199
2200
  },
@@ -2212,6 +2213,10 @@ export const state = {
2212
2213
  "userId": {
2213
2214
  "type": "string",
2214
2215
  "description": "Specific user related to this workflow"
2216
+ },
2217
+ "eventId": {
2218
+ "type": "string",
2219
+ "description": "Event id must be specified if the workflow is updated with the status in_progress"
2215
2220
  }
2216
2221
  },
2217
2222
  "title": "updateWorkflowBody",
@@ -5450,6 +5455,108 @@ export const state = {
5450
5455
  "additionalProperties": {
5451
5456
  "type": "number"
5452
5457
  }
5458
+ },
5459
+ "llm": {
5460
+ "type": "object",
5461
+ "properties": {
5462
+ "calls": {
5463
+ "type": "integer"
5464
+ },
5465
+ "errors": {
5466
+ "type": "integer"
5467
+ },
5468
+ "inputTokens": {
5469
+ "type": "integer"
5470
+ },
5471
+ "outputTokens": {
5472
+ "type": "integer"
5473
+ },
5474
+ "latency": {
5475
+ "type": "object",
5476
+ "properties": {
5477
+ "mean": {
5478
+ "type": "number"
5479
+ },
5480
+ "sd": {
5481
+ "type": "number"
5482
+ },
5483
+ "min": {
5484
+ "type": "number"
5485
+ },
5486
+ "max": {
5487
+ "type": "number"
5488
+ }
5489
+ },
5490
+ "required": [
5491
+ "mean",
5492
+ "sd",
5493
+ "min",
5494
+ "max"
5495
+ ],
5496
+ "description": "The time it took for the LLM to complete its response. Values are expressed in milliseconds"
5497
+ },
5498
+ "tokensPerSecond": {
5499
+ "type": "object",
5500
+ "properties": {
5501
+ "mean": {
5502
+ "type": "number"
5503
+ },
5504
+ "sd": {
5505
+ "type": "number"
5506
+ },
5507
+ "min": {
5508
+ "type": "number"
5509
+ },
5510
+ "max": {
5511
+ "type": "number"
5512
+ }
5513
+ },
5514
+ "required": [
5515
+ "mean",
5516
+ "sd",
5517
+ "min",
5518
+ "max"
5519
+ ],
5520
+ "description": "LLM response generation speed expressed in output tokens per second."
5521
+ },
5522
+ "cost": {
5523
+ "type": "object",
5524
+ "properties": {
5525
+ "sum": {
5526
+ "type": "number"
5527
+ },
5528
+ "mean": {
5529
+ "type": "number"
5530
+ },
5531
+ "sd": {
5532
+ "type": "number"
5533
+ },
5534
+ "min": {
5535
+ "type": "number"
5536
+ },
5537
+ "max": {
5538
+ "type": "number"
5539
+ }
5540
+ },
5541
+ "required": [
5542
+ "sum",
5543
+ "mean",
5544
+ "sd",
5545
+ "min",
5546
+ "max"
5547
+ ],
5548
+ "description": "Values are expressed in U.S. dollars"
5549
+ }
5550
+ },
5551
+ "required": [
5552
+ "calls",
5553
+ "errors",
5554
+ "inputTokens",
5555
+ "outputTokens",
5556
+ "latency",
5557
+ "tokensPerSecond",
5558
+ "cost"
5559
+ ]
5453
5560
  }
5454
5561
  },
5455
5562
  "required": [
@@ -5463,7 +5570,8 @@ export const state = {
5463
5570
  "botMessages",
5464
5571
  "events",
5465
5572
  "eventTypes",
5466
- "customEvents"
5573
+ "customEvents",
5574
+ "llm"
5467
5575
  ]
5468
5576
  }
5469
5577
  }
@@ -12229,7 +12337,7 @@ export const state = {
12229
12337
  "title": "Botpress API",
12230
12338
  "description": "API for Botpress Cloud",
12231
12339
  "server": "https://api.botpress.cloud",
12232
- "version": "0.44.1",
12340
+ "version": "0.45.1",
12233
12341
  "prefix": "v1"
12234
12342
  },
12235
12343
  "errors": [