mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-07-26 16:07:53 +00:00
* feat(backend): queue rapid same-thread messages and preserve topic card previews * fix: checkstyle * refactor(channels): make feishu serialization policy-driven and fix queue cleanup
16 lines
397 B
Python
16 lines
397 B
Python
"""Per-run policy registration for the Feishu channel."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from app.channels.run_policy import CHANNEL_RUN_POLICY, ChannelRunPolicy
|
|
|
|
|
|
def register_policy() -> None:
|
|
"""Register Feishu's queue-same-thread behavior in the shared policy map."""
|
|
CHANNEL_RUN_POLICY["feishu"] = ChannelRunPolicy(
|
|
serialize_thread_runs=True,
|
|
)
|
|
|
|
|
|
register_policy()
|