llama-stack-mirror/llama_stack
Ihar Hrachyshka cd38b2594e fix: Support types.UnionType in schemas
Since Python 3.10, unions can be expressed as `type1 | type2`. Sadly,
while this is functionally equivalent to `Union[type1, type2]`, the type
of the expression is different (`types.UnionType`, not `typing.Union`).

We should handle both in schemas.

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-03-20 10:42:29 -04:00
..
apis chore: Don't set type variables from register_schema() (#1713) 2025-03-19 20:29:00 -07:00
cli refactor: simplify command execution and remove PTY handling (#1641) 2025-03-17 15:03:14 -07:00
distribution feat(server): add attribute based access control for resources (#1703) 2025-03-19 21:28:52 -07:00
models/llama fix: update default tool call system prompt (#1712) 2025-03-19 22:49:24 -07:00
providers feat: [New Eval Benchamark] IfEval (#1708) 2025-03-19 16:39:59 -07:00
strong_typing fix: Support types.UnionType in schemas 2025-03-20 10:42:29 -04:00
templates feat: [New Eval Benchamark] IfEval (#1708) 2025-03-19 16:39:59 -07:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00
env.py refactor(test): move tools, evals, datasetio, scoring and post training tests (#1401) 2025-03-04 14:53:47 -08:00
log.py feat: add support for logging config in the run.yaml (#1408) 2025-03-14 12:36:25 -07:00
schema_utils.py ci: add mypy for static type checking (#1101) 2025-02-21 13:15:40 -08:00