docs(readme): expand hero to define the whole block, then get#5
Merged
Conversation
The root README hero only showed `.get()`; expand it to define the full ThinkingBlock — schema, agent, identity, prepareCall, and both QC gates (check + judge) — and then call `.get()`. Mirrors examples/nutrition's block.ts (Atwater reconcile tolerance, judge wiring) and uses the AI SDK gateway model string so imports match `npm install thinking-blocks ai zod`. Verified with `tsc --noEmit` in the nutrition example's package context. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The root README hero only showed
.get(). This expands it to define thewhole nutrition Thinking Block — schema (the spec), agent,
identity(the serial),
prepareCall, and both QC gates (checkcode-caliper +judgemodel-inspector) — and then call.get({ food: "dragon fruit" }).examples/nutrition/src/block.ts(Atwater reconcile tolerance,judge wiring) so it stays faithful to the real, tested API.
"openai/gpt-5"like the flagshipREADME, so imports match
npm install thinking-blocks ai zodexactly.nutritionexample's packageand ran
tsc --noEmit. First pass without validator generics failed(
'output' is of type 'unknown'); addedcheck<…>/judge<…>paramsto match block.ts and it's green.
🤖 Generated with Claude Code
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.