Skip to content

Commit 1184a8f

Browse files
committed
docs: add description to task_card block
1 parent 17b75d7 commit 1184a8f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

slack_sdk/models/blocks/blocks.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,20 @@ def __init__(
812812
block_id: Optional[str] = None,
813813
**others: dict,
814814
):
815+
"""A discrete action or tool call.
816+
https://docs.slack.dev/reference/block-kit/blocks/task-card-block/
817+
818+
Args:
819+
block_id: A string acting as a unique identifier for a block. If not specified, one will be generated.
820+
Maximum length for this field is 255 characters.
821+
block_id should be unique for each message and each iteration of a message.
822+
If a message is updated, use a new block_id.
823+
task_id (required): ID for the task
824+
title (required): Title of the task in plain text
825+
details: Details of the task in the form of a single "rich_text" entity.
826+
output: Output of the task in the form of a single "rich_text" entity.
827+
sources: List of sources used to generate a response
828+
"""
815829
super().__init__(type=self.type, block_id=block_id)
816830
show_unknown_key_warning(self, others)
817831

0 commit comments

Comments
 (0)