diff --git a/agentic_nav/agents/__init__.py b/agentic_nav/agents/__init__.py index 06f3daa..83a9360 100644 --- a/agentic_nav/agents/__init__.py +++ b/agentic_nav/agents/__init__.py @@ -1 +1 @@ -from agentic_nav.agents.neurips2025_conference import NeurIPS2025Agent, DEFAULT_NEURIPS2025_AGENT_ARGS, AGENT_INTRODUCTION_PROMPT \ No newline at end of file +from agentic_nav.agents.neurips2025_conference import NeurIPS2025Agent, DEFAULT_NEURIPS2025_AGENT_ARGS, AGENT_INTRODUCTION_PROMPT, SMALL_SCREEN_USER_PROMPT_ADDITIONAL_NOTE \ No newline at end of file diff --git a/agentic_nav/agents/neurips2025_conference.py b/agentic_nav/agents/neurips2025_conference.py index 29498d5..34d9b99 100644 --- a/agentic_nav/agents/neurips2025_conference.py +++ b/agentic_nav/agents/neurips2025_conference.py @@ -56,13 +56,17 @@ "content": f""" Welcome to AgenticNAV! I am happy to assist you navigating NeurIPS 2025. You can ask things like: - - "Please show me paper on LLM request routing" - - "Please build a schedule for me to visit posters on federated learning on Tuesday afternoon" + - "Please show me papers on LLM request routing" + - "Please build a schedule for me to visit posters on federated learning on December 3 afternoon" Feel free to start anytime you are ready! """ } +SMALL_SCREEN_USER_PROMPT_ADDITIONAL_NOTE = "(Note: You are using a small screen device. " \ + "Please format your responses accordingly to ensure readability. " \ + "Please never use tables. " \ + "Follow the other system instructions carefully except that you should not use tables, especially make sure to include the required links.)" @dataclass diff --git a/agentic_nav/frontend/browser_ui.py b/agentic_nav/frontend/browser_ui.py index 8dc91a8..7c01ed3 100644 --- a/agentic_nav/frontend/browser_ui.py +++ b/agentic_nav/frontend/browser_ui.py @@ -19,7 +19,7 @@ from pathlib import Path from typing import List, Tuple, Optional, Dict -from agentic_nav.agents import NeurIPS2025Agent, DEFAULT_NEURIPS2025_AGENT_ARGS, AGENT_INTRODUCTION_PROMPT +from agentic_nav.agents import NeurIPS2025Agent, DEFAULT_NEURIPS2025_AGENT_ARGS, AGENT_INTRODUCTION_PROMPT, SMALL_SCREEN_USER_PROMPT_ADDITIONAL_NOTE from agentic_nav.utils.logger import setup_logging from agentic_nav.utils.file_handlers import save_chat_history @@ -123,7 +123,7 @@ def chat_fn( try: if width < 1200: LOGGER.info("Detected small screen width, appending note to user message.") - new_message += "\n\n(Note: You are using a small screen device. Please format your responses accordingly to ensure readability. Please never use tables.)" + new_message += "\n\n" + SMALL_SCREEN_USER_PROMPT_ADDITIONAL_NOTE # Create user message with timestamp user_message = {