Add validate_schema_with config method for structured JSON output
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Read issue #1007 first to understand the structured JSON output this feature depends on. Then trace the config do/chat(:extract) entry point shown here and define the completion criteria around accepting a secondary model and validating the cog's structured output against the user's needs.
Written by the indexing model from the issue text.
Description
Follow-up to #1007. Once structured JSON output exists, add a config method that designates a secondary model to validate a cog's structured output.
This would be used to validate that the output conforms to the user's needs. For example, it could flag that a field was not populated although the prompt indicated that it was supposed to be always present.
an example of usage would be
config do
chat(:extract) do
validate_schema_with "claude-opus-4-8"
end
end
- Dominant language
- Ruby
- Stars
- 1.3k
- Forks
- 80
- Avg merge
- 21m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Shopify/roast
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 38/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Shopify/roast#1009 · 1 comment ·
Maintainers usually reply within 1 day
-
Add workflow to validate and update docs & doc commentsMay be free again @LasmarKhalifa claimed this 155 days ago, and no pull request is open. Openenhancement
Shopify/roast#1008 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
fossi-foundation/globalfoundries-pdk-libs-gf180mcu_fd_pv#61 ·
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
KevinSaison/fuchikoma#14 ·
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
PowerShell session to_cmd doesn't escape embedded newlines/carriage returns, allowing statement injectionPossibly taken @kx7m2qd claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rapid7/metasploit-framework#22230 ·
Maintainers usually reply within 2 days
-
blast/small refactor risk/medium spend-dem
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
chriskelly/MusicWall#83 ·
Maintainers usually reply within 1 day