OpenAI::ResponseOutputTextAnnotationAddedEvent
Inherits JSON::Serializable < Reference < Object
Emitted when an annotation is added to output text content.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ResponseOutputTextAnnotationAddedEventType = ResponseOutputTextAnnotationAddedEventType::ResponseOutputTextAnnotationAdded, item_id : String = "", output_index : Int64 = 0, content_index : Int64 = 0, annotation_index : Int64 = 0, sequence_number : Int64 = 0, annotation : Hash(String, JSON::Any) = Hash(String, JSON::Any).new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
The annotation object being added. (See annotation schema for details.)
annotation_index=(annotation_index : Int64)
The index of the annotation within the content part.
item_id=(item_id : String)
The unique identifier of the item to which the annotation is being added.
output_index=(output_index : Int64)
The index of the output item in the response's output array.
type_value=(type_value : ResponseOutputTextAnnotationAddedEventType)
The type of the event. Always 'response.output_text.annotation.added'.