models
models
¶
Typed contracts shared by the lightning action pipeline.
Classes¶
ActionRisk
¶
Bases: str, Enum
Security impact of a deterministic action.
ActionPlan
dataclass
¶
ActionPlan(
kind: str,
target: str = "",
text: str = "",
confidence: float = 0.0,
risk: ActionRisk = LOCAL,
arguments: dict[str, Any] = dict(),
reason: str = "",
)
A high-confidence action parsed directly from the current user turn.
ActionOutcome
dataclass
¶
ActionOutcome(
handled: bool,
success: bool = False,
message: str = "",
action: str = "",
target: str = "",
risk: ActionRisk = LOCAL,
verified: bool = False,
route_ms: float = 0.0,
execute_ms: float = 0.0,
total_ms: float = 0.0,
error_type: str = "",
metadata: dict[str, Any] = dict(),
)
Result returned to chat, voice and telemetry consumers.
Methods:¶
public_metadata
¶
Privacy-safe diagnostics: never expose dictated text or file data.