@langchain/core
Version:
Core LangChain.js abstractions and schemas
14 lines (13 loc) • 484 B
TypeScript
import { BaseTransformOutputParser } from "./transform.js";
/**
* OutputParser that parses LLMResult into the top likely string and
* encodes it into bytes.
*/
export declare class BytesOutputParser extends BaseTransformOutputParser<Uint8Array> {
static lc_name(): string;
lc_namespace: string[];
lc_serializable: boolean;
protected textEncoder: InstanceType<typeof TextEncoder>;
parse(text: string): Promise<Uint8Array>;
getFormatInstructions(): string;
}