royenheart/dsh-plugin-structured-output ↗★ 0
@royenheart/dsh-plugin-structured-output
dsh 插件:通过 StructuredOutput 工具、/json-schema 命令和原生验证,提供 opencode 风格的 JSON Schema 结构化输出。
AI 分析
核心用途是强制模型输出符合特定 JSON Schema 规范的数据。适合需要从模型获取高可靠性、结构化 JSON 响应的开发与集成任务。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:royenheart/dsh-plugin-structured-output说明文档
阅读完整 README ↗Usage
/json-schema {"type":"object","properties":{"answer":{"type":"string"}},"required":["answer"],"additionalProperties":false}
What is the answer to life, the universe, and everything?
The model must then call StructuredOutput with a valid object.
Supported schemas follow dsh's enforced JSON Schema subset: any JSON root,
object properties/required/boolean additionalProperties, array items,
scalar enum/const, and exact-one oneOf. Unsupported keywords are
rejected at /json-schema time.