pub enum IntentResolver {
Internal,
Component {
component_fqn: String,
operation: String,
timeout_ms: Option<u64>,
},
Mcp {
server_name: String,
tool_name: String,
},
}Expand description
Where an intent gets resolved.
The IntentRegistry maps intent names to resolvers. When an intent
arrives, the registry looks up the resolver and dispatches accordingly.
Variants§
Internal
Rust-internal dispatch (the 8 builtin tools: read, write, grep, …).
Component
Component RPC via EventBus.
Fields
Mcp
MCP server tool dispatch.
The tool is invoked via JSON-RPC tools/call on the named server.
McpClientManager handles the actual protocol communication.
Trait Implementations§
Source§impl Clone for IntentResolver
impl Clone for IntentResolver
Source§fn clone(&self) -> IntentResolver
fn clone(&self) -> IntentResolver
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 IntentResolver
impl Debug for IntentResolver
Source§impl PartialEq for IntentResolver
impl PartialEq for IntentResolver
impl Eq for IntentResolver
impl StructuralPartialEq for IntentResolver
Auto Trait Implementations§
impl Freeze for IntentResolver
impl RefUnwindSafe for IntentResolver
impl Send for IntentResolver
impl Sync for IntentResolver
impl Unpin for IntentResolver
impl UnsafeUnpin for IntentResolver
impl UnwindSafe for IntentResolver
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