Skip to content

feat: Add support for async token getters to ToolboxTool #147

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

Merged
merged 6 commits into from
Apr 16, 2025

Conversation

anubhav756
Copy link
Contributor

Previously we were only supporting sync token getters. Adding support for async getters could be beneficial performance-wise.

@anubhav756 anubhav756 self-assigned this Apr 4, 2025
@anubhav756 anubhav756 requested a review from a team as a code owner April 4, 2025 13:04
Copy link
Contributor

@kurtisvg kurtisvg left a comment

Choose a reason for hiding this comment

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

Can we add a test for this behavior?

@anubhav756
Copy link
Contributor Author

Can we add a test for this behavior?

Absolutely, I will add these in an upcoming PR for unit tests (#150 )

@anubhav756 anubhav756 requested a review from kurtisvg April 5, 2025 09:09
@kurtisvg
Copy link
Contributor

kurtisvg commented Apr 5, 2025

Can we add a test for this behavior?

Absolutely, I will add these in an upcoming PR for unit tests (#150 )

A best practice is to include tests for features when they merge. Unless we have extenuating circumstances, let's try to follow that.

@anubhav756 anubhav756 force-pushed the anubhav-async-auth-callable branch 2 times, most recently from 0bcceb4 to 0724e38 Compare April 9, 2025 13:46
@anubhav756 anubhav756 changed the base branch from main to anubhav-tests April 9, 2025 13:48
@anubhav756
Copy link
Contributor Author

Can we add a test for this behavior?

Absolutely, I will add these in an upcoming PR for unit tests (#150 )

A best practice is to include tests for features when they merge. Unless we have extenuating circumstances, let's try to follow that.

That's a good idea. Unit tests added. Thanks!

@anubhav756 anubhav756 force-pushed the anubhav-tests branch 3 times, most recently from d11b5d4 to 7038c1d Compare April 10, 2025 06:27
@anubhav756 anubhav756 force-pushed the anubhav-async-auth-callable branch from 0724e38 to 081dcf4 Compare April 10, 2025 06:28
@twishabansal
Copy link
Contributor

Looks great! Do you mind adding an e2e test for this functionality?

@anubhav756 anubhav756 force-pushed the anubhav-async-auth-callable branch from 081dcf4 to 05c881a Compare April 10, 2025 20:03
@anubhav756 anubhav756 force-pushed the anubhav-async-auth-callable branch from a65149c to c80fadc Compare April 11, 2025 12:37
@anubhav756 anubhav756 requested a review from twishabansal April 15, 2025 11:19
@anubhav756 anubhav756 merged commit 13fe2a8 into anubhav-tests Apr 16, 2025
14 checks passed
@anubhav756 anubhav756 deleted the anubhav-async-auth-callable branch April 16, 2025 07:19
anubhav756 added a commit that referenced this pull request Apr 16, 2025
* dep: Add pytest-cov package as a test dependency.

* chore: Remove unused imports from sync_client.py

* chore: Add unit tests for the tool and client classes

* chore: Delint

* chore: Delint

* chore: Cover tool not found case

* chore: Add toolbox tool unit test cases

* chore: Add additional test cases to cover tool invocation and better docstring validation.

* chore: Add test cases for sync and static bound parameter.

* chore: Reorder tests in matching classes.

This will improve maintainability.

* feat: Add support for async token getters to ToolboxTool (#147)

* feat: Add support for async token getters to ToolboxTool

* chore: Improve variable names and docstring for more clarity

* chore: Improve docstring

* chore: Add unit test cases

* chore: Add e2e test case

* chore: Fix e2e test case
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