2026-03-17 00:14:01 -07:00
|
|
|
import {
|
|
|
|
|
definePluginEntry,
|
|
|
|
|
type AnyAgentTool,
|
|
|
|
|
type OpenClawPluginApi,
|
|
|
|
|
} from "openclaw/plugin-sdk/llm-task";
|
2026-01-23 17:18:47 -08:00
|
|
|
import { createLlmTaskTool } from "./src/llm-task-tool.js";
|
|
|
|
|
|
2026-03-17 00:14:01 -07:00
|
|
|
export default definePluginEntry({
|
|
|
|
|
id: "llm-task",
|
|
|
|
|
name: "LLM Task",
|
|
|
|
|
description: "Optional tool for structured subtask execution",
|
|
|
|
|
register(api: OpenClawPluginApi) {
|
|
|
|
|
api.registerTool(createLlmTaskTool(api) as unknown as AnyAgentTool, { optional: true });
|
|
|
|
|
},
|
|
|
|
|
});
|