Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

787 B
Raw Blame
{
 "category": {
  "type": "choice",
  "instructions": "Which team should handle the email in `body`?",
  "criteria": {
   "billing": "invoices, payments, refunds",
   "technical": "bugs, outages, integrations",
   "sales": "pricing, demos, new purchases",
   "security": "phishing, scams, account compromise",
   "hr": "hiring, leave, payroll",
   "other": "none of the above"
  }
 },
 "is_spam": {
  "type": "noul",
  "instructions": "Is this email unsolicited spam or bulk marketing?"
 },
 "urgency": {
  "type": "score",
  "instructions": "How urgent is the request in `body`?",
  "criteria": [
   "no time pressure",
   "needs attention soon",
   "blocking issue or hard deadline"
  ]
 },
 "needs_reply": {
  "type": "noul",
  "instructions": "Does the sender expect a reply?"
 }
}