Skip to content

Conversation

@SETHJI01
Copy link
Contributor

@SETHJI01 SETHJI01 commented Oct 10, 2025

Description

The retrieve tool currently does not support including metadata in its response.
This change introduces an optional parameter that enables metadata ingestion in the retrieve method’s response.

Implementation Details:

- Added enableMetadata boolean parameter to retrieve tool TOOL_SPEC
- Implemented environment variable support for default metadata behavior
- Updated result formatting to conditionally display metadata fields
- Ensured backward compatibility (metadata disabled by default)
- Added comprehensive unit test coverage
- Updated documentation and usage examples

Related Issues

#280

Type of Change

Bug fix

Testing

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.

…s-agents#280)

    - Added enableMetadata boolean parameter to retrieve tool TOOL_SPEC
    - Implemented environment variable support for default metadata behavior
    - Updated result formatting to conditionally display metadata fields
    - Ensured backward compatibility (metadata disabled by default)
    - Added comprehensive unit test coverage
    - Updated documentation and usage examples

    Testing details
	- tested using hatch test tests/test_retrieve.py
@SETHJI01 SETHJI01 requested a review from a team as a code owner October 10, 2025 17:31
@JackYPCOnline JackYPCOnline enabled auto-merge (squash) October 15, 2025 16:23
@JackYPCOnline JackYPCOnline merged commit 319c8b0 into strands-agents:main Oct 15, 2025
16 checks passed
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.

3 participants