Class: Phronomy::Agent::LLMInputManifest::Segment
- Inherits:
-
Data
- Object
- Data
- Phronomy::Agent::LLMInputManifest::Segment
- Defined in:
- lib/phronomy/agent/llm_input_manifest.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#content_ref ⇒ Object
readonly
Returns the value of attribute content_ref.
-
#delivery ⇒ Object
readonly
Returns the value of attribute delivery.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
-
#tool_call_id ⇒ Object
readonly
Returns the value of attribute tool_call_id.
Instance Method Summary collapse
-
#initialize(**values) ⇒ Segment
constructor
A new instance of Segment.
- #to_h ⇒ Object
Constructor Details
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category
9 10 11 |
# File 'lib/phronomy/agent/llm_input_manifest.rb', line 9 def category @category end |
#content_ref ⇒ Object (readonly)
Returns the value of attribute content_ref
9 10 11 |
# File 'lib/phronomy/agent/llm_input_manifest.rb', line 9 def content_ref @content_ref end |
#delivery ⇒ Object (readonly)
Returns the value of attribute delivery
9 10 11 |
# File 'lib/phronomy/agent/llm_input_manifest.rb', line 9 def delivery @delivery end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
9 10 11 |
# File 'lib/phronomy/agent/llm_input_manifest.rb', line 9 def @metadata end |
#position ⇒ Object (readonly)
Returns the value of attribute position
9 10 11 |
# File 'lib/phronomy/agent/llm_input_manifest.rb', line 9 def position @position end |
#role ⇒ Object (readonly)
Returns the value of attribute role
9 10 11 |
# File 'lib/phronomy/agent/llm_input_manifest.rb', line 9 def role @role end |
#tool_call_id ⇒ Object (readonly)
Returns the value of attribute tool_call_id
9 10 11 |
# File 'lib/phronomy/agent/llm_input_manifest.rb', line 9 def tool_call_id @tool_call_id end |
Instance Method Details
#to_h ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/phronomy/agent/llm_input_manifest.rb', line 18 def to_h { "position" => position, "category" => category.to_s, "role" => role&.to_s, "content_ref" => content_ref, "delivery" => delivery.to_s, "tool_call_id" => tool_call_id, "metadata" => }.compact end |