-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prompt should support generating markup cells (#285)
## Suggest Markup Cells * Now that the frontend can render markup as ghost cells we want the agent to start generating them * This will allow the AI to 1. Reason about the outputs of commands - e.g. interpret whether the output supports or refutes a hypothesis 2. Suggest markup cells containing plans * Related to #284 * Don't restrict the response to a single code block. * Now that we can render markup cells as ghost cells * We should allow multi-block responses that can include markup cells ## Change PostProcessing of responses * We no longer limit the response to a single code block. * We allow at most 2 blocks; one markup and one code cell * We do this because from a UX experience generating multiple cells is confusing * If there are multiple markup blocks in sequence we merge them into one block * This is less confusing for users * I believe the multiple cells is an artifact of Runme parses markup into blocks. * Drop any cells after the first code block in the response * Remove the hack which only generated completions if the current cell was a markup cell. We should generate completions even if the cell is code or output cell * This was a cost saving measure. However, switching to gpt4o-mini should have sufficiently reduced costs that we can afford to generate completions on all cells.
- Loading branch information
Showing
17 changed files
with
789 additions
and
346 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
Oops, something went wrong.