WorkflowAiInstruction
Defined in: packages/schema/src/workflow.ts:178
Workflow 的 AI 指令描述(见 docs/AI生态冲击调整方案.md §7.2)。 把 Workflow JSON 转换为 AI Agent 可理解的指令格式, 供 MCP server 在 prompt 模板 / resource 中暴露给 AI 客户端。
Properties
Section titled “Properties”instruction
Section titled “instruction”instruction:
string
Defined in: packages/schema/src/workflow.ts:180
人类可读的指令描述,如 “Execute 2-step workflow: image.resize with {…} → image.compress with {…}”
capabilities
Section titled “capabilities”capabilities:
string[]
Defined in: packages/schema/src/workflow.ts:182
涉及的 Lokvis capability 名(去重)
inputSchema
Section titled “inputSchema”inputSchema:
object
Defined in: packages/schema/src/workflow.ts:184
输入参数 JSON Schema(描述 workflow 需要的输入)
example
Section titled “example”example:
object
Defined in: packages/schema/src/workflow.ts:186
示例调用(供 AI 学习调用方式)
input:
Record<string,unknown>
expectedOutput
Section titled “expectedOutput”expectedOutput:
string