pub trait SkillInvocationContributor: Send + Sync {
// Provided method
fn on_skill_invocation<'a>(
&'a self,
_input: SkillInvocationInput<'a>,
) -> ExtensionFuture<'a, ()> { ... }
}Expand description
Contributor for skill invocations observed by the host or an owning extension.
Implementations should treat the skill resource as an opaque identity and keep this callback cheap because it runs inline with skill loading or command dispatch.
Provided Methods§
Sourcefn on_skill_invocation<'a>(
&'a self,
_input: SkillInvocationInput<'a>,
) -> ExtensionFuture<'a, ()>
fn on_skill_invocation<'a>( &'a self, _input: SkillInvocationInput<'a>, ) -> ExtensionFuture<'a, ()>
Called after one explicit skill load or deduplicated implicit skill invocation is observed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".