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 +4 -4
- data/lib/dexa-ai-sdk/tasks/client.rb +1 -1
- data/lib/dexa-ai-sdk/tasks/types/extract_request.rb +2 -4
- data/lib/dexa-ai-sdk/types/decide_result.rb +2 -0
- data/lib/dexa-ai-sdk/types/extract_response.rb +2 -0
- data/lib/dexa-ai-sdk/types/extract_task.rb +2 -4
- data/lib/dexa-ai-sdk/version.rb +1 -1
- data/reference.md +5 -13
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 940945087b050b08e59baff45e0c1a8c5f9c5437c121688d87c732b4b9e89b8a
|
|
4
|
+
data.tar.gz: 3cf9e0e6ff6ab368407858684c8e9ab43aaa9eb2aea666ea562ae9d99d6873f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 18a6306d577a819639113feaaf5c9e10974aee0644f2de65c1693a494ab7720db5698777308a2f9dbe4ba959ecfe5fbc5495c9f6d14d334014ca7ebe1e7b2431
|
|
7
|
+
data.tar.gz: 2302b50ee22692360b21ac4664786b210eff076d2a10abb7c1993f45772491bbfe077aa9ba84bab007716150b74fec4ba825df8c46e2d4788d583c25243222c2
|
|
@@ -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 :
|
|
17
|
+
field :question, -> { String }, optional: false, nullable: false
|
|
18
18
|
|
|
19
|
-
field :
|
|
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 :
|
|
10
|
+
field :question, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
12
|
-
field :
|
|
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
|
|
data/lib/dexa-ai-sdk/version.rb
CHANGED
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
|
-
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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.
|
|
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-
|
|
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.
|