-
Notifications
You must be signed in to change notification settings - Fork 96
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
Simplify functions array #18
base: main
Are you sure you want to change the base?
Simplify functions array #18
Conversation
Syntactic Sugar to make maintenance easier
update to match new way to auto-build `functions` list in `functions.py`
Add some error checking
Could you please briefly explain what lines 312-321 do? |
Absolutely: The real work is via the
This creates a list of all items in the file (via By way of some initial checking the previously manually updated Note, if someone created helper functions that they wanted to use internally within the file but not expose 'externally' to the language model this might be incorrect. However, the guidance for the file (including in the |
understood -- it makes sense to automatically detect functions in the functions.py file it may be safe to assume that only functions passed as tools to LLM will be added to this file and we could use this method as default how about deprecating the old method with manually added list of functions into i'll merge once that is implemented. thanks. |
It doesn't look like there's an 'easy' way to test for a function being decorated by a specific decorator without modifying the decorator itself... i.e. the [second] solution here works:
But it would return true for any decorated function, not just those marked If you wanted to at least narrow the function scope you could modify:
To include an also I agree with you on removing the |
Some Syntactical Sugar seems like it would make maintenance easier