Skip to content

Allow branching message history #33

@ianmacartney

Description

@ianmacartney

Allow specifying a parentMessageId on thread creation. Behavior:

  • recentMessages will pull from the parent thread if there aren't enough messages in the new thread. If the parent thread doesn't have enough, it will go to its parent, etc.
  • search will not search in any parent thread, only in the current thread. This is mostly a side-effect of how the search indexes are implemented right now. To fetch from a specific parent, you could always fetch context messages from the desired thread, then feed those into the generateText call as a list of messages directly..

The workaround for this currently is to copy the old messages over manually

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions