Skip to content

Saved context state? #1565

@sroussey

Description

@sroussey

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions