Class: LiterLlm::AssistantMessage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAssistantMessage

Returns a new instance of AssistantMessage.

Parameters:



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

def initialize: (?content: AssistantContent, ?name: String, ?tool_calls: Array[ToolCall], ?refusal: String, ?function_call: FunctionCall, ?reasoning_content: String) -> void

Instance Attribute Details

#contentAssistantContent? (readonly)

Returns the value of attribute content.

Returns:



13
14
15
# File 'sig/types.rbs', line 13

def content
  @content
end

#function_callFunctionCall? (readonly)

Returns the value of attribute function_call.

Returns:



17
18
19
# File 'sig/types.rbs', line 17

def function_call
  @function_call
end

#nameString? (readonly)

Returns the value of attribute name.

Returns:

  • (String, nil)


14
15
16
# File 'sig/types.rbs', line 14

def name
  @name
end

#reasoning_contentString? (readonly)

Returns the value of attribute reasoning_content.

Returns:

  • (String, nil)


18
19
20
# File 'sig/types.rbs', line 18

def reasoning_content
  @reasoning_content
end

#refusalString? (readonly)

Returns the value of attribute refusal.

Returns:

  • (String, nil)


16
17
18
# File 'sig/types.rbs', line 16

def refusal
  @refusal
end

#tool_callsArray[ToolCall]? (readonly)

Returns the value of attribute tool_calls.

Returns:



15
16
17
# File 'sig/types.rbs', line 15

def tool_calls
  @tool_calls
end

Instance Method Details

#output_audioArray[AudioContent]

Returns:



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

def output_audio: () -> Array[AudioContent]

#output_imagesArray[ImageUrl]

Returns:



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

def output_images: () -> Array[ImageUrl]

#reasoning_textString?

Returns:

  • (String, nil)


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

def reasoning_text: () -> String?

#refusal_textString?

Returns:

  • (String, nil)


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

def refusal_text: () -> String?

#textString?

Returns:

  • (String, nil)


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

def text: () -> String?