-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a command which prints the exact prompt that will be sent to virtual assitants by Neural so you can more easily debug what Neural is going to do.
- Loading branch information
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
After: | ||
unlet! g:output | ||
|
||
Given markdown(An empty Markdown file): | ||
Execute(An empty markdown prompt should be explained correctly): | ||
redir => g:output | ||
silent NeuralViewPrompt | ||
redir END | ||
|
||
AssertEqual | ||
\ [ | ||
\ 'The following prompt will be sent.', | ||
\ 'Write text in a markdown file. ' | ||
\ ], | ||
\ sort(filter(split(g:output, "\n"), '!empty(v:val)')) | ||
|
||
Execute(A markdown prompt with some text should be explained correctly): | ||
redir => g:output | ||
silent NeuralViewPrompt here is some text | ||
redir END | ||
|
||
AssertEqual | ||
\ [ | ||
\ 'The following prompt will be sent.', | ||
\ 'Write text in a markdown file. here is some text' | ||
\ ], | ||
\ sort(filter(split(g:output, "\n"), '!empty(v:val)')) |