Skip to main content

Module default_executor

Module default_executor 

Source
Expand description

Default skill executor implementation.

This module provides DefaultSkillExecutor, the standard implementation of SkillExecutor that executes skills using a Transport.

§Example

use thulp_skills::{DefaultSkillExecutor, ExecutionContext, NoOpHooks};
use thulp_core::Transport;

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§

DefaultSkillExecutor
Default skill executor that uses a Transport to execute tool calls.