-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decompose ChatController.sendChat into handlers for different request…
… types (#6469) Factor out the main user message submission handler (`ChatController.sendChat`) into multiple handlers: - `ChatHandler` - `DeepCodyHandler` - `SearchHandler` Previously, `ChatController.sendChat` was a long long method that implicitly encoded these different types of response handlers through various conditionals and difficult-to-reason-about state. Now, each request types gets its own handler class, which more clearly separates concerns. This will allow us to implement more complex logic for each request type without breaking encapsulation, and it also opens the door to more easily add new types of agentic handlers in the future. Also remove the `edit` and `insert` message intents, which seem to be defunct/unused. There should be no behavior change. Telemetry behavior is preserved.
- Loading branch information
Showing
16 changed files
with
2,021 additions
and
1,907 deletions.
There are no files selected for viewing
1,018 changes: 487 additions & 531 deletions
1,018
agent/recordings/customCommandsClient_509552979/recording.har.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
1,146 changes: 522 additions & 624 deletions
1,146
agent/recordings/defaultClient_631904893/recording.har.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
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
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.