Implement support for output schemas (#411)

* tweak examples

* tweak prompt

* Implement support for output schemas

* fix: add example for structured output with zod schema

* tweak

* remove redundant cast

* fix input name

* strip $schema

* hack around vendor requirement

* clarify required result output

---------

Co-authored-by: pullfrog[bot] <226033991+pullfrog[bot]@users.noreply.github.com>
This commit is contained in:
Mateusz Burzyński
2026-03-05 23:07:03 +00:00
committed by pullfrog[bot]
parent fafe930c77
commit 5684cbef77
11 changed files with 5981 additions and 89 deletions
+3 -1
View File
@@ -41348,6 +41348,7 @@ var package_default = {
"@opencode-ai/sdk": "^1.0.143",
"@standard-schema/spec": "1.0.0",
"@toon-format/toon": "^1.0.0",
ajv: "^8.18.0",
arkregex: "0.0.5",
arktype: "2.1.29",
dotenv: "^17.2.3",
@@ -41445,7 +41446,8 @@ var Inputs = type({
"search?": ToolPermissionInput.or("undefined"),
"push?": PushPermissionInput.or("undefined"),
"shell?": ShellPermissionInput.or("undefined"),
"cwd?": type.string.or("undefined")
"cwd?": type.string.or("undefined"),
"output_schema?": type.string.or("undefined")
});
function resolvePromptInput() {
const prompt = core3.getInput("prompt", { required: true });