Skip to main content

@maiar-ai/core / Executor

Interface: Executor

Defined in: packages/core/src/runtime/providers/plugin.types.ts:22

Implementation of an executor for a plugin.

Properties​

name​

name: string

Defined in: packages/core/src/runtime/providers/plugin.types.ts:26

Unique identifier for the executor.


description​

description: Resolvable<string>

Defined in: packages/core/src/runtime/providers/plugin.types.ts:31

Human-readable description of what the executor does.


fn()​

fn: (task) => PluginResult | Promise<PluginResult>

Defined in: packages/core/src/runtime/providers/plugin.types.ts:39

Executes the plugin logic with the given agent task.

Parameters​

task​

AgentTask

The execution task for the agent.

Returns​

PluginResult | Promise<PluginResult>

A promise resolving to the result of execution.