fix: render const values as literals in output format instruction (#129)
CI / check (pull_request) Successful in 1m48s

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
This commit is contained in:
2026-06-06 01:12:13 +00:00
parent dd77b40f6c
commit a0e254a681
3 changed files with 48 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
---
"@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`.