llama-stack-mirror/llama_stack/providers/inline/agents/meta_reference
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
..
tests Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
__init__.py Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
agent_instance.py sys_prompt support in Agent (#938) 2025-02-05 21:11:32 -08:00
agents.py fix: agent config validation (#1053) 2025-02-11 14:48:42 -08:00
config.py Auto-generate distro yamls + docs (#468) 2024-11-18 14:57:06 -08:00
persistence.py [memory refactor][5/n] Migrate all vector_io providers (#835) 2025-01-22 10:17:59 -08:00
safety.py Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00