Keep an everyday request in the normal support queue.
Input
{
"subject": "Workspace members",
"message": "How do I invite a teammate?"
}
Result
{
"category": "general",
"priority": "normal",
"owner": "support",
"reference": null,
"nextAction": "Review the note and reply with the next step."
}
A contract you can read.
Small methods. Explicit inputs. Predictable return shapes.
kernel.classify(input)
Route a support note using visible rules.
Parameters
Field
Type
Description
subject
string
Required. A concise support subject.
message
string
Required. The complete support message.
customer
string
Optional. A display name for context.
Returns Classification
Example
const result = kernel.classify({
subject: "Checkout charged me twice",
message: "Urgent: two charges for order 1042."
});
// result.owner === "payments"
kernel.extract(input)
Read structured fields from invoice text.
Parameters
Field
Type
Description
text
string
Required. Invoice reference, amount, and due date.
Returns InvoiceFields
Example
const invoice = kernel.extract({
text: "Invoice INV-204 for 840 USD is due on 2026-10-18."
});
// invoice.reference === "INV-204"
The support example evaluates billing and urgency rules, retains an order reference, and chooses an owner. The invoice example extracts a reference, amount, currency, and date. The response and execution trace update from those actual values.
Are these results generated by an AI service?
No. The examples use deterministic local rules so you can inspect every state without an API key. The SDK is a design concept; replace its example rules with your own runtime when integrating the template.
How does the interface handle invalid data?
Invalid JSON and missing or incorrectly typed required fields name the issue beside the input. The most recent valid result is preserved. On a narrow screen, a validation error switches the bench to its Input view.
Can I inspect or stop the execution animation?
Yes. Select any trace step, pause the replay, or turn motion off. A reduced-motion preference shows the complete result directly. The displayed durations are illustrative, not measured service latency.