import { ... } from "@langchain/core/utils/event_source_parse";Converts a ReadableStream into a callback pattern.
Parses arbitary byte chunks into EventSource line buffers. Each line should be of the format "field: value" and ends with \r, \n, or \r\n.
Parses line buffers into EventSourceMessages.