llama-stack-mirror/llama_stack/apis
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
batch_inference Update OpenAPI generator to add param and field documentation (#896) 2025-01-29 10:04:30 -08:00
common fix ImageContentItem to take base64 string as image.data (#909) 2025-01-30 15:58:23 -08:00
datasetio Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
datasets More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
eval Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
eval_tasks More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
inference Make a couple properties optional (#963) 2025-02-04 16:20:24 -08:00
inspect REST API fixes (#789) 2025-01-16 13:47:08 -08:00
models More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
post_training Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
safety More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
scoring More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
scoring_functions Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
shields More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
synthetic_data_generation [remove import *] clean up import *'s (#689) 2024-12-27 15:45:44 -08:00
telemetry Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
tools Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
vector_dbs [memory refactor][1/n] Rename Memory -> VectorIO, MemoryBanks -> VectorDBs (#828) 2025-01-22 09:59:30 -08:00
vector_io [memory refactor][6/n] Update naming and routes (#839) 2025-01-22 10:39:13 -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
resource.py Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
version.py llama-stack version alpha -> v1 2025-01-15 05:58:09 -08:00