Skip to content

Experimental tools: Phase 1 docs and tests - #36

Merged
SamSamskies merged 2 commits into
mainfrom
docs/experimental-tools-phase1-21
Aug 13, 2026
Merged

Experimental tools: Phase 1 docs and tests#36
SamSamskies merged 2 commits into
mainfrom
docs/experimental-tools-phase1-21

Conversation

@SamSamskies

Copy link
Copy Markdown
Owner

Summary

  • Document Phase 1 experimental function tools under README Experimental Features (experimental.request / runTools, examples, provider matrix, security notes).
  • Default tool_choice to "auto" when tools are present and toolChoice is omitted, across validators and providers.
  • Expand automated coverage for stable-path rejection, defaults, and function-tool streaming/accumulation.

Resolves #21

Test plan

  • npm test
  • Skim README Experimental Features for accuracy vs window.inference.experimental
  • Confirm Zod example and provider matrix match current Phase 1 scope (no web_search)
  • Spot-check that omitting toolChoice with tools still sends provider tool_choice: "auto"

Made with Cursor

…" when tools are present and toolChoice is omitted. Updated validation and provider implementations to reflect this change, ensuring consistent behavior across the application. Added tests to verify the correct handling of tool_choice defaults in various scenarios.
…ersion. Changed import from CDN link to direct package reference for improved clarity and consistency.
@SamSamskies
SamSamskies merged commit d2755d9 into main Aug 13, 2026
1 check passed
@SamSamskies
SamSamskies deleted the docs/experimental-tools-phase1-21 branch August 13, 2026 23:14
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.

Experimental tools: Phase 1 docs and tests

1 participant