Class: Geminai::Step
- Inherits:
-
Object
- Object
- Geminai::Step
- Defined in:
- lib/geminai/step.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#raw_step ⇒ Object
readonly
Returns the value of attribute raw_step.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#signature ⇒ Object
readonly
Returns the value of attribute signature.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #google_search_call? ⇒ Boolean
- #google_search_result? ⇒ Boolean
-
#initialize(data) ⇒ Step
constructor
A new instance of Step.
- #model_output? ⇒ Boolean
- #thought? ⇒ Boolean
Constructor Details
#initialize(data) ⇒ Step
Returns a new instance of Step.
5 6 7 8 9 10 11 12 13 |
# File 'lib/geminai/step.rb', line 5 def initialize(data) @raw_step = data @id = data[:id] @type = data[:type] @signature = data[:signature] @content = data[:content] @arguments = data[:arguments] @result = data[:result] end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
3 4 5 |
# File 'lib/geminai/step.rb', line 3 def arguments @arguments end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
3 4 5 |
# File 'lib/geminai/step.rb', line 3 def content @content end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/geminai/step.rb', line 3 def id @id end |
#raw_step ⇒ Object (readonly)
Returns the value of attribute raw_step.
3 4 5 |
# File 'lib/geminai/step.rb', line 3 def raw_step @raw_step end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
3 4 5 |
# File 'lib/geminai/step.rb', line 3 def result @result end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature.
3 4 5 |
# File 'lib/geminai/step.rb', line 3 def signature @signature end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/geminai/step.rb', line 3 def type @type end |
Instance Method Details
#google_search_call? ⇒ Boolean
23 24 25 |
# File 'lib/geminai/step.rb', line 23 def google_search_call? @type == "google_search_call" end |
#google_search_result? ⇒ Boolean
27 28 29 |
# File 'lib/geminai/step.rb', line 27 def google_search_result? @type == "google_search_result" end |
#model_output? ⇒ Boolean
19 20 21 |
# File 'lib/geminai/step.rb', line 19 def model_output? @type == "model_output" end |
#thought? ⇒ Boolean
15 16 17 |
# File 'lib/geminai/step.rb', line 15 def thought? @type == "thought" end |