QLayaRoutingTask class

A workflow routing task.

Routes text to the appropriate handler, department, or workflow destination from routes.

Inheritance

Constructors

QLayaRoutingTask({required String text, required List<String> routes, String? instruction, String questionId = 'route'})

Properties

hashCode → int
The hash code for this object.
no setterinherited
instruction → String
Routing prompt or instruction.
final
model → QLayaModelSpec
The model specification — always resolves to the bundled qlaya.int8.onnx.
no setterinherited
questionId → String
Unique question identifier for tracking the answer.
final
routes → List<String>
Target route destinations.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
The input text to classify, score, verify, or route.
final

Methods

buildQuestions() → List<QLayaQuestion>
Builds the questions payload sent to the QLaya inference engine.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseResult(QLayaPrediction prediction) → QLayaRoutingResult
Parses the raw prediction response into the typed result T.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited