init

Function init 

Source
pub fn init() -> Result<SkillEngine>
Expand description

Initialize the skill runtime

Creates a new SkillEngine instance with default configuration.

§Returns

Returns a configured SkillEngine ready to load and execute skills.

§Errors

Returns an error if the runtime fails to initialize, typically due to:

  • Missing dependencies (e.g., Wasmtime components)
  • Invalid system configuration
  • Insufficient permissions

§Example

use skill_runtime::init;

let engine = init()?;
// Use the engine to load and execute skills