Commit Β·
5af3ab5
1
Parent(s): ca13fee
sync: org onboarding, model updates, sandbox cleanup, prompt fixes
Browse filesFiles changed (13)
- agent/core/session.py+2
- agent/core/tools.py+1-7
- agent/prompts/system_prompt_v3.yaml+2-3
- agent/tools/dataset_tools.py+3-5
- backend/dependencies.py+28
- backend/routes/agent.py+6-6
- backend/routes/auth.py+1-1
- backend/session_manager.py+16
- configs/main_agent_config.json+2-3
- frontend/src/components/Chat/ActivityStatusBar.tsx+1
- frontend/src/components/Chat/ChatInput.tsx+10-10
- frontend/src/components/SessionChat.tsx+12-3
- frontend/src/components/WelcomeScreen/WelcomeScreen.tsx+191-118
18 unmodified lines19202122232425262728293018 unmodified lines# on network calls for certain providers (known litellm issue)._MAX_TOKENS_MAP: dict[str, int] = {# Anthropic"anthropic/claude-opus-4-5-20251101": 200_000,"anthropic/claude-sonnet-4-5-20250929": 200_000,"anthropic/claude-sonnet-4-20250514": 200_000,"anthropic/claude-haiku-3-5-20241022": 200_000,"anthropic/claude-3-5-sonnet-20241022": 200_000,"anthropic/claude-3-opus-20240229": 200_000,"huggingface/novita/minimax/minimax-m2.1": 196_608,"huggingface/novita/moonshotai/kimi-k2.5": 262_144,"huggingface/novita/zai-org/glm-5": 200_000,18 unmodified lines192021222324252627282930313218 unmodified lines# on network calls for certain providers (known litellm issue)._MAX_TOKENS_MAP: dict[str, int] = {# Anthropic"anthropic/claude-opus-4-6": 200_000,"anthropic/claude-opus-4-5-20251101": 200_000,"anthropic/claude-sonnet-4-5-20250929": 200_000,"anthropic/claude-sonnet-4-20250514": 200_000,"anthropic/claude-haiku-3-5-20241022": 200_000,"anthropic/claude-3-5-sonnet-20241022": 200_000,"anthropic/claude-3-opus-20240229": 200_000,"huggingface/fireworks-ai/MiniMaxAI/MiniMax-M2.5": 200_000,"huggingface/novita/minimax/minimax-m2.1": 196_608,"huggingface/novita/moonshotai/kimi-k2.5": 262_144,"huggingface/novita/zai-org/glm-5": 200_000,
61 unmodified lines6263646566676869707172737461 unmodified lines"ignore", category=DeprecationWarning, module="aiohttp.connector")NOT_ALLOWED_TOOL_NAMES = ["hf_jobs","hf_doc_search","hf_doc_fetch","hf_whoami","paper_search",]def convert_mcp_content_to_string(content: list) -> str:61 unmodified lines6263646566676861 unmodified lines"ignore", category=DeprecationWarning, module="aiohttp.connector")NOT_ALLOWED_TOOL_NAMES = ["hf_jobs", "hf_doc_search", "hf_doc_fetch", "hf_whoami"]def convert_mcp_content_to_string(content: list) -> str:
15 unmodified lines161718192021222328 unmodified lines5253545556575815 unmodified linesSkip research only for trivial non-code operations.When the user asks what is best, optimal, or most effective β start with research papers.Inspect specific resources before using them. Validate dataset format before any training job.# Mistakes you WILL make without research28 unmodified linesSFT: "messages", "text", or "prompt"/"completion"DPO: "prompt", "chosen", "rejected"GRPO: "prompt"All datasets for training should be in conversational ChatML format for HF library compatibility.# When submitting a training job15 unmodified lines161718192021222328 unmodified lines52535455565715 unmodified linesSkip research only for trivial non-code operations.For open-ended research tasks (improving model performance, finding the best approach for a task, exploring a field, implementing a paper's method):hf_papers(trending/search) β hf_papers(read_paper) β hf_papers(find_all_resources) β hf_inspect_dataset# Mistakes you WILL make without research28 unmodified linesSFT: "messages", "text", or "prompt"/"completion"DPO: "prompt", "chosen", "rejected"GRPO: "prompt"# When submitting a training job
9 unmodified lines10111213141516407 unmodified lines4244254264274284294304314324334344354364374384394409 unmodified linesimport httpxfrom agent.core.session import Sessionfrom agent.tools.types import ToolResultBASE_URL = "https://datasets-server.huggingface.co"407 unmodified lines}async def hf_inspect_dataset_handler(arguments: dict[str, Any], session: Session = None) -> tuple[str, bool]:"""Handler for agent tool router"""try:result = await inspect_dataset(dataset=arguments["dataset"],config=arguments.get("config"),split=arguments.get("split"),sample_rows=min(arguments.get("sample_rows", 3), 10),hf_token=session.hf_token,)return result["formatted"], not result.get("isError", False)except Exception as e:9 unmodified lines101112131415407 unmodified lines4234244254264274284294304314324334344354364374389 unmodified linesimport httpxfrom agent.tools.types import ToolResultBASE_URL = "https://datasets-server.huggingface.co"407 unmodified lines}async def hf_inspect_dataset_handler(arguments: dict[str, Any], session=None) -> tuple[str, bool]:"""Handler for agent tool router"""try:hf_token = session.hf_token if session else Noneresult = await inspect_dataset(dataset=arguments["dataset"],config=arguments.get("config"),split=arguments.get("split"),sample_rows=min(arguments.get("sample_rows", 3), 10),hf_token=hf_token,)return result["formatted"], not result.get("isError", False)except Exception as e:
21 unmodified lines22232425262752 unmodified lines80818283848521 unmodified lines_token_cache: dict[str, tuple[dict[str, Any], float]] = {}TOKEN_CACHE_TTL = 300 # 5 minutesDEV_USER: dict[str, Any] = {"user_id": "dev","username": "dev",52 unmodified linesreturn Noneasync def get_current_user(request: Request) -> dict[str, Any]:"""FastAPI dependency: extract and validate the current user.21 unmodified lines22232425262728293052 unmodified lines838485868788899091929394959697989910010110210310410510610710810911011111211321 unmodified lines_token_cache: dict[str, tuple[dict[str, Any], float]] = {}TOKEN_CACHE_TTL = 300 # 5 minutes# Org membership cache: key -> expiry_time (only caches positive results)_org_member_cache: dict[str, float] = {}DEV_USER: dict[str, Any] = {"user_id": "dev","username": "dev",52 unmodified linesreturn Noneasync def check_org_membership(token: str, org_name: str) -> bool:"""Check if the token owner belongs to an HF org. Only caches positive results."""now = time.time()key = token + org_namecached = _org_member_cache.get(key)if cached and cached > now:return Trueasync with httpx.AsyncClient(timeout=10.0) as client:try:resp = await client.get(f"{OPENID_PROVIDER_URL}/api/whoami-v2",headers={"Authorization": f"Bearer {token}"},)if resp.status_code != 200:return Falseorgs = {o.get("name") for o in resp.json().get("orgs", [])}if org_name in orgs:_org_member_cache[key] = now + TOKEN_CACHE_TTLreturn Truereturn Falseexcept httpx.HTTPError:return Falseasync def get_current_user(request: Request) -> dict[str, Any]:"""FastAPI dependency: extract and validate the current user.
36 unmodified lines37383940414243444546474849505136 unmodified linesAVAILABLE_MODELS = [{"id": "huggingface/novita/minimax/minimax-m2.1","label": "MiniMax M2.1","provider": "huggingface","recommended": True,},{"id": "anthropic/claude-opus-4-5-20251101","label": "Claude Opus 4.5","provider": "anthropic","recommended": True,},{36 unmodified lines37383940414243444546474849505136 unmodified linesAVAILABLE_MODELS = [{"id": "anthropic/claude-opus-4-6","label": "Claude Opus 4.6","provider": "anthropic","recommended": True,},{"id": "huggingface/fireworks-ai/MiniMaxAI/MiniMax-M2.5","label": "MiniMax M2.5","provider": "huggingface","recommended": True,},{
141 unmodified lines142143144145146147148141 unmodified lineshttponly=True,secure=is_production, # Secure flag only in production (HTTPS)samesite="lax",max_age=3600 * 24, # 24 hourspath="/",)return response141 unmodified lines142143144145146147148141 unmodified lineshttponly=True,secure=is_production, # Secure flag only in production (HTTPS)samesite="lax",max_age=3600 * 24 * 7, # 7 dayspath="/",)return response
163 unmodified lines16416516616716816948 unmodified lines21821922022122222385 unmodified lines309310311312313314163 unmodified lineslogger.info(f"Created session {session_id} for user {user_id}")return session_idasync def _run_session(self,session_id: str,48 unmodified linesexcept asyncio.CancelledError:passasync with self._lock:if session_id in self.sessions:self.sessions[session_id].is_active = False85 unmodified linesws_manager.clear_buffer(session_id)# Cancel the task if runningif agent_session.task and not agent_session.task.done():agent_session.task.cancel()163 unmodified lines16416516616716816917017117217317417517617717817918048 unmodified lines22923023123223323423523685 unmodified lines322323324325326327328329330163 unmodified lineslogger.info(f"Created session {session_id} for user {user_id}")return session_id@staticmethodasync def _cleanup_sandbox(session: Session) -> None:"""Delete the sandbox Space if one was created for this session."""sandbox = getattr(session, "sandbox", None)if sandbox and getattr(sandbox, "_owns_space", False):try:logger.info(f"Deleting sandbox {sandbox.space_id}...")await asyncio.to_thread(sandbox.delete)except Exception as e:logger.warning(f"Failed to delete sandbox {sandbox.space_id}: {e}")async def _run_session(self,session_id: str,48 unmodified linesexcept asyncio.CancelledError:passawait self._cleanup_sandbox(session)async with self._lock:if session_id in self.sessions:self.sessions[session_id].is_active = False85 unmodified linesws_manager.clear_buffer(session_id)# Clean up sandbox Space before cancelling the taskawait self._cleanup_sandbox(agent_session.session)# Cancel the task if runningif agent_session.task and not agent_session.task.done():agent_session.task.cancel()
123456789101112{"model_name": "huggingface/novita/moonshotai/kimi-k2.5","save_sessions": true,"session_dataset_repo": "akseljoonas/hf-agent-sessions","yolo_mode": false,"confirm_cpu_jobs": true,"auto_file_upload": true,"mcpServers": {},"_mcpServers_disabled": {"hf-mcp-server": {"transport": "http","url": "https://huggingface.co/mcp?login"1234567891011{"model_name": "anthropic/claude-opus-4-6","save_sessions": true,"session_dataset_repo": "akseljoonas/hf-agent-sessions","yolo_mode": false,"confirm_cpu_jobs": true,"auto_file_upload": true,"mcpServers": {"hf-mcp-server": {"transport": "http","url": "https://huggingface.co/mcp?login"
8 unmodified lines910111213148 unmodified lines`;const TOOL_LABELS: Record<string, string> = {hf_jobs: 'Running job',hf_repo_files: 'Uploading file',hf_repo_git: 'Git operation',8 unmodified lines91011121314158 unmodified lines`;const TOOL_LABELS: Record<string, string> = {sandbox_create: 'Creating sandbox, this might take 1-2 minutes',hf_jobs: 'Running job',hf_repo_files: 'Uploading file',hf_repo_git: 'Git operation',
20 unmodified lines2122232425262728293031323334353637383940414220 unmodified lines};const MODEL_OPTIONS: ModelOption[] = [{id: 'minimax-m2.1',name: 'MiniMax M2.1',description: 'Via Novita',modelPath: 'huggingface/novita/minimax/minimax-m2.1',avatarUrl: getHfAvatarUrl('MiniMaxAI/MiniMax-M2.1'),recommended: true,},{id: 'claude-opus',name: 'Claude Opus 4.5',description: 'Anthropic',modelPath: 'anthropic/claude-opus-4-5-20251101',avatarUrl: 'https://huggingface.co/api/avatars/Anthropic',recommended: true,},{id: 'kimi-k2.5',name: 'Kimi K2.5',20 unmodified lines2122232425262728293031323334353637383940414220 unmodified lines};const MODEL_OPTIONS: ModelOption[] = [{id: 'claude-opus',name: 'Claude Opus 4.6',description: 'Anthropic',modelPath: 'anthropic/claude-opus-4-6',avatarUrl: 'https://huggingface.co/api/avatars/Anthropic',recommended: true,},{id: 'minimax-m2.5',name: 'MiniMax M2.5',description: 'Via Fireworks',modelPath: 'huggingface/fireworks-ai/MiniMaxAI/MiniMax-M2.5',avatarUrl: getHfAvatarUrl('MiniMaxAI/MiniMax-M2.5'),recommended: true,},{id: 'kimi-k2.5',name: 'Kimi K2.5',
93 unmodified lines94959697989910010110293 unmodified linesstore.setActivityStatus({ type: 'tool', toolName: 'running' });store.setProcessing(true);} else {// No pending approval β reset to idlestore.setActivityStatus({ type: 'idle' });store.setProcessing(false);}}prevActiveRef.current = isActive;93 unmodified lines94959697989910010110210310410510610710810911011193 unmodified linesstore.setActivityStatus({ type: 'tool', toolName: 'running' });store.setProcessing(true);} else {// Check if any tools are still running (non-approval tools like bash, read, etc.)const runningTool = lastAssistant?.parts.find((p) => p.type === 'dynamic-tool' && (p.state === 'input-available' || p.state === 'input-streaming'));if (runningTool && runningTool.type === 'dynamic-tool') {const desc = (runningTool.input as Record<string, unknown>)?.description as string | undefined;store.setActivityStatus({ type: 'tool', toolName: runningTool.toolName, description: desc });store.setProcessing(true);} else {store.setActivityStatus({ type: 'idle' });store.setProcessing(false);}}}prevActiveRef.current = isActive;
12342 unmodified lines7891011122 unmodified lines151617181920212223242526272829303132333435363738394041424321 unmodified lines656667686970712 unmodified lines74757677787929 unmodified lines109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220import { useState, useCallback } from 'react';import {Box,Typography,2 unmodified linesAlert,} from '@mui/material';import OpenInNewIcon from '@mui/icons-material/OpenInNew';import { useSessionStore } from '@/store/sessionStore';import { useAgentStore } from '@/store/agentStore';import { apiFetch } from '@/utils/api';2 unmodified lines/** HF brand orange */const HF_ORANGE = '#FF9D00';export default function WelcomeScreen() {const { createSession } = useSessionStore();const { setPlan, clearPanel, user } = useAgentStore();const [isCreating, setIsCreating] = useState(false);const [error, setError] = useState<string | null>(null);const inIframe = isInIframe();const isAuthenticated = user?.authenticated;const isDevUser = user?.username === 'dev';const handleStart = useCallback(async () => {if (isCreating) return;// Not authenticated and not dev β need to loginif (!isAuthenticated && !isDevUser) {// In iframe: can't redirect (cookies blocked) β user needs to open in new tab// This shouldn't happen because we show a different button in iframe// But just in case:if (inIframe) return;triggerLogin();return;}setIsCreating(true);setError(null);21 unmodified lines} finally {setIsCreating(false);}}, [isCreating, createSession, setPlan, clearPanel, isAuthenticated, isDevUser, inIframe]);// Build the direct Space URL for the "open in new tab" linkconst spaceHost = typeof window !== 'undefined'2 unmodified lines: `https://smolagents-ml-agent.hf.space`: '';return (<Boxsx={{29 unmodified linesHF Agent</Typography>{/* Description */}<Typographyvariant="body1"sx={{color: 'var(--muted-text)',maxWidth: 520,mb: 5,lineHeight: 1.8,fontSize: '0.95rem',textAlign: 'center',px: 2,'& strong': { color: 'var(--text)', fontWeight: 600 },}}>A general-purpose AI agent for <strong>machine learning engineering</strong>.It browses <strong>Hugging Face documentation</strong>, manages{' '}<strong>repositories</strong>, launches <strong>training jobs</strong>,and explores <strong>datasets</strong> β all through natural conversation.</Typography>{/* Action button β depends on context */}{inIframe && !isAuthenticated && !isDevUser ? (// In iframe + not logged in β link to open Space directly<Buttonvariant="contained"size="large"component="a"href={spaceHost}target="_blank"rel="noopener noreferrer"endIcon={<OpenInNewIcon />}sx={{px: 5,py: 1.5,fontSize: '1rem',fontWeight: 700,textTransform: 'none',borderRadius: '12px',bgcolor: HF_ORANGE,color: '#000',boxShadow: '0 4px 24px rgba(255, 157, 0, 0.3)',textDecoration: 'none','&:hover': {bgcolor: '#FFB340',boxShadow: '0 6px 32px rgba(255, 157, 0, 0.45)',},}}>Open HF Agent</Button>) : !isAuthenticated && !isDevUser ? (// Direct access + not logged in β sign in button<Buttonvariant="contained"size="large"onClick={() => triggerLogin()}sx={{px: 5,py: 1.5,fontSize: '1rem',fontWeight: 700,textTransform: 'none',borderRadius: '12px',bgcolor: HF_ORANGE,color: '#000',boxShadow: '0 4px 24px rgba(255, 157, 0, 0.3)','&:hover': {bgcolor: '#FFB340',boxShadow: '0 6px 32px rgba(255, 157, 0, 0.45)',},}}>Sign in with Hugging Face</Button>) : (// Authenticated or dev β start session<Buttonvariant="contained"size="large"onClick={handleStart}disabled={isCreating}startIcon={isCreating ? <CircularProgress size={20} color="inherit" /> : null}sx={{px: 5,py: 1.5,fontSize: '1rem',fontWeight: 700,textTransform: 'none',borderRadius: '12px',bgcolor: HF_ORANGE,color: '#000',boxShadow: '0 4px 24px rgba(255, 157, 0, 0.3)','&:hover': {bgcolor: '#FFB340',boxShadow: '0 6px 32px rgba(255, 157, 0, 0.45)',},'&.Mui-disabled': {bgcolor: 'rgba(255, 157, 0, 0.35)',color: 'rgba(0,0,0,0.45)',},}}>{isCreating ? 'Initializing...' : 'Start Session'}</Button>)}{/* Error */}12342 unmodified lines789101112132 unmodified lines1617181920212223242526272829303132333435363738394041424344454647484950515253545556575821 unmodified lines808182838485868788899091929394959697982 unmodified lines10110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115229 unmodified lines182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293import { useState, useCallback, useEffect, useRef } from 'react';import {Box,Typography,2 unmodified linesAlert,} from '@mui/material';import OpenInNewIcon from '@mui/icons-material/OpenInNew';import GroupAddIcon from '@mui/icons-material/GroupAdd';import { useSessionStore } from '@/store/sessionStore';import { useAgentStore } from '@/store/agentStore';import { apiFetch } from '@/utils/api';2 unmodified lines/** HF brand orange */const HF_ORANGE = '#FF9D00';const ORG_JOIN_URL = 'https://huggingface.co/organizations/ml-agent-explorers/share/GzPMJUivoFPlfkvFtIqEouZKSytatKQSZT';const ORG_JOINED_KEY = 'hf-agent-org-joined';function hasJoinedOrg(): boolean {try { return localStorage.getItem(ORG_JOINED_KEY) === '1'; } catch { return false; }}function markOrgJoined(): void {try { localStorage.setItem(ORG_JOINED_KEY, '1'); } catch { /* ignore */ }}export default function WelcomeScreen() {const { createSession } = useSessionStore();const { setPlan, clearPanel, user } = useAgentStore();const [isCreating, setIsCreating] = useState(false);const [error, setError] = useState<string | null>(null);const [orgJoined, setOrgJoined] = useState(hasJoinedOrg);const joinLinkOpened = useRef(false);const inIframe = isInIframe();const isAuthenticated = user?.authenticated;const isDevUser = user?.username === 'dev';// Auto-advance when user returns from the join linkuseEffect(() => {const handleVisibility = () => {if (document.visibilityState !== 'visible' || !joinLinkOpened.current) return;joinLinkOpened.current = false;markOrgJoined();setOrgJoined(true);};document.addEventListener('visibilitychange', handleVisibility);return () => document.removeEventListener('visibilitychange', handleVisibility);}, []);const tryCreateSession = useCallback(async () => {setIsCreating(true);setError(null);21 unmodified lines} finally {setIsCreating(false);}}, [createSession, setPlan, clearPanel]);const handleStart = useCallback(async () => {if (isCreating) return;if (!isAuthenticated && !isDevUser) {if (inIframe) return;triggerLogin();return;}await tryCreateSession();}, [isCreating, isAuthenticated, isDevUser, inIframe, tryCreateSession]);// Build the direct Space URL for the "open in new tab" linkconst spaceHost = typeof window !== 'undefined'2 unmodified lines: `https://smolagents-ml-agent.hf.space`: '';// Shared button styleconst primaryBtnSx = {px: 5,py: 1.5,fontSize: '1rem',fontWeight: 700,textTransform: 'none' as const,borderRadius: '12px',bgcolor: HF_ORANGE,color: '#000',boxShadow: '0 4px 24px rgba(255, 157, 0, 0.3)',textDecoration: 'none','&:hover': {bgcolor: '#FFB340',boxShadow: '0 6px 32px rgba(255, 157, 0, 0.45)',},};// Description block (reused across screens)const description = (<Typographyvariant="body1"sx={{color: 'var(--muted-text)',maxWidth: 520,mb: 5,lineHeight: 1.8,fontSize: '0.95rem',textAlign: 'center',px: 2,'& strong': { color: 'var(--text)', fontWeight: 600 },}}>A general-purpose AI agent for <strong>machine learning engineering</strong>.It browses <strong>Hugging Face documentation</strong>, manages{' '}<strong>repositories</strong>, launches <strong>training jobs</strong>,and explores <strong>datasets</strong> β all through natural conversation.</Typography>);// Which screen to showconst needsJoin = inIframe && !orgJoined;const showOpenAgent = inIframe && orgJoined;const showSignin = !inIframe && !isAuthenticated && !isDevUser;const showReady = !inIframe && (isAuthenticated || isDevUser);return (<Boxsx={{29 unmodified linesHF Agent</Typography>{/* ββ Iframe: join org (first visit only) ββββββββββββββββββββ */}{needsJoin && (<><Typographyvariant="body1"sx={{color: 'var(--muted-text)',maxWidth: 480,mb: 4,lineHeight: 1.8,fontSize: '0.95rem',textAlign: 'center',px: 2,'& strong': { color: 'var(--text)', fontWeight: 600 },}}>Under the hood, this agent uses GPUs, inference APIs, and other paid Hub goodies β but we made them all free for you. Just join <strong>ML Agent Explorers</strong> to get started!</Typography><Buttonvariant="contained"size="large"component="a"href={ORG_JOIN_URL}target="_blank"rel="noopener noreferrer"onClick={() => { joinLinkOpened.current = true; }}startIcon={<GroupAddIcon />}sx={primaryBtnSx}>Join ML Agent Explorers</Button></>)}{/* ββ Iframe: already joined β open Space ββββββββββββββββββββ */}{showOpenAgent && (<>{description}<Buttonvariant="contained"size="large"component="a"href={spaceHost}target="_blank"rel="noopener noreferrer"endIcon={<OpenInNewIcon />}sx={primaryBtnSx}>Open HF Agent</Button></>)}{/* ββ Direct: not logged in β sign in βββββββββββββββοΏ½οΏ½οΏ½ββββββββ */}{showSignin && (<>{description}<Buttonvariant="contained"size="large"onClick={() => triggerLogin()}sx={primaryBtnSx}>Sign in with Hugging Face</Button><Typographyvariant="caption"sx={{mt: 2.5,color: 'var(--muted-text)',fontSize: '0.78rem',textAlign: 'center',maxWidth: 360,lineHeight: 1.6,}}>Make sure to enable access to the <strong>ml-agent-explorers</strong> org when prompted.</Typography></>)}{/* ββ Direct: authenticated β start session ββββββββββββββββββ */}{showReady && (<>{description}<Buttonvariant="contained"size="large"onClick={handleStart}disabled={isCreating}startIcon={isCreating ? <CircularProgress size={20} color="inherit" /> : null}sx={{...primaryBtnSx,'&.Mui-disabled': {bgcolor: 'rgba(255, 157, 0, 0.35)',color: 'rgba(0,0,0,0.45)',},}}>{isCreating ? 'Initializing...' : 'Start Session'}</Button></>)}{/* Error */}
agent/core/session.py+2
agent/core/tools.py+1-7
agent/prompts/system_prompt_v3.yaml+2-3
agent/tools/dataset_tools.py+3-5
backend/dependencies.py+28
backend/routes/agent.py+6-6
backend/routes/auth.py+1-1
backend/session_manager.py+16
configs/main_agent_config.json+2-3
frontend/src/components/Chat/ActivityStatusBar.tsx+1
frontend/src/components/Chat/ChatInput.tsx+10-10
frontend/src/components/SessionChat.tsx+12-3
frontend/src/components/WelcomeScreen/WelcomeScreen.tsx+191-118