UNPKG

@promptbook/azure-openai

Version:

Promptbook: Run AI apps in plain human language across multiple models and platforms

20 lines (19 loc) 929 B
import type { TODO_any } from '../../utils/organization/TODO_any'; import type { FormatParser } from '../_common/FormatParser'; /** * Definition for any text - this will be always valid * * Note: This is not useful for validation, but for splitting and mapping with `subvalueParsers` * * @public exported from `@promptbook/core` */ export declare const TextFormatParser: FormatParser<string, string, TODO_any, TODO_any>; /** * TODO: [1] Make type for XML Text and Schema * TODO: [🧠][🤠] Here should be all words, characters, lines, paragraphs, pages available as subvalues * TODO: [🍓] In `TextFormatParser` implement simple `isValid` * TODO: [🍓] In `TextFormatParser` implement partial `canBeValid` * TODO: [🍓] In `TextFormatParser` implement `heal * TODO: [🍓] In `TextFormatParser` implement `subvalueParsers` * TODO: [🏢] Allow to expect something inside each item of list and other formats */