dsh-cc/dsh-cc--packages-core-tool-structured-output ↗★ 1
@dsh-cc/tool-structured-output
StructuredOutput tool that validates model input against a caller-supplied JSON schema and returns it verbatim, aligned with Claude Code's SyntheticOutputTool 适合需模型输出结构化 JSON 的开发者;需提供 schema。
설치
검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗
Usage
const tool = createStructuredOutputTool({
type: 'object',
additionalProperties: false,
properties: {
title: { type: 'string' },
count: { type: 'integer' },
},
required: ['title', 'count'],
})
ctx.tools.register(tool)