Skip to content

fix(toolbox-llamaindex): Align ToolboxTool properties for consistency and debuggability #293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: anubhav-state-lc
Choose a base branch
from

Conversation

anubhav756
Copy link
Contributor

@anubhav756 anubhav756 commented Jun 19, 2025

Summary

This PR refactors the ToolboxTool in toolbox-llamaindex to align its public API with the toolbox-langchain package (#294).

This provides a consistent developer experience across both ecosystems and also improves debuggability by making the tool's internal state transparent and inspectable.

Changes

The following read-only properties are now publicly exposed on the ToolboxTool, mirroring the core/langchain interface:

  • _bound_params
  • _required_authn_params
  • _required_authz_tokens
  • _auth_service_token_getters
  • _client_headers

@anubhav756
Copy link
Contributor Author

/gcbrun

@anubhav756 anubhav756 marked this pull request as ready for review June 19, 2025 14:32
@anubhav756 anubhav756 requested a review from a team as a code owner June 19, 2025 14:32
@anubhav756 anubhav756 changed the title fix(toolbox-llamaindex): Expose internal tool state for better debuggability fix(toolbox-llamaindex): Align ToolboxTool properties for consistency and debuggability Jun 19, 2025
@twishabansal
Copy link
Contributor

twishabansal commented Jun 23, 2025

Do we plan to add tests for this?

@anubhav756
Copy link
Contributor Author

Do we plan to add tests for this?

Added. Thanks for pointing that out.

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.

2 participants