Files
united-workforce/.changeset/const-prompt-literal.md
T
xiaoju a0e254a681
CI / check (pull_request) Successful in 1m48s
fix: render const values as literals in output format instruction (#129)
buildOutputFormatInstruction now renders const fields with their actual
value (e.g. $status: greeted) instead of the type placeholder (<string>).
Also adds early return in resolvePropertySchema for const properties.

Fixes #129
2026-06-06 01:12:13 +00:00

357 B

@united-workforce/util-agent
@united-workforce/util-agent
patch

fix: render const values as literals in output format instruction (#129)

Previously buildOutputFormatInstruction rendered const: greeted as $status: <string>, causing agents to output $status: const instead of the actual value. Now const fields render as $status: greeted # required | fixed value.