Skip to content

[fix] Reject parameter_types on Python YAML tools (#774)#804

Merged
wenjin272 merged 1 commit into
apache:mainfrom
wenjin272:fix-paramter-types
Jun 8, 2026
Merged

[fix] Reject parameter_types on Python YAML tools (#774)#804
wenjin272 merged 1 commit into
apache:mainfrom
wenjin272:fix-paramter-types

Conversation

@wenjin272
Copy link
Copy Markdown
Contributor

@wenjin272 wenjin272 commented Jun 8, 2026

Linked issue: #774

Purpose of change

The YAML loader documented parameter_types as java-only/forbidden for Python tools, but only validated the java-missing direction. A Python tool declaring parameter_types passed through and was silently dropped. Add a fail-fast check and align the ToolSpec docstring with the doc.

Tests

ut

API

no

Documentation

  • doc-needed
  • doc-not-needed
  • doc-included

The YAML loader documented parameter_types as java-only/forbidden for
Python tools, but only validated the java-missing direction. A Python
tool declaring parameter_types passed through and was silently dropped.
Add a fail-fast check and align the ToolSpec docstring with the doc.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added doc-included Your PR already contains the necessary documentation updates. fixVersion/0.3.0 The feature or bug should be implemented/fixed in the 0.3.0 version. priority/major Default priority of the PR or issue. and removed doc-included Your PR already contains the necessary documentation updates. labels Jun 8, 2026
@wenjin272 wenjin272 merged commit 0bb1628 into apache:main Jun 8, 2026
50 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-included Your PR already contains the necessary documentation updates. fixVersion/0.3.0 The feature or bug should be implemented/fixed in the 0.3.0 version. priority/major Default priority of the PR or issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant