class

OpenAI::OutputTextContent

Inherits JSON::Serializable < Reference < Object

A text output from the model.

Constructors

new(type_value : OutputTextContentType = OutputTextContentType::OutputText, text : String = "", annotations : Array(Annotation) = [] of Annotation, logprobs : Array(LogProb) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

annotations

The annotations of the text output.

Source
annotations=(annotations : Array(Annotation))

The annotations of the text output.

Source
logprobs
Source
logprobs=(logprobs : Array(LogProb) | Nil)
Source
text

The text output from the model.

Source
text=(text : String)

The text output from the model.

Source
type_value

The type of the output text. Always output_text.

Source
type_value=(type_value : OutputTextContentType)

The type of the output text. Always output_text.

Source