notifications
feishu.integrations.notifications
¶
WorkflowNotificationIntegration
dataclass
¶
Mount a generic service-authenticated notification route on a Feishu gateway.
源代码位于: feishu/integrations/notifications.py
create_notification_route
¶
Python
create_notification_route(config: GatewayConfig, client: Any, *, path: str = '/notifications', store: EventMessageStore | None = None, text_summarizer: TextSummarizer | None = None, card_builder: NotificationCardBuilder | None = None, max_summary_chars: int = 1200) -> Route
Create a service-authenticated workflow notification route.
源代码位于: feishu/integrations/notifications.py
build_notification_card
¶
Render a normalized workflow/status notification as a Feishu card.
源代码位于: feishu/integrations/notifications.py
notification_event_id
¶
Return the stable notification ID used for card upserts.
源代码位于: feishu/integrations/notifications.py
notification_summary
async
¶
Python
notification_summary(payload: Mapping[str, Any], *, text_summarizer: TextSummarizer | None, max_chars: int = 1200) -> str
Summarize a notification payload with a fast text summarizer when configured.