Class: LLM::Function::Return
- Inherits:
-
Struct
- Object
- Struct
- LLM::Function::Return
- Defined in:
- lib/llm/function.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#to_h ⇒ Hash
Returns a Hash representation of Return.
- #to_json ⇒ String
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
40 41 42 |
# File 'lib/llm/function.rb', line 40 def id @id end |
#name ⇒ Object
Returns the value of attribute name
40 41 42 |
# File 'lib/llm/function.rb', line 40 def name @name end |
#value ⇒ Object
Returns the value of attribute value
40 41 42 |
# File 'lib/llm/function.rb', line 40 def value @value end |
Instance Method Details
#to_h ⇒ Hash
Returns a Hash representation of LLM::Function::Return
44 45 46 |
# File 'lib/llm/function.rb', line 44 def to_h {id:, name:, value:} end |