The id of the context
OptionalextractWhether to extract images embedded in markdown/HTML text. Defaults to false.
When true and the text is detected as (or declared to be) markdown/HTML, image references inside the
text ( or <img src="...">) are fetched, stored, and have descriptions generated
just like images extracted from a PDF.
Has no effect for plain text.
OptionalformatHint about the format of the text. If omitted (or 'auto'), the format is sniffed from the content.
Only 'markdown' and 'html' (or 'auto' with content that looks like markdown/HTML) participate in
image extraction when extractImages is true.
OptionalimageThe AI model to use for generating image descriptions, if specified.
OptionalimageMinimum width/height (in pixels) for an image to be kept. Smaller images are skipped.
OptionalmetadataOptionaloptionsGeneral options for how to process the text.
The text content to add to the context.
A title for the text context.
Specifies the context type as 'text'.
Request structure for adding text-based context to an AI agent.