Skip to main content

Module executor

Module executor 

Source
Expand description

Skill execution abstraction.

This module provides the SkillExecutor trait for pluggable skill execution, along with ExecutionContext for managing state between steps.

§Example

use thulp_skills::{SkillExecutor, ExecutionContext, DefaultSkillExecutor};

let executor = DefaultSkillExecutor::new(transport);
let mut context = ExecutionContext::new()
    .with_input("query", json!("search term"));

let result = executor.execute(&skill, &mut context).await?;

Structs§

ExecutionContext
Context passed through skill execution, carrying inputs, outputs, and configuration.
StepResult
Result of executing a single step.

Traits§

SkillExecutor
Trait for executing skills.