Skip to main content
POST
Preview a smart-model decision

Authorizations

Authorization
string
header
required

JWT obtained through Barndoor's authentication flow. Pass the token verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's loginInteractive() helper to obtain a token in scripts and notebooks.

Body

application/json
model_alias
string
required
determiner_model_alias
string
required
slots
object[]
required
Minimum array length: 1
text
string
required

Sample request body the determiner should classify

description
string
enabled
boolean
default:true
context_breakpoints
integer[]
determiner_input_max_chars
integer
default_slot_on_failure
integer
endpoint
string
default:/v1/chat/completions
requires_tools
boolean
default:false
requires_vision
boolean
default:false
token_count
integer

Optional override for the estimated token count

Response

The slot the determiner picked and the resolved alias

target_model_alias
string
decision
object

Routing decision details (slot index, classifier output, etc.)