Index
actions
¶
Deterministic, low-latency desktop actions.
The action layer intentionally sits in front of the LLM. It handles only explicit, high-confidence and reversible user requests; everything ambiguous or risky continues through the normal agent and approval pipeline.
Classes¶
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.
Source code in src/diapason/actions/models.py
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.
ActionRisk
¶
Bases: str, Enum
Security impact of a deterministic action.
LightningActionService
¶
LightningActionService(
config: Any = None,
*,
router: FastActionRouter | None = None,
)
Parse, authorize, execute and measure a single explicit user command.