import type * as ElevenLabs from "../index"; /** * A `string` output, delivered as `content` once completed. */ export interface TemplateStringOutput { /** The id of the generation behind this output. Pass it as a `generation` reference to use the output as an input elsewhere. */ id: string; /** The lifecycle status of the output. It ends at `completed`, when the output's content fields are set, or `failed`, when `failure_reason` and `error_message` are set. */ status: ElevenLabs.TemplateRunStatus; /** The category of failure. Present only when `status` is `failed`. */ failureReason?: ElevenLabs.TemplateStringOutputFailureReason; /** A human-readable description of the failure. Present only when `status` is `failed`. Failed generations are not charged. */ errorMessage?: string; /** The generated text. Present only when `status` is `completed`. */ content?: string; }