Question
I have a function that is given a prompt and a list of tools, and then decides on which tool to call and how to form the inputs and then return the outputs.
So when I build up the context for this, I send a base system like prompt, and then the tool definitions, and then finally the user prompt.
So it needs to process all this for each tool call. I would like a checkpoint after my system prompt and tool definitions that I can "rewind" to for the next tool call. Is this possible? Either to rewind in memory or even to output somewhere and then reload (assuming that would be faster)?
Question
I have a function that is given a prompt and a list of tools, and then decides on which tool to call and how to form the inputs and then return the outputs.
So when I build up the context for this, I send a base system like prompt, and then the tool definitions, and then finally the user prompt.
So it needs to process all this for each tool call. I would like a checkpoint after my system prompt and tool definitions that I can "rewind" to for the next tool call. Is this possible? Either to rewind in memory or even to output somewhere and then reload (assuming that would be faster)?