royenheart/dsh-plugin-structured-output ↗★ 0
@royenheart/dsh-plugin-structured-output
dsh plugin: opencode-style json_schema structured output via a generic StructuredOutput tool, /json-schema command, and native JSON Schema validation.
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.