laya_decide
Run local decisions on text, email, tickets, or JSON by defining typed questions. Get probabilities and act/escalate signals in ~10-20 ms with no text generation.
Instructions
Ask the local Laya decision engine typed questions about a state (text, email, ticket or JSON). Each question is choice|score|noul; answers return probabilities plus an act/escalate signal in ~10-20 ms with no text generation. Define the answer space per call. Keep choice under ~20 options. Treat probabilities as hints until temperatures are refit on your own data.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"state": "<state>",
"questions": "<questions>"
},
"name": "laya_decide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| preset | No | ||
| questions | Yes | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |