export_for_ai
Creates an HTML representation of the input file, optimized for providing semantic context with minimal tokens, rather than for styling the output for a Web browser. This option might be particularly useful if you want to provide the output to AI, providing more context than the plain text filter output, but less style content that is not relevant to the AI.
NOTE: There are several requirements that must be met in order to use this method:
- Your license must enable HTML Export for AI.
- You must copy the binaries provided in the
PLATFORM/htmldirectory of the SDK into thedirectory. The SDK does not include these binaries in thePLATFORM/binbindirectory, to avoid the increase in size for applications that do not require HTML Export. -
This feature is available only on Windows x86, Windows x86 64, and Linux x86 64 platforms.
Syntax
void export_for_ai(const std::filesystem::path& output_path) const;
void export_for_ai(std::string_view output_path) const;