mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
Major refactoring of deerflow/runtime/: - runs/callbacks/ - new callback system (builder, events, title, tokens) - runs/internal/ - execution internals (executor, supervisor, stream_logic, registry) - runs/internal/execution/ - execution artifacts and events handling - runs/facade.py - high-level run facade - runs/observer.py - run observation protocol - runs/types.py - type definitions - runs/store/ - simplified store interfaces (create, delete, query, event) Refactor stream_bridge/: - Replace old providers with contract.py and exceptions.py - Remove async_provider.py, base.py, memory.py Add documentation: - README.md and README_zh.md for runtime module Remove deprecated: - manager.py moved to internal/ - worker.py, schemas.py - user_context.py Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
603 B
Python
24 lines
603 B
Python
"""Stream bridge exceptions."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
class StreamBridgeError(Exception):
|
|
"""Base exception for stream bridge errors."""
|
|
|
|
|
|
class BridgeClosedError(StreamBridgeError):
|
|
"""Raised when operating on a closed bridge."""
|
|
|
|
|
|
class StreamCapacityExceededError(StreamBridgeError):
|
|
"""Raised when max_active_streams is reached and eviction is not possible."""
|
|
|
|
|
|
class StreamTerminatedError(StreamBridgeError):
|
|
"""Raised when publishing to a terminal stream."""
|
|
|
|
|
|
class StreamNotFoundError(StreamBridgeError):
|
|
"""Raised when referencing a non-existent stream."""
|