UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

11 lines (10 loc) 421 B
/** * Function trimCodeBlock will trim starting and ending code block from the string if it is present. * * Note: [🔂] This function is idempotent. * Note: This is useful for post-processing of the result of the chat LLM model * when the model wraps the result in the (markdown) code block. * * @public exported from `@promptbook/markdown-utils` */ export declare function trimCodeBlock(value: string): string;