#database agent improvements
1 messages · Page 1 of 1 (latest)
a few things to try
- add
the question is: $questionto the end of the prompt - add a module description to your sql module
- this won't affect reliability, but it's kind of strange to call
LastReplyand discard the actual reply instead of returning it. Was there a specific reason for that?
also worth trying GPT 4.1, it's supposed to be better at following instructions
I was using last reply and returning it, but that resulted in double outputs in the terminal. For some strange reason, I though I needed to assign the call to something in order to execute. That might be something from a really old version? I remember trying it on the build pipeline I was working on and it wouldn't actually do anything (maybe bad memory/testing)
I'll add the question back into the prompt, I thought we wouldn't need that anymore based on the env but will definitely try it.
Tried 4.1 with the same results, its odd that sometimes it works - like all day with Gemini - and then suddenly stopped working.
Thank you for the feedback, will try those now
You're probably seeing the trace output from the agent running and then the output itself. one will have a 🤖 next to it
Follow up:
- Removed the last reply and its does not perform any work: https://dagger.cloud/mccallister-dev/traces/a96f5466b458f0f0337641a306c97d66
- Added the last reply back and it worked, but now I'm still not assigning a variable which feels odd that I'm not handling the error - which probably won't occur but still
- Added "the question is" and it seems to be working
yeah - it was confusing to look at on the screen
sure, there should be a visual difference between the two. You still want to return it though I think. If you ever wanted to call that function from another function, it has to return it's response