Class: LiterLlm::AssistantMessage
- Inherits:
-
Object
- Object
- LiterLlm::AssistantMessage
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#content ⇒ AssistantContent?
Returns the value of attribute content.
-
#function_call ⇒ FunctionCall?
Returns the value of attribute function_call.
-
#name ⇒ String?
Returns the value of attribute name.
-
#reasoning_content ⇒ String?
Returns the value of attribute reasoning_content.
-
#refusal ⇒ String?
Returns the value of attribute refusal.
-
#tool_calls ⇒ Array[ToolCall]?
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.
55 |
# File 'sig/types.rbs', line 55
def initialize: (?content: AssistantContent, ?name: String, ?tool_calls: Array[ToolCall], ?refusal: String, ?function_call: FunctionCall, ?reasoning_content: String) -> void
|
Instance Attribute Details
#content ⇒ AssistantContent?
Returns the value of attribute content.
48 49 50 |
# File 'sig/types.rbs', line 48 def content @content end |
#function_call ⇒ FunctionCall?
Returns the value of attribute function_call.
52 53 54 |
# File 'sig/types.rbs', line 52 def function_call @function_call end |
#name ⇒ String?
Returns the value of attribute name.
49 50 51 |
# File 'sig/types.rbs', line 49 def name @name end |
#reasoning_content ⇒ String?
Returns the value of attribute reasoning_content.
53 54 55 |
# File 'sig/types.rbs', line 53 def reasoning_content @reasoning_content end |
#refusal ⇒ String?
Returns the value of attribute refusal.
51 52 53 |
# File 'sig/types.rbs', line 51 def refusal @refusal end |
#tool_calls ⇒ Array[ToolCall]?
Returns the value of attribute tool_calls.
50 51 52 |
# File 'sig/types.rbs', line 50 def tool_calls @tool_calls end |
Instance Method Details
#output_audio ⇒ Array[AudioContent]
60 |
# File 'sig/types.rbs', line 60
def output_audio: () -> Array[AudioContent]
|
#output_images ⇒ Array[ImageUrl]
59 |
# File 'sig/types.rbs', line 59
def output_images: () -> Array[ImageUrl]
|
#reasoning_text ⇒ String?
58 |
# File 'sig/types.rbs', line 58
def reasoning_text: () -> String?
|
#refusal_text ⇒ String?
57 |
# File 'sig/types.rbs', line 57
def refusal_text: () -> String?
|
#text ⇒ String?
56 |
# File 'sig/types.rbs', line 56
def text: () -> String?
|