-
Notifications
You must be signed in to change notification settings - Fork 177
Adds Neon as a tool for storing structured data #51
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
Conversation
hi @davidgomes! thank you for the contribution!! so your confusion is because the code is duplicated in the sense that it is in this repo twice but to an agent developer that is building with agentstack, they would only have the code generated once in their project based on that template file. we generate code instead of importing it from the agentstack package because in many of our tools, there is an expectation that a developer will make small changes to better fit their use-case |
7172d97
to
4d87db3
Compare
Gotcha! So, while developing, do you typically develop in the |
In my development process, I usually create a project with Once that is done, I delete the tool code from my example project and then run |
Ah this is good to know, I basically did all of that except much more manually. Please let me know if you have any more feedback on the PR! |
4d87db3
to
d9aa5d9
Compare
Couple minor notes, but this is fantastic, and the example worked out of the box! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just pushed those small adjustments; this is good to go.
Thank you @davidgomes for your contribution!
example worked perfectly! i made one small change by removing the tool manually and re-adding it programmatically with I messaged in Slack, but I would love to have docs added for this ins I'm going to go ahead and merge this PR to simplify merging some other PRs without additional conflicts, so it'd be great to get the docs added in a different PR. Great work @davidgomes and thank you for reviewing @tcdent!! I'm very glad to have Neon available as a tool!! |
This PR adds Neon as a tool so that we can build agents that store structured data in ephemeral or long-lived Postgres instances.
This PR also augments the
web_researcher
example with a third task that uses an agent to store the data collected in the previous two tasks in Postgres.I wasn't quite sure of whether to write the code in
agentstack/templates/crewai/tools/neon_tool.py
or just directly inside the example inexamples/web_researcher/src/tools/neon_tool.py
. This is because themem0_tool.py
code seems to be somewhat duplicated, so I'm not sure what the best way to go about this is. The comments in the code should explain my confusion.There's this video too:
https://drive.google.com/file/d/1Tozsjwg8c2jW8fun5UpMKX8V3BVUzmDS/view?usp=sharing
(And yes, in the video, I interchangeably refer to AgentOps/AgentStack but I know they're different things. All of the observability comes from AgentOps and AgentStack is one framework for building agents☺️ )