Skip to content

Extend the notion of Chat Message and Chat History  #194

@InAnYan

Description

@InAnYan

An LLM (chat model) is limited only to system message, user and AI messages.

But the real notion of the chat message is more complex:

  1. There are thinking stages of AI response. In API they are AiMessages but it should not be seen as AI answer.
  2. AI answers contain references. But these references are only mention in UserMessage.
  3. There are various kind of "status" messages: model or something else was changed, error messages, auto retry mechanism. Those are not AI messages and not user message (and not system message).

To sum up, we just need to create our own hierexhy and message types. And then develop a visitor that will convert JabRefMessage to dev.langchain.ChatMessage

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