llama-stack/llama_stack/providers/inline
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
..
agents fix: agent config validation (#1053) 2025-02-11 14:48:42 -08:00
datasetio Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
eval Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
inference Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
ios/inference LocalInferenceImpl update for LS 0.1 (#911) 2025-02-02 09:49:40 -08:00
post_training Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
safety Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
scoring Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
telemetry Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
tool_runtime Nuke use_proxy from code execution 2025-02-07 09:55:55 -08:00
vector_io Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
__init__.py impls -> inline, adapters -> remote (#381) 2024-11-06 14:54:05 -08:00