Skip to content

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

Draft
anubhav756 wants to merge 4 commits into
anubhav-state-lcfrom
anubhav-state-li
Draft

fix(toolbox-llamaindex): Align ToolboxTool properties for consistency and debuggability#293
anubhav756 wants to merge 4 commits into
anubhav-state-lcfrom
anubhav-state-li

Conversation

@anubhav756

@anubhav756 anubhav756 commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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 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

twishabansal commented Jun 23, 2025

Copy link
Copy Markdown
Contributor

Do we plan to add tests for this?

@anubhav756

Copy link
Copy Markdown
Contributor Author

Do we plan to add tests for this?

Added. Thanks for pointing that out.

@anubhav756 anubhav756 force-pushed the anubhav-state-lc branch 2 times, most recently from 6fa70b7 to 34497fd Compare July 2, 2025 20:01
@anubhav756 anubhav756 marked this pull request as draft September 8, 2025 06:46
@anubhav756 anubhav756 added the priority: p3 Desirable enhancement or fix. May not be included in next release. label Jun 11, 2026
@anubhav756 anubhav756 removed their assignment Jun 11, 2026
@twishabansal twishabansal removed their request for review June 11, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: p3 Desirable enhancement or fix. May not be included in next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants