llama-stack-mirror/llama_stack/apis/agents
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
..
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
agents.py fix: agent config validation (#1053) 2025-02-11 14:48:42 -08:00
event_logger.py Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00