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:



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

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)


822
823
824
# File 'sig/types.rbs', line 822

def content
  @content
end

#function_callStreamFunctionCall? (readonly)

Returns the value of attribute function_call.

Returns:



824
825
826
# File 'sig/types.rbs', line 824

def function_call
  @function_call
end

#reasoning_contentString? (readonly)

Returns the value of attribute reasoning_content.

Returns:

  • (String, nil)


826
827
828
# File 'sig/types.rbs', line 826

def reasoning_content
  @reasoning_content
end

#refusalString? (readonly)

Returns the value of attribute refusal.

Returns:

  • (String, nil)


825
826
827
# File 'sig/types.rbs', line 825

def refusal
  @refusal
end

#roleString? (readonly)

Returns the value of attribute role.

Returns:

  • (String, nil)


821
822
823
# File 'sig/types.rbs', line 821

def role
  @role
end

#tool_callsArray[StreamToolCall]? (readonly)

Returns the value of attribute tool_calls.

Returns:



823
824
825
# File 'sig/types.rbs', line 823

def tool_calls
  @tool_calls
end