mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-21 23:11:01 +00:00
16 lines
454 B
TypeScript
16 lines
454 B
TypeScript
import {
|
|
definePluginEntry,
|
|
type AnyAgentTool,
|
|
type OpenClawPluginApi,
|
|
} from "openclaw/plugin-sdk/llm-task";
|
|
import { createLlmTaskTool } from "./src/llm-task-tool.js";
|
|
|
|
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 });
|
|
},
|
|
});
|