Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify intent selector, model selector, and agentic chat dropdown #6690

Open
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

beyang
Copy link
Member

@beyang beyang commented Jan 18, 2025

TODO

  • Icons
  • setAgent (setHandler) should also set model
  • Remove intent status update except when using 'auto' handler
  • Update intent button
  • Update ToolboxManager
  • Remove hardcoded "deep-cody" (all instances)
  • Default agentID needs to be consistent with what's selected in UI (right now defaults to "deep-cody")
  • When code search intent is detected with "agentic chat" selected, response is empty
  • fix getTooltip
  • "Agent" -> "Handler" renames
  • Create chat/setAgent handler
  • Fix tests

Later

  • Port ToolCody over

Test plan

@beyang beyang force-pushed the bl/unify-intent-model-selector branch from 527e09f to 2d34d03 Compare January 18, 2025 01:26
@beyang beyang force-pushed the bl/unify-intent-model-selector branch from 2757dbe to 2e656dc Compare January 18, 2025 08:32
@beyang beyang force-pushed the bl/unify-intent-model-selector branch from 461c851 to 7937fee Compare January 18, 2025 21:50
@beyang beyang changed the title draft Unify intent selector, model selector, and agentic chat dropdown Jan 19, 2025
@beyang beyang marked this pull request as ready for review January 19, 2025 09:50
@beyang beyang requested a review from abeatrix January 19, 2025 09:50
Comment on lines +50 to +51
.aiderignore
.aider.*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔

Copy link
Contributor

@abeatrix abeatrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tested the build locally but left some questions inline about the missing feature flags check for agentic chat (deep cody) - do we need to add them back?

map(([enableToolCody, models]) => {
const handlers: OmniboxHandlerOption[] = []
handlers.push(OmniboxHandlers.Auto)
handlers.push(OmniboxHandlers.DeepCody)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need to check if they have the feature flags for agentic chat and terminal access before we add the handler?

([hasEarlyAccess, isDeepCodyEnabled, defaultToHaiku]) => {
([
hasEarlyAccess,
isDeepCodyEnabled,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add back agentic chat to the model list here?

@@ -85,7 +84,7 @@ class ToolFactory {
public getInstances(): CodyTool[] {
// Create fresh instances of all registered tools
return Array.from(this.tools.entries())
.filter(([name]) => name !== 'CliTool' || toolboxManager.getSettings()?.shell?.enabled)
.filter(([name]) => name !== 'CliTool')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should check the feature flags value for agentic chat terminal access, and if the client supports terminal access, before we filter the cli tool.

const { model } = handler
if (!model) {
if (handler.id === OmniboxHandlers.DeepCody.id) {
return 'An agent powered by Claude 3.5 Sonnet (New) and other models with tool-use capabilities to gather contextual information for better responses.'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return 'An agent powered by Claude 3.5 Sonnet (New) and other models with tool-use capabilities to gather contextual information for better responses.'
return 'An agent powered by Claude 3.5 Haiku with tool-use capabilities to gather contextual information for better responses.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants