llama-stack-mirror/llama_stack
Xi Yan e8cb9e0adb
fix: direct client pydantic type casting (#1145)
# What does this PR do?
- Closes #1142 
- Root cause is due to having `Union[str, AgenToolGroupWithArgs]`

## Test Plan
- Test with script described in issue. 

- Print out final converted pydantic object
<img width="1470" alt="image"
src="https://github.com/user-attachments/assets/15dc9cd0-f37a-4b91-905f-3fe4f59a08c6"
/>


[//]: # (## Documentation)
2025-02-18 16:07:54 -08:00
..
apis fix: enable_session_persistence in AgentConfig should be optional (#1012) 2025-02-14 09:19:53 -08:00
cli fix: modify the model id title for model list (#1095) 2025-02-18 10:26:41 -08:00
distribution fix: direct client pydantic type casting (#1145) 2025-02-18 16:07:54 -08:00
models/llama chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
providers fix: Ensure a tool call can be converted before adding to buffer (#1119) 2025-02-15 00:19:16 -05:00
scripts chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
strong_typing fix: direct client pydantic type casting (#1145) 2025-02-18 16:07:54 -08:00
templates chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00
schema_utils.py chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00