diff --git a/src/backend/config/default_agent.py b/src/backend/config/default_agent.py index 69ca098ec8..d0d9869f98 100644 --- a/src/backend/config/default_agent.py +++ b/src/backend/config/default_agent.py @@ -12,7 +12,7 @@ def get_default_agent() -> AgentPublic: return AgentPublic( id=DEFAULT_AGENT_ID, name='Command R+', - description='Ask questions and get answers based on your files.', + description='Ask questions and get answers based on your tools and files.', created_at=datetime.datetime.now(), updated_at=datetime.datetime.now(), preamble="", diff --git a/src/interfaces/assistants_web/src/components/MessagingContainer/Welcome.tsx b/src/interfaces/assistants_web/src/components/MessagingContainer/Welcome.tsx index e74f3bd212..e86fe9a6fc 100644 --- a/src/interfaces/assistants_web/src/components/MessagingContainer/Welcome.tsx +++ b/src/interfaces/assistants_web/src/components/MessagingContainer/Welcome.tsx @@ -5,6 +5,7 @@ import React from 'react'; import { AssistantTools } from '@/components/MessagingContainer'; import { CoralLogo, Icon, Text } from '@/components/UI'; +import { useAvailableTools } from '@/hooks'; import { useAgent, useBrandedColors, useListTools } from '@/hooks'; import { checkIsDefaultAgent } from '@/utils'; import { cn } from '@/utils'; @@ -24,8 +25,15 @@ export const Welcome: React.FC = ({ show, agentId }) => { const isDefaultAgent = checkIsDefaultAgent(agent); - // // Filter out tools that are excluded for the base agent - let toolsFiltered = [...tools]; + const { availableTools } = useAvailableTools({ + agent, + allTools: tools, + }); + + let toolToggleMessage = 'Toggle Tools On/Off'; + if (availableTools.length === 0) { + toolToggleMessage = 'Your Agent has no Tools enabled. Update your Agent to add Tools.'; + } return ( = ({ show, agentId }) => { )} - {agent?.description || 'Ask questions and get answers based on your files.'} + {agent?.description || 'Ask questions and get answers based on your tools and files.'} - {tools.length > 0 && ( -
- - Toggle Tools On/Off -
- )} - +
+ + {toolToggleMessage} +
+ +
);