Class: LiterLlm::AssistantMessage
- Inherits:
-
Object
- Object
- LiterLlm::AssistantMessage
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#content ⇒ AssistantContent?
readonly
Returns the value of attribute content.
-
#function_call ⇒ FunctionCall?
readonly
Returns the value of attribute function_call.
-
#name ⇒ String?
readonly
Returns the value of attribute name.
-
#reasoning_content ⇒ String?
readonly
Returns the value of attribute reasoning_content.
-
#refusal ⇒ String?
readonly
Returns the value of attribute refusal.
-
#tool_calls ⇒ Array[ToolCall]?
readonly
Returns the value of attribute tool_calls.
Instance Method Summary collapse
-
#initialize ⇒ AssistantMessage
constructor
A new instance of AssistantMessage.
- #output_audio ⇒ Array[AudioContent]
- #output_images ⇒ Array[ImageUrl]
- #reasoning_text ⇒ String?
- #refusal_text ⇒ String?
- #text ⇒ String?
Constructor Details
#initialize ⇒ AssistantMessage
Returns a new instance of AssistantMessage.
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
#content ⇒ AssistantContent? (readonly)
Returns the value of attribute content.
13 14 15 |
# File 'sig/types.rbs', line 13 def content @content end |
#function_call ⇒ FunctionCall? (readonly)
Returns the value of attribute function_call.
17 18 19 |
# File 'sig/types.rbs', line 17 def function_call @function_call end |
#name ⇒ String? (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'sig/types.rbs', line 14 def name @name end |
#reasoning_content ⇒ String? (readonly)
Returns the value of attribute reasoning_content.
18 19 20 |
# File 'sig/types.rbs', line 18 def reasoning_content @reasoning_content end |
#refusal ⇒ String? (readonly)
Returns the value of attribute refusal.
16 17 18 |
# File 'sig/types.rbs', line 16 def refusal @refusal end |
#tool_calls ⇒ Array[ToolCall]? (readonly)
Returns the value of attribute tool_calls.
15 16 17 |
# File 'sig/types.rbs', line 15 def tool_calls @tool_calls end |
Instance Method Details
#output_audio ⇒ Array[AudioContent]
25 |
# File 'sig/types.rbs', line 25
def output_audio: () -> Array[AudioContent]
|
#output_images ⇒ Array[ImageUrl]
24 |
# File 'sig/types.rbs', line 24
def output_images: () -> Array[ImageUrl]
|
#reasoning_text ⇒ String?
23 |
# File 'sig/types.rbs', line 23
def reasoning_text: () -> String?
|
#refusal_text ⇒ String?
22 |
# File 'sig/types.rbs', line 22
def refusal_text: () -> String?
|
#text ⇒ String?
21 |
# File 'sig/types.rbs', line 21
def text: () -> String?
|