Skip to content

Caption Result

Schema for caption operation results in Gen AI applications.

This module defines the output data structure returned by captioning converters. It extends Caption with a captions field that holds the generated caption text in various formats.

CaptionResult

Bases: Caption

Result of a captioning operation.

Attributes:

Name Type Description
captions str | list[str] | dict[str, Any]

The caption result. May be a single string, a list of captions, or a structured dictionary depending on the output format.