Skip to content

Ability to get full conversation history from a session #51

Open
@domenic

Description

@domenic

Right now it's expected that the web developer keep track of previous inputs and outputs themselves; they can only get the "next" output from the model.

However, it might be useful to allow retrieving the full session-so-far from the model. An example API:

const history = await session.history();

// returns an array of { role, content } pairs

This overlaps as a feature request with #50, so if there are independent use cases besides saving to disk or transferring across contexts, please comment with them here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions