zon-format
Version:
ZON: The most token-efficient serialization format for LLMs - beats CSV, TOON, JSON, and all competitors
19 lines (18 loc) • 572 B
TypeScript
import { BaseOutputParser } from "@langchain/core/output_parsers";
/**
* Parser for ZON (Zero Overhead Notation) output.
*/
export declare class ZonOutputParser<T = any> extends BaseOutputParser<T> {
lc_namespace: string[];
/**
* Returns instructions on how to format the output as ZON.
* @returns Format instructions string
*/
getFormatInstructions(): string;
/**
* Parses the output text into a typed object.
* @param text - The output text to parse
* @returns Parsed object
*/
parse(text: string): Promise<T>;
}