llama-stack-mirror/llama_stack/providers/utils/kvstore
Charlie Doern 7605631df7 fix: Pydantic v2 discriminated union default handling
Remove invalid default parameters from KVStoreConfig and SqlStoreConfig
  Annotated types which were causing UnsupportedFieldAttributeWarning and
  producing incorrect string values instead of proper config objects.

  Add proper default_factory to all KVStoreConfig and SqlStoreConfig fields
  across core datatypes and provider configs, ensuring they instantiate
  SqliteKVStoreConfig or SqliteSqlStoreConfig objects with correct defaults.

  This improves usability by allowing configs to be instantiated without
  explicitly providing storage configuration while maintaining type safety
  and discriminated union functionality.

Signed-off-by: Charlie Doern <cdoern@redhat.com>
2025-10-20 14:12:28 -04:00
..
mongodb chore: prune mypy exclude list (#3561) 2025-09-26 11:44:43 -04:00
postgres refactor(logging): rename llama_stack logger categories (#3065) 2025-08-21 17:31:04 -07:00
redis feat: implementation for agent/session list and describe (#1606) 2025-05-07 14:49:23 +02:00
sqlite feat: Allow :memory: for kvstore (#3696) 2025-10-13 11:19:27 +02:00
__init__.py [API Updates] Model / shield / memory-bank routing + agent persistence + support for private headers (#92) 2024-09-23 14:22:22 -07:00
api.py feat: implementation for agent/session list and describe (#1606) 2025-05-07 14:49:23 +02:00
config.py fix: Pydantic v2 discriminated union default handling 2025-10-20 14:12:28 -04:00
kvstore.py feat: add deps dynamically based on metastore config (#2405) 2025-06-05 14:07:25 -07:00