agsamantha/node_modules/langchain/dist/output_parsers/noop.d.ts

27 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
import { BaseOutputParser } from "@langchain/core/output_parsers";
/**
* The NoOpOutputParser class is a type of output parser that does not
* perform any operations on the output. It extends the BaseOutputParser
* class and is part of the LangChain's output parsers module. This class
* is useful in scenarios where the raw output of the Large Language
* Models (LLMs) is required.
*/
export declare class NoOpOutputParser extends BaseOutputParser<string> {
static lc_name(): string;
lc_namespace: string[];
lc_serializable: boolean;
/**
* This method takes a string as input and returns the same string as
* output. It does not perform any operations on the input string.
* @param text The input string to be parsed.
* @returns The same input string without any operations performed on it.
*/
parse(text: string): Promise<string>;
/**
* This method returns an empty string. It does not provide any formatting
* instructions.
* @returns An empty string, indicating no formatting instructions.
*/
getFormatInstructions(): string;
}