You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a0f4e71
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/out.openapi.yaml
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11059,6 +11059,7 @@ components:
11059
11059
- 'box'
11060
11060
type: 'object'
11061
11061
DecisionsBoxQuestion:
11062
+
description: 'Finds one target in an image in `state` and answers with one bounding box (`top`, `bottom`, `left`, `right` as fractions of the image). Served by TypeSafe Jev endpoints only; every other provider rejects a box question with `400` before anything is sent upstream.'
11062
11063
properties:
11063
11064
instructions:
11064
11065
anyOf:
@@ -11067,7 +11068,7 @@ components:
11067
11068
type: 'object'
11068
11069
- items: {}
11069
11070
type: 'array'
11070
-
description: 'A plain string, or a JSON object or array of structured guidance.'
11071
+
description: 'A description of the target to find, naming the image in `state` it is in; not a command, and no `criteria`.'
11071
11072
type:
11072
11073
enum:
11073
11074
- 'box'
@@ -11207,7 +11208,7 @@ components:
11207
11208
assets:
11208
11209
additionalProperties:
11209
11210
$ref: '#/components/schemas/DecisionsImageAsset'
11210
-
description: 'Images keyed by reference string, as in TypeSafe''s API. Write a reference wherever the image belongs in `state`, `instructions`, or `criteria`; every asset must be referenced at least once. Jev reads a reference as a whole string value or inside longer text. Other Decisions models read a whole-string reference wherever they read an `image_url` part and reject a reference inside longer text.'
11211
+
description: 'Images keyed by reference string, as in TypeSafe''s API. Write a reference wherever the image belongs in `state`, `instructions`, or `criteria`; every asset must be referenced at least once, or the request fails with `400` naming the unused key. TypeSafe Jev endpoints receive `assets` as written and read a reference as a whole string value or inside longer text. Every other provider has each whole-string reference resolved to an `image_url` part before the request is sent, so it is accepted only where that provider reads `image_url` parts (top-level `state` items), and a reference inside longer text fails with `400`. `image_url` parts and `assets` can be mixed in one request.'
11211
11212
type: 'object'
11212
11213
model:
11213
11214
type: 'string'
@@ -36764,7 +36765,7 @@ paths:
36764
36765
- $ref: "#/components/parameters/AppCategories"
36765
36766
/api/alpha/decisions:
36766
36767
post:
36767
-
description: 'Submits a Decisions request to the Decisions router'
36768
+
description: 'Asks a Decisions model typed questions (`noul`, `choice`, `score`, `box`) about the content in `state` and returns one typed answer per question with its probabilities. Images, audio and video go in `state` as `image_url`, `input_audio` and `video_url` parts; PNG and JPEG images can instead go once in `assets` and be referenced by key. Which question types, media parts and asset references an endpoint accepts depends on the provider; a request an endpoint cannot serve fails with `400` before anything is sent upstream. See the [Multimodal Decisions guide](/docs/guides/community/multimodal-decisions) for the per-provider table. Alpha: the shape may change.'
Copy file name to clipboardExpand all lines: docs/components/decisionsboxquestion.mdx
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,12 @@
2
2
title: "DecisionsBoxQuestion"
3
3
---
4
4
5
+
Finds one target in an image in `state` and answers with one bounding box (`top`, `bottom`, `left`, `right` as fractions of the image). Served by TypeSafe Jev endpoints only; every other provider rejects a box question with `400` before anything is sent upstream.
|`instructions`|[components.DecisionsBoxQuestionInstructions](../components/decisionsboxquestioninstructions.mdx)| ✔️| A plain string, or a JSON object or array of structured guidance.|
|`instructions`|[components.DecisionsBoxQuestionInstructions](../components/decisionsboxquestioninstructions.mdx)| ✔️| A description of the target to find, naming the image in `state` it is in; not a command, and no `criteria`.|
0 commit comments