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

Split langchain actions into separate files #173

Open
dimitrov-d opened this issue Jan 9, 2025 · 4 comments
Open

Split langchain actions into separate files #173

dimitrov-d opened this issue Jan 9, 2025 · 4 comments
Labels
bounty live bounties on earn/gibwork good first issue Good for newcomers

Comments

@dimitrov-d
Copy link
Contributor

dimitrov-d commented Jan 9, 2025

The /src/langchain/index.ts file is becoming bloated very quickly with the current setup - already over 2k lines of code, which heavily impacts maintenance cost and makes it difficult to navigate and search between different actions.

Similarly to how it is done for the actions and tools, I suggest the langchain actions also get split each into its own file, which will improve readability and allow for easy navigation, maintenance.

Do the following things

  • spit the langchain/index.ts into multiple folders, depending on protocol name
  • divide the actions under src/actions into multiple folders, depending on protocol name
  • divide the tools under src/tools into multiple folders, depending on protocol name
@thearyanag
Copy link
Member

@dimitrov-d , 100% agreed

we can have folders for each protocol, making it easier to maintain

@thearyanag thearyanag added good first issue Good for newcomers bounty live bounties on earn/gibwork labels Jan 9, 2025
@Marvel-Ib
Copy link

@thearyanag @dimitrov-d i would love to be assigned this

@thearyanag
Copy link
Member

hey @Marvel-Ib - pls feel free to make a direct PR

@ishaan812
Copy link

A different file for each of the functions makes more sense I guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty live bounties on earn/gibwork good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants