-
Notifications
You must be signed in to change notification settings - Fork 183
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
Normalize Callable
naming convention
#285
Comments
After revisiting the naming conventions, we decided against using the For callable fields and methods, the following guidelines should be used:
Keep in mind that these are guidelines, not strict rules, and can be adjusted based on context. |
Some team members have noted that these naming conventions may be more appropriate for class methods than class fields. For example, To avoid this confusion, we are standardizing class field naming to be noun-based. Below are some of the conventions I landed on in #1275. *_factory: Used for functions that create a new instance of an object. |
And finally, after even more discussion we've settled on a variation of the initial proposal:
This article comes closest to summarizing these ideas. Addressing Previous Points:
|
Multiple Griptape classes have
Callable
properties. We use the following naming convention for them:_func
. For exampleSnowflakeSqlDriver.connection_func
._fn
. For example,LocalVectorStoreDriver.relatedness_fn
.BasePromptDriver.prompt_stack_to_string
.The team decided to normalize all callable properties to follow the
_fn
naming convention.The text was updated successfully, but these errors were encountered: