feat: add kernel completion verdict functions and response fields

Pure functions in types.py classify finish reasons, judge stream
completeness and outcome, and decide cacheability; TransportResult and
LLMResponse gain finish_reason and stream_end; snapshots accept
tool_calls null.

Red: tests/unit/test_completion_verdict.py failed at collection
(ImportError: _classify_finish et al. undefined) before this change.
This commit is contained in:
2026-10-14 23:12:00 -04:00
parent ab0e924849
commit e5ad67408a
3 changed files with 486 additions and 32 deletions
+2
View File
@@ -50,6 +50,7 @@ from polygateway.types import (
OpenAIChatCompletion,
ResponseMode,
SourceConfig,
StreamEnd,
TelemetryStatus,
ThinkingObservation,
)
@@ -73,6 +74,7 @@ __all__ = [
"GovernanceBackendError",
"LLMResponse",
"ResponseMode",
"StreamEnd",
"OpenAIChatCompletion",
"ModelPrice",
"OcrClient",