@promptbook/vercel
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
14 lines (13 loc) • 587 B
TypeScript
import type { BookParameter } from './AgentBasicInformation';
/**
* Parses parameters from text using both supported notations:
* 1. @Parameter - single word parameter starting with @
* 2. {parameterName} or {parameter with multiple words} or {parameterName: description text}
*
* Both notations represent the same syntax feature - parameters
*
* @param text - Text to extract parameters from
* @returns Array of parsed parameters with unified representation
* @public exported from `@promptbook/core`
*/
export declare function parseParameters(text: string): BookParameter[];