Skip to content

Commit 96262a6

Browse files
committed
Fix missing default for metadata_map in ResponseGeneratorContext
1 parent 6044d4f commit 96262a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/models/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
@dataclass
12-
class ResponseGeneratorContext:
12+
class ResponseGeneratorContext: # pylint: disable=too-many-instance-attributes
1313
"""
1414
Context object for response generator creation.
1515
@@ -43,7 +43,7 @@ class ResponseGeneratorContext:
4343

4444
# Dependencies & State
4545
client: AsyncLlamaStackClient
46-
metadata_map: dict[str, dict[str, Any]]
46+
metadata_map: dict[str, dict[str, Any]] = field(default_factory=dict)
4747

4848
# RAG index identification
4949
vector_store_ids: list[str] = field(default_factory=list)

0 commit comments

Comments
 (0)