UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 1.15 kB
import{r as createLazyRuntimeModule}from"../../lazy-runtime-Ds6M7vp4.mjs";import{o as optionalPositiveIntegerSchema}from"../../typebox-pxCMyoM2.mjs";import"../../channel-actions-DWbJI8_2.mjs";import{t as defineToolPlugin}from"../../tool-plugin-Bkd3ITcc.mjs";import{t as llmTaskToolDefinition}from"../../llm-task-tool-definition-JYChbo8e.mjs";import{Type}from"typebox"; //!extensions/llm-task/index.ts var llm_task_default=defineToolPlugin({id:`llm-task`,name:`LLM Task`,description:`Generic JSON-only LLM tool for structured tasks callable from workflows.`,configSchema:Type.Object({defaultProvider:Type.Optional(Type.String()),defaultModel:Type.Optional(Type.String()),defaultAuthProfileId:Type.Optional(Type.String()),maxTokens:optionalPositiveIntegerSchema(),timeoutMs:optionalPositiveIntegerSchema()},{additionalProperties:false}),tools:e=>[e({...llmTaskToolDefinition,optional:true,factory:({api:e})=>{const t=createLazyRuntimeModule(()=>import(`../../llm-task-tool-CiEDUnVa.mjs`).then(({createLlmTaskTool:t})=>t(e)));return{...llmTaskToolDefinition,execute:async(e,n,r)=>await(await t()).execute(e,n,r)}}})]});export{llm_task_default as default};