WorkspaceQueryStep class
Find matching code snippets from user's workspace.
For (X) query or code input, semantically matching snippets (x1), (x2), (x3) etc are extracted.
Examples of (x):
- 'Bloc files of $codeAttachment' => will return all top files (state, event, controller) from user's workspace relevant to the code attachment.
- 'Repository Tests` => will return the top tests for repository object's from user's workspace.
These come in handy as context to be passed in the prompt. Remember this is semantic embedding matching and is not 100% accurate.
Usage:
final userQuery = StringInput('Your query');
final matchingDocuments = MatchDocumentOuput();
return [
WorkspaceQueryStep(query: '$userQuery', output: matchingCode)
];
Constructors
- WorkspaceQueryStep({required String query, required MultiCodeObject output})
Properties
-
dashOutputs
→ List<
DashOutput> -
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- output → MultiCodeObject
-
final
- query → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → String
-
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
process(
) → Future< Map< String, dynamic> > -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited