pub struct ActionIntent {
pub id: String,
pub name: String,
pub params: Value,
pub meta: IntentMeta,
}Expand description
A declaration of “what someone wants to do”.
Provider-agnostic, source-agnostic. This is the domain primitive
that unifies LLM tool_calls, orcs.dispatch(), and Component RPC.
Fields§
§id: StringCorrelation ID (from LLM tool_call id, or auto-generated).
name: StringAction name (e.g. “read”, “exec”, “run_skill”).
params: ValueArguments (JSON object). Schema validated at resolution time.
meta: IntentMetaExecution metadata (priority, confidence, latency hint, etc.).
Implementations§
Source§impl ActionIntent
impl ActionIntent
Sourcepub fn new(name: impl Into<String>, params: Value) -> Self
pub fn new(name: impl Into<String>, params: Value) -> Self
Create a new intent with auto-generated ID.
Sourcepub fn from_llm_tool_call(
id: impl Into<String>,
name: impl Into<String>,
params: Value,
) -> Self
pub fn from_llm_tool_call( id: impl Into<String>, name: impl Into<String>, params: Value, ) -> Self
Create from an LLM tool_call (preserves the provider-assigned ID).
Sourcepub fn with_meta(self, meta: IntentMeta) -> Self
pub fn with_meta(self, meta: IntentMeta) -> Self
Attach metadata (builder-style).
Trait Implementations§
Source§impl Clone for ActionIntent
impl Clone for ActionIntent
Source§fn clone(&self) -> ActionIntent
fn clone(&self) -> ActionIntent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionIntent
impl Debug for ActionIntent
Source§impl<'de> Deserialize<'de> for ActionIntent
impl<'de> Deserialize<'de> for ActionIntent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ActionIntent
impl RefUnwindSafe for ActionIntent
impl Send for ActionIntent
impl Sync for ActionIntent
impl Unpin for ActionIntent
impl UnsafeUnpin for ActionIntent
impl UnwindSafe for ActionIntent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more