llamaindex
Version:
<p align="center"> <img height="100" width="100" alt="LlamaIndex logo" src="https://ts.llamaindex.ai/square.svg" /> </p> <h1 align="center">LlamaIndex.TS</h1> <h3 align="center"> Data framework for your LLM application. </h3>
17 lines (16 loc) • 622 B
TypeScript
import type { BaseOutputParser } from "@llamaindex/core/schema";
import type { SubQuestion } from "./engines/query/types.js";
import type { StructuredOutput } from "./types.js";
/**
*
* @param text A markdown block with JSON
* @returns parsed JSON object
*/
export declare function parseJsonMarkdown(text: string): any;
/**
* SubQuestionOutputParser is used to parse the output of the SubQuestionGenerator.
*/
export declare class SubQuestionOutputParser implements BaseOutputParser<StructuredOutput<SubQuestion[]>> {
parse(output: string): StructuredOutput<SubQuestion[]>;
format(output: string): string;
}