pub struct IntentDef {
pub name: String,
pub description: String,
pub parameters: Value,
pub resolver: IntentResolver,
}Expand description
Definition of a named intent, registered in IntentRegistry.
Serves two purposes:
- Generate LLM API
toolsarray (name + description + parameters) - Route intents to their resolver (Internal / Component)
Fields§
§name: StringUnique intent name (e.g. “read”, “run_skill”).
description: StringHuman-readable description (sent to LLM).
parameters: ValueJSON Schema for parameters (sent to LLM).
resolver: IntentResolverWhere this intent gets resolved.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntentDef
impl RefUnwindSafe for IntentDef
impl Send for IntentDef
impl Sync for IntentDef
impl Unpin for IntentDef
impl UnsafeUnpin for IntentDef
impl UnwindSafe for IntentDef
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