struct OpenAI::EventSource::EventMessage

Defined in:

openai/event_source.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : Array(String), event : String | Nil = nil, id : String | Nil = nil, retry : Int64 | Nil = nil) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(data _data = @data, event _event = @event, id _id = @id, retry _retry = @retry) #

[View source]
def data : Array(String) #

def event : String | Nil #

def id : String | Nil #

def retry : Int64 | Nil #