diff --git a/src/websocket/messageHandler.ts b/src/websocket/messageHandler.ts index fef4a04..08bb4c4 100644 --- a/src/websocket/messageHandler.ts +++ b/src/websocket/messageHandler.ts @@ -1,7 +1,6 @@ import { WebSocket } from 'ws'; -import pickSuitableAgent from '../core/agentPicker'; -import handleWebSearch from '../agents/webSearchAgent'; import { BaseMessage, AIMessage, HumanMessage } from '@langchain/core/messages'; +import handleWebSearch from '../agents/webSearchAgent'; import handleAcademicSearch from '../agents/academicSearchAgent'; import handleWritingAssistant from '../agents/writingAssistant'; import handleWolframAlphaSearch from '../agents/wolframAlphaSearchAgent'; diff --git a/ui/components/MessageInputActions.tsx b/ui/components/MessageInputActions.tsx index e13cd2c..8d7deea 100644 --- a/ui/components/MessageInputActions.tsx +++ b/ui/components/MessageInputActions.tsx @@ -1,5 +1,6 @@ import { BadgePercent, + ChevronDown, CopyPlus, Globe, Pencil, @@ -39,7 +40,7 @@ const focusModes = [ key: 'writingAssistant', title: 'Writing', description: 'Chat without searching the web', - icon: , + icon: , }, { key: 'wolframAlphaSearch', @@ -84,9 +85,19 @@ export const Focus = ({ - + {focusMode !== 'webSearch' ? ( + + {focusModes.find((mode) => mode.key === focusMode)?.icon} + + {focusModes.find((mode) => mode.key === focusMode)?.title} + + + + ) : ( + + )}
+ {focusModes.find((mode) => mode.key === focusMode)?.title} +