Class: Tama::Agentic::Thread
- Inherits:
-
Data
- Object
- Data
- Tama::Agentic::Thread
- Defined in:
- lib/tama/agentic/thread.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(identifier:, klass: "thread") ⇒ Thread
constructor
A new instance of Thread.
- #to_h ⇒ Object
Constructor Details
#initialize(identifier:, klass: "thread") ⇒ Thread
Returns a new instance of Thread.
6 7 8 9 10 |
# File 'lib/tama/agentic/thread.rb', line 6 def initialize(identifier:, klass: "thread") Params.require_string!({"identifier" => identifier}, "identifier") Params.require_string!({"class" => klass}, "class") super end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier
5 6 7 |
# File 'lib/tama/agentic/thread.rb', line 5 def identifier @identifier end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass
5 6 7 |
# File 'lib/tama/agentic/thread.rb', line 5 def klass @klass end |
Class Method Details
Instance Method Details
#to_h ⇒ Object
17 18 19 |
# File 'lib/tama/agentic/thread.rb', line 17 def to_h {"identifier" => identifier, "class" => klass} end |