Skip to content

Add tool-calling scoping note to the models CI-stub section - #621

Open
heskew wants to merge 2 commits into
mainfrom
docs/models-stub-tools-note
Open

Add tool-calling scoping note to the models CI-stub section#621
heskew wants to merge 2 commits into
mainfrom
docs/models-stub-tools-note

Conversation

@heskew

@heskew heskew commented Aug 7, 2026

Copy link
Copy Markdown
Member

Follow-up to @kriszyp's post-approval comment on #597, which merged before it was addressed.

The "Offline and CI stubs" section framed the reply stub as a drop-in offline replacement under the application's existing logical name, but defineBackend defaults the tools capability to false, and a generate() call that declares tools automatically requires that capability (Models.ts buildRequires) — so a tool-calling application fails against the stub up front, before its generate() runs.

This adds the third scoping note as suggested: tool-calling tests need a stub defined with tools: true whose generate() returns the tool-call sequence the test expects, and the simple reply stub deliberately stays flagless — the up-front failure is the honest signal.

One-sentence doc change; verified against resources/models/backendRegistry.ts (tools = false default) and resources/models/Models.ts (tools auto-require) on harper main. Prettier and the Docusaurus build pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Vq8zum5E6fbjzmLsdDDkJh

Follow-up to review feedback on #597: defineBackend defaults the tools
capability to false, and generate() calls that declare tools auto-require
it — so the simple reply stub fails a tool-calling application up front,
before its generate() runs. Call this out as a third scoping note: tool
tests need tools: true plus a generate() that returns the expected
tool-call sequence; the plain stub stays flagless.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq8zum5E6fbjzmLsdDDkJh
@heskew
heskew requested a review from a team as a code owner August 7, 2026 00:22
@heskew
heskew requested a review from kriszyp August 7, 2026 00:22

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the local development documentation for models to include a third scoping note explaining tool-calling capabilities and how defineBackend defaults the tools capability to false. The reviewer suggested formatting these three scoping notes as a bulleted list to improve readability and make each point more distinct.

Comment thread reference/models/local-development.md Outdated
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-621

This preview will update automatically when you push new commits.

Per review: the three-notes paragraph had grown too dense to scan.
Reuse the bold-led pattern from the parity-caveats section rather than
a bulleted list, keeping the page's prose style.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vq8zum5E6fbjzmLsdDDkJh
@github-actions
github-actions Bot temporarily deployed to pr-621 August 7, 2026 00:28 Inactive
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-621

This preview will update automatically when you push new commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant