llama-stack/llama_stack
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
..
apis fix: agent config validation (#1053) 2025-02-11 14:48:42 -08:00
cli feat: Add HTTPS serving option (#1000) 2025-02-07 09:39:08 -08:00
distribution raise when client initialize fails 2025-02-07 12:24:07 -08:00
providers fix: agent config validation (#1053) 2025-02-11 14:48:42 -08:00
scripts fix: Gaps in doc codegen (#1035) 2025-02-10 13:24:15 -08:00
templates fix: a bad newline in ollama docs (#1036) 2025-02-10 14:27:17 -08:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00