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
35 36 37 |
# File 'lib/llm/function.rb', line 35 def id @id end |
#name ⇒ Object
Returns the value of attribute name
35 36 37 |
# File 'lib/llm/function.rb', line 35 def name @name end |
#value ⇒ Object
Returns the value of attribute value
35 36 37 |
# File 'lib/llm/function.rb', line 35 def value @value end |
Instance Method Details
#to_h ⇒ Hash
Returns a Hash representation of LLM::Function::Return
39 40 41 |
# File 'lib/llm/function.rb', line 39 def to_h {id:, name:, value:} end |