Class ScaffoldIntentParser
- Namespace
- Kuestenlogik.Bowire.Scaffold
- Assembly
- Kuestenlogik.Bowire.Scaffold.dll
Reads a spec out of a sentence without a model (#177) — what scaffolding falls back to when no AI provider answers, and what the CLI uses unless told otherwise.
public static class ScaffoldIntentParser
- Inheritance
-
ScaffoldIntentParser
- Inherited Members
Remarks
It understands the phrasing the ticket uses and little more:
REST CRUD for User with email + role,
gRPC service for orders with customer (required), total: double, paid bool.
The protocol comes from rest / grpc in the sentence, the
entity from the word after for (or für), the fields from
the list after with (or mit), split on commas, +,
and / und. A field takes a type from a type word next to it
and is required when it says required, pflicht or ends in
*. Whatever it had to assume, it says in Notes.
Methods
Parse(string, string?)
Parse intent; protocol wins over the sentence when given.
public static (ScaffoldSpec Spec, IReadOnlyList<string> Notes) Parse(string intent, string? protocol = null)