Expand description
ActionIntent domain types.
ActionIntent is the central domain concept in ORCS: a declaration of
“what someone wants to do”, independent of who issued it (LLM, Lua, User)
or how it gets resolved (Internal Rust dispatch, Component RPC, etc.).
§Design Rationale
Three previously separate dispatch paths converge into one:
LLM tool_calls ─────┐
│
orcs.dispatch() ────>├──→ ActionIntent ──→ Resolver ──→ Executor
│
orcs.request() ─────┘Rust encapsulates all complexity (provider differences, permission checks, session management, Component RPC, Hook execution) so that Lua callers deal only with intents and results.
§Lifecycle
- Declaration —
ActionIntentcreated (from LLM, Lua, or system) - Enrichment —
IntentMetaattached (priority, confidence, latency) - Resolution —
IntentResolverfound viaIntentRegistry - Execution — Resolver dispatches (Internal tool / Component RPC)
- Result —
IntentResultreturned to caller
Structs§
- Action
Intent - A declaration of “what someone wants to do”.
- Confidence
- Confidence score in the range
[0.0, 1.0]. - Intent
Def - Definition of a named intent, registered in
IntentRegistry. - Intent
Meta - Execution metadata attached to an intent.
- Intent
Result - Outcome of executing an intent.
Enums§
- Content
Block - A single block within a structured message.
- Intent
Resolver - Where an intent gets resolved.
- Intent
Source - Who issued the intent.
- Message
Content - Message content: plain text or structured blocks.
- Priority
- Scheduling priority for intent execution.
- Role
- Conversation message role.
- Stop
Reason - Why the LLM stopped generating.