Recipe catalog / daw-request-kind
Classify a request to a music program
daw-request-kind is a Jev recipe from the jev-recipes TypeScript package. What does request ask a DAW or music program to do: record, edit, mix, apply an effect, arrange, export, or unclear? Use it when you are building voice or chat control for a DAW, notation program, or recording app and need to route each spoken or typed request to the handler that owns that kind of operation.
Last updated .
Explore this recipe interactively · Source and implementation guide · Markdown version
How do I use daw-request-kind in TypeScript?
Install with npm install jev-recipes. Requires Node.js 22.9 or newer and ES modules. Set TYPESAFE_API_KEY in your server environment for live calls, which send input to TypeSafe and use API quota. See the installation guide.
import { dawRequestKind } from 'jev-recipes/daw-request-kind';
const result = await dawRequestKind({
"request": "Quantize the drum track to sixteenth notes from bar 9 to bar 24, but leave the hi-hat lane alone.",
"minConfidence": 0.8
});
console.log(result);
What input does daw-request-kind take?
| Field | Type | Needed |
|---|---|---|
| request | string | Required |
| minConfidence | number | Optional |
Full input and result schemas
{
"input": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"request": {
"type": "string"
},
"minConfidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"request"
]
},
"result": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"model": {
"type": "string"
},
"usage": {
"type": "object",
"properties": {
"input_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"output_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"input_tokens",
"output_tokens"
],
"additionalProperties": false
},
"status": {
"type": "string",
"enum": [
"ready",
"review"
]
},
"verdict": {
"type": "string",
"enum": [
"record",
"edit",
"mix",
"effect",
"arrange",
"export",
"unclear"
]
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"probabilities": {
"type": "object",
"propertyNames": {
"type": "string",
"enum": [
"record",
"edit",
"mix",
"effect",
"arrange",
"export",
"unclear"
]
},
"additionalProperties": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"required": [
"record",
"edit",
"mix",
"effect",
"arrange",
"export",
"unclear"
]
}
},
"required": [
"model",
"usage",
"status",
"verdict",
"confidence",
"probabilities"
],
"additionalProperties": false
}
}What does a daw-request-kind result look like?
This hand-authored response demonstrates the contract. It is not a model accuracy measurement. Run it without an API key: npx jev-recipes demo daw-request-kind.
{
"model": "demo-fixture",
"usage": {
"input_tokens": 0,
"output_tokens": 0
},
"status": "ready",
"verdict": "edit",
"confidence": 0.9,
"probabilities": {
"record": 0.01,
"edit": 0.9,
"mix": 0.02,
"effect": 0.01,
"arrange": 0.03,
"export": 0,
"unclear": 0.03
}
}
Input
See shared options and behavior for client configuration, validation, and errors. Types are inferred from this folder's Zod 4 schemas.
Result
verdict is one of record, edit, mix, effect, arrange, export, unclear. unclear means the supplied facts do not establish a decision and always requires review.
A result is ready when confidence meets minConfidence and the verdict is not unclear. Inspect the verdict as well as the status: a ready result can name an outcome your application treats as negative. probabilities covers every verdict.
Reuse and calls
Uses the shared choice helper for the Jev call and response parsing. This folder owns its question, verdict criteria, and review policy. A live invocation makes one logical Jev request.
Limits
The label names the kind of operation, not its parameters: track names, bar ranges, values, and file formats still have to be extracted by a separate step before anything runs. Compound requests are classified by the operation pressed most, so a request to quantize and then bounce lands on one label and should be split in code when both steps matter. Whether the operation is possible in the current project, needs confirmation, or should be undoable is decided by the application, not by this label.
Example input
demo.json contains editable input and a hand-authored response. After installing jev-recipes, npx jev-recipes demo daw-request-kind shows an offline illustration, not an accuracy measurement. Use npx jev-recipes describe daw-request-kind to inspect the input and result schemas.
How accurate is daw-request-kind?
No verified live accuracy measurement is available. Evaluate representative cases before using this decision in your workflow.
Use the evaluation guide to measure this decision on your own labeled cases.
What are the limits of daw-request-kind?
- Classifies the kind of operation requested, not its parameters. Extract track names, times, values, and file formats in a separate step.
- A request that chains several operations is classified by the one it asks for first or presses most. Split compound requests in code when each step needs its own handler.
- Does not judge whether the operation is possible in the current project or safe to perform without confirmation.
Which recipes are related to daw-request-kind?
- route: Use route when the destinations are your own caller-defined list rather than this fixed set of music production operations.
- turn-intent: Use turn-intent to classify the conversational role of a turn, such as a question or a correction, rather than which production operation it asks for.