Skip to content

fix(tool): validate parsed input when content is absent - #2561

Open
fukang0611 wants to merge 1 commit into
agentscope-ai:mainfrom
fukang0611:fix/tool-executor-input-fallback
Open

fix(tool): validate parsed input when content is absent#2561
fukang0611 wants to merge 1 commit into
agentscope-ai:mainfrom
fukang0611:fix/tool-executor-input-fallback

Conversation

@fukang0611

Copy link
Copy Markdown

Summary

  • Validate tool-call arguments through JsonUtils.resolveToolCallArgsJson, preserving parsed input when raw content is absent or invalid.
  • Add a regression test for an input-only add tool call.

Testing

  • mvn -pl agentscope-core test (2246 tests, 0 failures, 9 skipped)
  • mvn test progressed through the completed modules successfully, then was blocked by Maven Central DNS failure while resolving junit-platform-launcher:6.0.1 for agentscope-spring-boot-starter.

Related to #2337.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@oss-maintainer oss-maintainer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Summary

Reviewed the changes in this PR. The modifications look reasonable and follow the project conventions.


Automated review by "github-manager-bot"

@zouyx
zouyx requested a review from Copilot August 6, 2026 16:14
@zouyx

zouyx commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

if you want to contribute this project,sign CLA pls

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

5 participants