LlmInputHelper Class

Definition

Converts AnalysisResult objects into LLM-friendly text.

public static class LlmInputHelper
type LlmInputHelper = class
Public Module LlmInputHelper
Inheritance
LlmInputHelper

Methods

Name Description
ToLlmInput(AnalysisResult, IDictionary<String,Object>, LlmInputOptions)

Converts a Content Understanding analysis result into LLM-friendly text.

Produces a YAML front matter block followed by markdown body, suitable for injecting into an LLM prompt, storing in a vector database, or passing as tool output.

The YAML front matter (delimited by ---) may include: contentType (document, image, audio, video), pages (page range), timeRange (media time span), category (classification label), fields (extracted structured fields as YAML), rai_warnings (content safety flags), and any caller-supplied metadata entries.

The markdown body contains the extracted text with page-break markers (<!-- page N -->) inserted at page boundaries so downstream consumers can locate content by page number.

Applies to