Skip to content
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

fix: is_valid_inputs in base.py #275

Merged
merged 11 commits into from
May 15, 2024
Merged

fix: is_valid_inputs in base.py #275

merged 11 commits into from
May 15, 2024

Conversation

Siraj-Aizlewood
Copy link
Contributor

It previously couldn't handle cases where the dynamic route function didn't have argument type hints.

It was also too strict, ensuring that all arguments were provided, and not just the mandatory function arguments were provided.

Finally, added an additional check to ensure the LLM wasn't attempting to provide arguments that don't exist for the dynamic route function.

Siraj-Aizlewood and others added 10 commits May 13, 2024 17:15
Now no longer requires typehints in the function signature (it wasn't using these anyway, and would break when they weren't included.

Also, we now only check if mandatary arguments have been provided in input. None mandatory don't need to be present.

Finally, addde a check to ensure that, if there are extra arguments provided in input not present in the signature, then these result in false being returned.
@Siraj-Aizlewood Siraj-Aizlewood changed the title fix: is_valid_inputs in base.py. fix: is_valid_inputs in base.py May 13, 2024
Copy link

codecov bot commented May 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.07%. Comparing base (414bf4c) to head (c6e9f85).
Report is 1 commits behind head on main.

❗ Current head c6e9f85 differs from pull request most recent head 1e51c35. Consider uploading reports for the commit 1e51c35 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #275      +/-   ##
==========================================
+ Coverage   80.97%   81.07%   +0.09%     
==========================================
  Files          45       44       -1     
  Lines        2676     2605      -71     
==========================================
- Hits         2167     2112      -55     
+ Misses        509      493      -16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamescalam jamescalam merged commit 2dd21e3 into main May 15, 2024
6 checks passed
@jamescalam jamescalam deleted the fix_is_valid_inputs branch May 15, 2024 02:07
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.

None yet

2 participants