- Expanded package inclusion in `pyproject.toml` to support new modules. - Introduced new `adapters` and `protocol` packages for better organization. - Added backend adapter implementations for control plane integration. - Updated main application imports to reflect new package structure. - Removed deprecated core components and adjusted documentation accordingly. - Enhanced architecture documentation to clarify the new runtime and integration layers.
14 lines
368 B
Python
14 lines
368 B
Python
"""LLM flow helpers extracted from the duplex pipeline.
|
|
|
|
This module is intentionally lightweight for phase-wise migration.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from providers.common.base import LLMStreamEvent
|
|
|
|
|
|
def is_done_event(event: LLMStreamEvent) -> bool:
|
|
"""Return whether an LLM stream event signals completion."""
|
|
return str(event.type) == "done"
|