llama-stack-mirror/llama_stack/models/llama
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
..
llama3 feat: add proper BuiltinTool support for both websearch providers 2025-07-14 10:30:21 -04:00
llama3_1 chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
llama3_2 refactor: move all llama code to models/llama out of meta reference (#1887) 2025-04-07 15:03:58 -07:00
llama3_3 chore(api): add mypy coverage to prompts (#2657) 2025-07-09 10:07:00 +02:00
llama4 ci: add python package build test (#2457) 2025-06-19 18:57:32 +05:30
resources feat: introduce llama4 support (#1877) 2025-04-05 11:53:35 -07:00
__init__.py feat: introduce llama4 support (#1877) 2025-04-05 11:53:35 -07:00
checkpoint.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
datatypes.py feat: add proper BuiltinTool support for both websearch providers 2025-07-14 10:30:21 -04:00
hadamard_utils.py refactor: move all llama code to models/llama out of meta reference (#1887) 2025-04-07 15:03:58 -07:00
prompt_format.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
quantize_impls.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
sku_list.py chore: more mypy fixes (#2029) 2025-05-06 09:52:31 -07:00
sku_types.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
tokenizer_utils.py chore: remove usage of load_tiktoken_bpe (#2276) 2025-06-02 07:33:37 -07:00