Class: LiterLlm::StreamDelta

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStreamDelta

Returns a new instance of StreamDelta.

Parameters:



236
# File 'sig/types.rbs', line 236

def initialize: (?role: String, ?content: String, ?tool_calls: Array[StreamToolCall], ?function_call: StreamFunctionCall, ?refusal: String, ?reasoning_content: String) -> void

Instance Attribute Details

#contentString?

Returns the value of attribute content.

Returns:

  • (String, nil)


230
231
232
# File 'sig/types.rbs', line 230

def content
  @content
end

#function_callStreamFunctionCall?

Returns the value of attribute function_call.

Returns:



232
233
234
# File 'sig/types.rbs', line 232

def function_call
  @function_call
end

#reasoning_contentString?

Returns the value of attribute reasoning_content.

Returns:

  • (String, nil)


234
235
236
# File 'sig/types.rbs', line 234

def reasoning_content
  @reasoning_content
end

#refusalString?

Returns the value of attribute refusal.

Returns:

  • (String, nil)


233
234
235
# File 'sig/types.rbs', line 233

def refusal
  @refusal
end

#roleString?

Returns the value of attribute role.

Returns:

  • (String, nil)


229
230
231
# File 'sig/types.rbs', line 229

def role
  @role
end

#tool_callsArray[StreamToolCall]?

Returns the value of attribute tool_calls.

Returns:



231
232
233
# File 'sig/types.rbs', line 231

def tool_calls
  @tool_calls
end