llama-stack-mirror/llama_stack/models/llama/llama3
skamenan7 533c1323b8 feat: add proper BuiltinTool support for both websearch providers
- Add web_search to BuiltinTool enum for consistency with brave_search
- Add WEB_SEARCH_BRAVE_TOOL constant following existing patterns
- Update agent logic to properly map both websearch tools:
  * web_search → BuiltinTool.web_search → WEB_SEARCH_TOOL → Tavily
  * web_search_brave → BuiltinTool.brave_search → WEB_SEARCH_BRAVE_TOOL → Brave
- Add tool encoding support for BuiltinTool.web_search in Llama model
- Replace hardcoded strings with constants for maintainability
- Fix tool conflicts that caused non-deterministic provider selection

This resolves the architectural issues where both websearch providers
exposed the same tool name, causing unpredictable behavior and making
it impossible for users to reliably choose their preferred provider.

Fixes #2606
2025-07-14 10:30:21 -04:00
..
multimodal chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
prompt_templates chore: more mypy fixes (#2029) 2025-05-06 09:52:31 -07:00
quantization chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
__init__.py chore: remove dependency on llama_models completely (#1344) 2025-03-01 12:48:08 -08:00
args.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
chat_format.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
dog.jpg chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
generation.py chore: make cprint write to stderr (#2250) 2025-05-24 23:39:57 -07:00
interface.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
model.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
pasta.jpeg chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
template_data.py refactor: move all llama code to models/llama out of meta reference (#1887) 2025-04-07 15:03:58 -07:00
tokenizer.model chore: remove dependency on llama_models completely (#1344) 2025-03-01 12:48:08 -08:00
tokenizer.py chore: remove usage of load_tiktoken_bpe (#2276) 2025-06-02 07:33:37 -07:00
tool_utils.py feat: add proper BuiltinTool support for both websearch providers 2025-07-14 10:30:21 -04:00