Skip to content

Conversation

nparikh13iit
Copy link

@nparikh13iit nparikh13iit commented Oct 1, 2025

  • Add dual output format: human-readable text + structured JSON
  • Fix misleading 'Tool missing' error messages
  • Preserve original tool results while adding batch metadata
  • Enable agents to display individual tool results instead of generic success message
  • Fix typo: 'Sammple' -> 'Sample' in documentation
  • Update tests to match new output format

Resolves issue where agents only showed 'batch call executed successfully' instead of actual tool results from parallel executions.

Description

Fixed the batch tool to return human-readable results that agents can properly display. Previously, agents only showed "batch call executed successfully" instead of the actual results from individual tool executions.

Related Issues

Fixes #271

Type of Change

Bug fix

Testing

  • I ran hatch run prepare
  • All 997 tests pass with the changes
  • Verified batch tool now returns dual format: human-readable text + structured JSON
  • Fixed typo in documentation: 'Sammple' → 'Sample'

Changes Made

  • Add dual output format for agent compatibility
  • Fix misleading 'Tool missing' error messages
  • Preserve original tool results while adding batch metadata
  • Enable agents to display individual tool results
  • Update tests to match new output format

This resolves the issue where agents only showed 'batch call executed successfully' instead of actual tool results from parallel executions.
How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli

  • I ran hatch run prepare

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Add dual output format: human-readable text + structured JSON
- Fix misleading 'Tool missing' error messages
- Preserve original tool results while adding batch metadata
- Enable agents to display individual tool results instead of generic success message
- Fix typo: 'Sammple' -> 'Sample' in documentation
- Update tests to match new output format

Resolves issue where agents only showed 'batch call executed successfully'
instead of actual tool results from parallel executions.
@nparikh13iit nparikh13iit requested a review from a team as a code owner October 1, 2025 17:37
@nparikh13iit nparikh13iit deployed to manual-approval October 1, 2025 17:37 — with GitHub Actions Active
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.

[BUG] Batch tool returns generic success messages instead of actual tool execution data
1 participant