Skip to content

Public history APIs should directly accept iterables of messages #21

Description

@ncoghlan

APIs accepting history inputs, including Chat.from_history, currently require multi-message histories to be formatted as full chat histories (Chat instances, or dictionaries with a messages key).

These APIs should also accept iterables of messages directly, treating those iterables as if they were the messages list in a full chat history.

Both input dictionaries and input messages should be annotated as accepting the shorthand form of simple text user messages, assistant responses, and system prompts (where the content field is simply the text of the message rather than a dict with type and text keys).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions