Skip to content

Commit d7dcf4f

Browse files
committed
Add optional primary flag to FactBlock
- Introduced a new optional `primary` boolean attribute to the `FactBlock` class - Defaults to `False` when not specified - Allows for distinguishing primary facts in message blocks
1 parent 4914af4 commit d7dcf4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elementary/messages/blocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class FactBlock(BaseBlock):
8686
type: Literal["fact"] = "fact"
8787
title: LineBlock
8888
value: LineBlock
89+
primary: bool = False
8990

9091

9192
class FactListBlock(BaseBlock):

0 commit comments

Comments
 (0)