bitfab 0.67.1 → 0.67.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7edc2e37708c89dd56c11df5120665113225fb70203597f27d7f8248c6af03e
4
- data.tar.gz: 32e6e61a1a662ad75b3ec42d7537fa2ccb902008bf5d0da9d8fec1d322afc4f2
3
+ metadata.gz: 9203bc60384eda942ef67d9bb7ade8292bbc8baeab9ef77c50801e108cd46cad
4
+ data.tar.gz: 2030fe0eb8ff537c2c7f0b95f87f8ee36a06b73f7241b83e3536b77f93b1a5d3
5
5
  SHA512:
6
- metadata.gz: d7658a55ed694fb16e3b6555da146212745e53297b6a071ab9713e7d73a2c5baa4dea4ec2362b63a7de6d7a62e305119749a0c41354220a00b2f4ee270d644ee
7
- data.tar.gz: 462ad2286342a7d424478dc94273bcc1abda17ae397c964022fe8fd57c039cec50dc7c1a9bef447cbf9530ed271b0891951bbee97ffae1e8bd3c767da47538d2
6
+ metadata.gz: e8ac643cd49dbe9dbdfb58df58352c0121e7e1d8cbb749f8dd5273dd15f71cac6559903c4f375e36359b41bb93bfe24bdb446a4e59258c99efcef744cf7fa81d
7
+ data.tar.gz: 8900f91b90dd241d8a3fd2602853ae45467a89dfa8835b60cda7c6f98126a276d477b742084eb7abc9c27d05fc9afd553397ab9e977d33f0cc38c8464e76878b
@@ -13,6 +13,18 @@ module Bitfab
13
13
  @http_client.get(scenario_path(trace_id))["scenario"]
14
14
  end
15
15
 
16
+ # Starts building the scenario for trace_id and returns at once, without waiting for it. Read it later with
17
+ # get_scenario. Returns {"status", "traceId", "scenarioId"}: "status" is "started" while Bitfab builds it in the
18
+ # background, or "already_generated" when the trace already has a scenario, which is left as it is and named by
19
+ # "scenarioId". "scenarioId" is nil while the trace has no scenario yet.
20
+ #
21
+ # A replay, a trace outside the organization, or a trace Bitfab cannot build a scenario for (not
22
+ # noah-agent-turn and no scenario callback) raises an error. Adding a trace to a dataset starts the same build
23
+ # only when the organization has a scenario callback.
24
+ def generate_scenario(trace_id)
25
+ @http_client.request("#{scenario_path(trace_id)}/generate", {})["generation"]
26
+ end
27
+
16
28
  # Updates the scenario built from trace_id and returns the saved hash.
17
29
  #
18
30
  # name:, description:, trigger:, and data: each replace the saved value whole. Keywords left out are kept.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bitfab
4
- VERSION = "0.67.1"
4
+ VERSION = "0.67.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitfab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.67.1
4
+ version: 0.67.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harvest Team