• Create a message as a stream and returns a reader with the message id. Messages are attached to topics in order to coordinate memory of gen-AI chat sessions.Auth’ed user or api key must have an admin or owner role for the specified dataset’s organization.

    Example:

    const { reader, queryId } = await trieve.createMessageReader({
    topic_id: "3c90c3cc-1d76-27198-8888-8dd25736052a",
    new_message_content: "a new message"
    });

    Parameters

    Returns Promise<{
        queryId: null | string;
        reader: ReadableStreamDefaultReader<Uint8Array>;
    }>