Approach to Saving an Agent Output to the File System #1148
pl-shernandez
started this conversation in
General
Replies: 2 comments
-
Ok after tinkering this seems like a reliable approach I'll adopt for what I'm working on. I'm curious still the best approach to instruct the LLM to reliably save a file with just 'then save a file to...' instructions in the text of a prompt using
|
Beta Was this translation helpful? Give feedback.
0 replies
-
The idea of "defFileOutput" is to define "routes" where it is acceptable for genaiscript to edit/update files - without confirmation from the user. I need to think about this request and come back to you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having fun learning how to use agents more effectively -- but struggling with how to save their structured response to the file system by the top level orchestrating prompt that receives the response or let the called agent itself save the
responsejson data generated itself. I just can't get it to save...I am trying to make something inspired by this but instead as a fake companies product engineering organization.
My agent is defined like this
I see it is interacting with the file system and I have other agents that read successfully from a markdown file in that same folder that acts as a "company wiki".

I'm using the documentation for System Prompts as a reference.
Is
defFileOutput
the correct approach? Are agents allowed to perform saves? ShoulddefOutputProcessor(
be used instead?Beta Was this translation helpful? Give feedback.
All reactions