ForcePilot/backend/package/yuxi/channels/__init__.py

117 lines
3.2 KiB
Python
Raw Normal View History

from yuxi.channels.models import (
AgentRequest,
AgentResult,
Attachment,
ChannelAccountSnapshot,
ChannelIdentity,
ChannelMessage,
ChannelResponse,
ChannelStatus,
ChannelType,
ChatType,
DeliveryResult,
EventType,
HealthStatus,
MentionsInfo,
MessageType,
TokenStatus,
build_snapshot_from_adapter,
)
from yuxi.channels.base import BaseChannelAdapter
from yuxi.channels.exceptions import (
ChannelAuthenticationError,
ChannelConnectionError,
ChannelException,
ChannelNotConnectedError,
ChannelRateLimitError,
DeliveryFailedError,
MessageFormatError,
)
from yuxi.channels.infra.circuit_breaker import CircuitBreaker, CircuitBreakerOpenError, CircuitState
from yuxi.channels.registry import ChannelRegistry, register_builtin_adapter
from yuxi.channels.manager import ChannelManager
from yuxi.channels.router import MessageRouter
from yuxi.channels.session_mapper import SessionMapper
from yuxi.channels.services.maintenance import MaintenanceRunner
from yuxi.channels.bridge import BridgeAdapter
from yuxi.channels.plugin import ChannelPlugin, channel_plugin
from yuxi.channels.meta import ChannelMeta
from yuxi.channels.capabilities import ChannelCapabilities
from yuxi.channels.protocols import (
ChannelConfigProtocol,
ChannelGatewayProtocol,
ChannelHeartbeatProtocol,
ChannelLifecycleProtocol,
ChannelMessageActionProtocol,
ChannelMessagingProtocol,
ChannelOutboundProtocol,
ChannelStatusProtocol,
ChannelThreadingProtocol,
)
from yuxi.channels.services.context import ChatAbortEntry, ChatRunBuffer, GatewayRequestContext
from yuxi.channels.infra.broadcast import EventBroadcaster
from yuxi.channels.infra.config_watcher import ConfigWatcher
from yuxi.channels.services.doctor import ConfigDoctor, DiagnosisIssue
from yuxi.channels.policy.heartbeat import BaseHeartbeatAdapter
__all__ = [
"AgentRequest",
"AgentResult",
"Attachment",
"ChannelAccountSnapshot",
"ChannelIdentity",
"ChannelMessage",
"ChannelResponse",
"ChannelStatus",
"ChannelType",
"ChatType",
"DeliveryResult",
"EventType",
"HealthStatus",
"MentionsInfo",
"MessageType",
"TokenStatus",
"build_snapshot_from_adapter",
"BaseChannelAdapter",
"BaseHeartbeatAdapter",
"ChannelAuthenticationError",
"ChannelConnectionError",
"ChannelException",
"ChannelNotConnectedError",
"ChannelRateLimitError",
"DeliveryFailedError",
"MessageFormatError",
"CircuitBreaker",
"CircuitBreakerOpenError",
"CircuitState",
"ChannelRegistry",
"register_builtin_adapter",
"ChannelManager",
"MessageRouter",
"SessionMapper",
"MaintenanceRunner",
"BridgeAdapter",
"ChannelPlugin",
"channel_plugin",
"ChannelMeta",
"ChannelCapabilities",
"ChannelConfigProtocol",
"ChannelGatewayProtocol",
"ChannelHeartbeatProtocol",
"ChannelLifecycleProtocol",
"ChannelMessageActionProtocol",
"ChannelMessagingProtocol",
"ChannelOutboundProtocol",
"ChannelStatusProtocol",
"ChannelThreadingProtocol",
"ChatAbortEntry",
"ChatRunBuffer",
"GatewayRequestContext",
"EventBroadcaster",
"ConfigWatcher",
"ConfigDoctor",
"DiagnosisIssue",
]