ForcePilot/backend/package/yuxi/channel/plugins/__init__.py

80 lines
1.7 KiB
Python
Raw Normal View History

2026-07-15 12:30:58 +08:00
"""渠道插件基础设施。"""
from yuxi.channel.exceptions import ChannelErrorClassification
from yuxi.channel.plugins.builders import create_channel_plugin_base, define_channel_plugin_entry
from yuxi.channel.plugins.protocol import (
BindingConversationRef,
BindingRoute,
ChannelCapability,
ChannelHealthStatus,
ChannelMeta,
ChannelPlugin,
DeliveryCapabilities,
DeliveryMode,
DmPolicy,
GroupPolicy,
InboundMedia,
InboundMessage,
InboundRequest,
OutboundMessage,
RateLimitPolicy,
SessionConversationRef,
Transport,
TransportState,
TransportType,
)
from yuxi.channel.plugins.registry import ChannelRegistry, get_registry
from yuxi.channel.ports import (
AuthPort,
BindingPort,
ConfigPort,
InboundPort,
LifecyclePort,
MetaPort,
OutboundPort,
SecurityPort,
SessionPort,
StatusPort,
ThreadingPort,
TransportPort,
)
__all__ = [
"AuthPort",
"BindingConversationRef",
"BindingPort",
"BindingRoute",
"ChannelCapability",
"ChannelErrorClassification",
"ChannelHealthStatus",
"ChannelMeta",
"ChannelPlugin",
"ChannelRegistry",
"ConfigPort",
"create_channel_plugin_base",
"define_channel_plugin_entry",
"DeliveryCapabilities",
"DeliveryMode",
"DmPolicy",
"get_registry",
"GroupPolicy",
"InboundMedia",
"InboundMessage",
"InboundPort",
"InboundRequest",
"LifecyclePort",
"MetaPort",
"OutboundMessage",
"OutboundPort",
"RateLimitPolicy",
"SecurityPort",
"SessionConversationRef",
"SessionPort",
"StatusPort",
"ThreadingPort",
"Transport",
"TransportPort",
"TransportState",
"TransportType",
]