@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
20 lines (19 loc) • 883 B
TypeScript
import type { TODO_any } from '../../utils/organization/TODO_any';
import type { FormatParser } from '../_common/FormatParser';
/**
* Definition for JSON format
*
* @private still in development [🏢]
*/
export declare const JsonFormatParser: FormatParser<string, string, TODO_any, TODO_any>;
/**
* TODO: [🧠] Maybe proper instance of object
* TODO: [0] Make string_serialized_json
* TODO: [1] Make type for JSON Settings and Schema
* TODO: [🧠] What to use for validating JSONs - JSON Schema, ZoD, typescript types/interfaces,...?
* TODO: [🍓] In `JsonFormatParser` implement simple `isValid`
* TODO: [🍓] In `JsonFormatParser` implement partial `canBeValid`
* TODO: [🍓] In `JsonFormatParser` implement `heal
* TODO: [🍓] In `JsonFormatParser` implement `subvalueParsers`
* TODO: [🏢] Allow to expect something inside JSON objects and other formats
*/