68 lines
1.8 KiB
Python
68 lines
1.8 KiB
Python
"""LangGraph-compatible runtime — runs, streaming, and lifecycle management.
|
|
|
|
Re-exports the public API of :mod:`~deerflow.runtime.runs` and
|
|
:mod:`~deerflow.runtime.stream_bridge` so that consumers can import
|
|
directly from ``deerflow.runtime``.
|
|
"""
|
|
|
|
from .checkpointer import checkpointer_context, get_checkpointer, make_checkpointer, reset_checkpointer
|
|
from .runs import (
|
|
AcquireDecision,
|
|
AcquireResult,
|
|
ActiveLease,
|
|
ConflictError,
|
|
DisconnectMode,
|
|
ModelConcurrencyLimitError,
|
|
RedisConcurrencyGate,
|
|
RunContext,
|
|
RunManager,
|
|
RunRecord,
|
|
RunStatus,
|
|
UnsupportedStrategyError,
|
|
make_redis_concurrency_gate,
|
|
run_agent,
|
|
)
|
|
from .serialization import serialize, serialize_channel_values, serialize_lc_object, serialize_messages_tuple
|
|
from .store import get_store, make_store, reset_store, store_context
|
|
from .stream_bridge import END_SENTINEL, HEARTBEAT_SENTINEL, MemoryStreamBridge, StreamBridge, StreamEvent, make_stream_bridge
|
|
|
|
__all__ = [
|
|
# checkpointer
|
|
"checkpointer_context",
|
|
"get_checkpointer",
|
|
"make_checkpointer",
|
|
"reset_checkpointer",
|
|
# runs
|
|
"AcquireDecision",
|
|
"AcquireResult",
|
|
"ActiveLease",
|
|
"ConflictError",
|
|
"DisconnectMode",
|
|
"ModelConcurrencyLimitError",
|
|
"RedisConcurrencyGate",
|
|
"RunContext",
|
|
"RunManager",
|
|
"RunRecord",
|
|
"RunStatus",
|
|
"UnsupportedStrategyError",
|
|
"make_redis_concurrency_gate",
|
|
"run_agent",
|
|
# serialization
|
|
"serialize",
|
|
"serialize_channel_values",
|
|
"serialize_lc_object",
|
|
"serialize_messages_tuple",
|
|
# store
|
|
"get_store",
|
|
"make_store",
|
|
"reset_store",
|
|
"store_context",
|
|
# stream_bridge
|
|
"END_SENTINEL",
|
|
"HEARTBEAT_SENTINEL",
|
|
"MemoryStreamBridge",
|
|
"StreamBridge",
|
|
"StreamEvent",
|
|
"make_stream_bridge",
|
|
]
|