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:



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

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

Instance Attribute Details

#contentString? (readonly)

Returns the value of attribute content.

Returns:

  • (String, nil)


240
241
242
# File 'sig/types.rbs', line 240

def content
  @content
end

#function_callStreamFunctionCall? (readonly)

Returns the value of attribute function_call.

Returns:



242
243
244
# File 'sig/types.rbs', line 242

def function_call
  @function_call
end

#reasoning_contentString? (readonly)

Returns the value of attribute reasoning_content.

Returns:

  • (String, nil)


244
245
246
# File 'sig/types.rbs', line 244

def reasoning_content
  @reasoning_content
end

#refusalString? (readonly)

Returns the value of attribute refusal.

Returns:

  • (String, nil)


243
244
245
# File 'sig/types.rbs', line 243

def refusal
  @refusal
end

#roleString? (readonly)

Returns the value of attribute role.

Returns:

  • (String, nil)


239
240
241
# File 'sig/types.rbs', line 239

def role
  @role
end

#tool_callsArray[StreamToolCall]? (readonly)

Returns the value of attribute tool_calls.

Returns:



241
242
243
# File 'sig/types.rbs', line 241

def tool_calls
  @tool_calls
end