llama-stack/llama_stack/providers
ehhuang 96c88397da
fix: agent config validation (#1053)
Summary:

Fixes AgentConfig init bug introduced with ToolConfig.

Namely, the below doesn't work
```
    agent_config = AgentConfig(
        **common_params,
        tool_config=ToolConfig(
            tool_choice="required",
        ),
    )
```
bvecause tool_choice was defaulted to 'auto' leading to validation check
failing.

Test Plan:

added unittests

LLAMA_STACK_CONFIG=fireworks pytest -s -v tests/client-sdk/
--safety-shield meta-llama/Llama-Guard-3-8B
2025-02-11 14:48:42 -08:00
..
inline fix: agent config validation (#1053) 2025-02-11 14:48:42 -08:00
registry Misc fixes (#944) 2025-02-03 14:08:47 -08:00
remote fix: Added missing tool_config arg in SambaNova chat_completion() (#1042) 2025-02-10 21:20:50 -08:00
tests test: replace blocked image URLs with GitHub-hosted (#1025) 2025-02-10 22:38:11 -05:00
utils feat: Add a new template for dell (#978) 2025-02-06 14:14:39 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
datatypes.py [memory refactor][1/n] Rename Memory -> VectorIO, MemoryBanks -> VectorDBs (#828) 2025-01-22 09:59:30 -08:00