dexa-ai-sdk 0.5.0 → 0.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 655265b392a6647d2f429557d30529ebf6670585844adde9990bd649e26829f6
4
- data.tar.gz: d239ac0a5ad7b3313ca4f35b75b2f372aab88ab76ca6814820e06ab42a7f8a25
3
+ metadata.gz: 940945087b050b08e59baff45e0c1a8c5f9c5437c121688d87c732b4b9e89b8a
4
+ data.tar.gz: 3cf9e0e6ff6ab368407858684c8e9ab43aaa9eb2aea666ea562ae9d99d6873f6
5
5
  SHA512:
6
- metadata.gz: f19bb24a2d69cd55ff22dea3cdce2490c7c98409b061734cd983119c445cf75ffdea909ade3cd8c603666e5a5830d09a8bc0e5a5519551df04bc4047c3abe4ed
7
- data.tar.gz: ff56bff62ddf1b613ef01c47360d64dbf6a84bcaf0e4e837cf9326cb39e773a4fb5691048a31e44c5a47630a56114311449376a947c1b2d6007d4daa82333b78
6
+ metadata.gz: 18a6306d577a819639113feaaf5c9e10974aee0644f2de65c1693a494ab7720db5698777308a2f9dbe4ba959ecfe5fbc5495c9f6d14d334014ca7ebe1e7b2431
7
+ data.tar.gz: 2302b50ee22692360b21ac4664786b210eff076d2a10abb7c1993f45772491bbfe077aa9ba84bab007716150b74fec4ba825df8c46e2d4788d583c25243222c2
@@ -153,7 +153,7 @@ module DexaAiSdk
153
153
  # @example
154
154
  # client.tasks.extract(
155
155
  # model: "model",
156
- # instruction: "instruction"
156
+ # question: "question"
157
157
  # )
158
158
  #
159
159
  # @return [DexaAiSdk::Types::ExtractResponse]
@@ -14,11 +14,9 @@ module DexaAiSdk
14
14
 
15
15
  field :audio, -> { Internal::Types::Array[DexaAiSdk::Types::AudioInput] }, optional: true, nullable: false
16
16
 
17
- field :instruction, -> { String }, optional: false, nullable: false
17
+ field :question, -> { String }, optional: false, nullable: false
18
18
 
19
- field :fields, -> { Internal::Types::Array[String] }, optional: true, nullable: false
20
-
21
- field :keys, -> { Internal::Types::Array[String] }, optional: true, nullable: false
19
+ field :instruction, -> { String }, optional: true, nullable: false
22
20
 
23
21
  field :schema, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
24
22
 
@@ -5,6 +5,8 @@ module DexaAiSdk
5
5
  class DecideResult < Internal::Types::Model
6
6
  field :value, -> { String }, optional: false, nullable: false
7
7
 
8
+ field :probabilities, -> { Internal::Types::Hash[String, Float] }, optional: false, nullable: false
9
+
8
10
  field :reason, -> { String }, optional: true, nullable: false
9
11
  end
10
12
  end
@@ -13,6 +13,8 @@ module DexaAiSdk
13
13
 
14
14
  field :data, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
15
15
 
16
+ field :value, -> { String }, optional: true, nullable: false
17
+
16
18
  field :usage, -> { DexaAiSdk::Types::Usage }, optional: false, nullable: false
17
19
  end
18
20
  end
@@ -7,11 +7,9 @@ module DexaAiSdk
7
7
 
8
8
  field :id, -> { String }, optional: true, nullable: false
9
9
 
10
- field :instruction, -> { String }, optional: false, nullable: false
10
+ field :question, -> { String }, optional: false, nullable: false
11
11
 
12
- field :fields, -> { Internal::Types::Array[String] }, optional: true, nullable: false
13
-
14
- field :keys, -> { Internal::Types::Array[String] }, optional: true, nullable: false
12
+ field :instruction, -> { String }, optional: true, nullable: false
15
13
 
16
14
  field :schema, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
17
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DexaAiSdk
4
- VERSION = "0.5.0"
4
+ VERSION = "0.6.0"
5
5
  end
data/reference.md CHANGED
@@ -181,7 +181,7 @@ client.tasks.decide(
181
181
  <dl>
182
182
  <dd>
183
183
 
184
- **choices:** `Internal::Types::Array[String]`
184
+ **choices:** `Internal::Types::Array[String]` — Options to decide between. Defaults to ['yes', 'no'] for boolean decisions; can specify more than 2 options.
185
185
 
186
186
  </dd>
187
187
  </dl>
@@ -189,7 +189,7 @@ client.tasks.decide(
189
189
  <dl>
190
190
  <dd>
191
191
 
192
- **options:** `Internal::Types::Array[String]`
192
+ **options:** `Internal::Types::Array[String]` — Alias for choices. Defaults to ['yes', 'no'].
193
193
 
194
194
  </dd>
195
195
  </dl>
@@ -272,7 +272,7 @@ client.tasks.decide(
272
272
  ```ruby
273
273
  client.tasks.extract(
274
274
  model: "model",
275
- instruction: "instruction"
275
+ question: "question"
276
276
  )
277
277
  ```
278
278
  </dd>
@@ -328,15 +328,7 @@ client.tasks.extract(
328
328
  <dl>
329
329
  <dd>
330
330
 
331
- **instruction:** `String`
332
-
333
- </dd>
334
- </dl>
335
-
336
- <dl>
337
- <dd>
338
-
339
- **fields:** `Internal::Types::Array[String]`
331
+ **question:** `String` — Question or extraction prompt
340
332
 
341
333
  </dd>
342
334
  </dl>
@@ -344,7 +336,7 @@ client.tasks.extract(
344
336
  <dl>
345
337
  <dd>
346
338
 
347
- **keys:** `Internal::Types::Array[String]`
339
+ **instruction:** `String` — Backward-compatible alias for question
348
340
 
349
341
  </dd>
350
342
  </dl>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dexa-ai-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Durga Sai
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-10-15 00:00:00.000000000 Z
11
+ date: 2026-10-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Dexa runs decide and extract tasks against one context in a single request,
14
14
  from Ruby.