Class: Tavily::ResearchEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/tavily/responses.rb

Overview

A single Server-Sent Event emitted by streaming research (Client#research with a block). data is the parsed JSON payload when possible, otherwise the raw string.

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



196
197
198
# File 'lib/tavily/responses.rb', line 196

def data
  @data
end

#eventObject

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



196
197
198
# File 'lib/tavily/responses.rb', line 196

def event
  @event
end