NmCopilotResult class
Answer of a copilot query: the matching item ids, a line explaining them, or the error. Added in 0.3.0.
- Annotations
Constructors
-
NmCopilotResult({required String query, List<
String> matchingIds = const [], String? explanation, String? error}) -
Creates an NmCopilotResult.
const
Properties
- error → String?
-
Why the query failed; null on success.
final
- explanation → String?
-
How the copilot read the question.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
matchingIds
→ List<
String> -
Ids of the items that match.
final
- query → String
-
The question asked.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success → bool
-
Whether the query succeeded.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited