Class: LLMs::Stream::Events::Base
- Inherits:
-
Object
- Object
- LLMs::Stream::Events::Base
- Defined in:
- lib/llms/stream/events.rb
Direct Known Subclasses
MessageCompleted, MessageStarted, TextDelta, ThinkingDelta, ToolCallArgumentsJsonDelta, ToolCallArgumentsUpdated, ToolCallCompleted, ToolCallStarted, UsageUpdated
Instance Attribute Summary collapse
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/llms/stream/events.rb', line 6 def initialize @timestamp = Time.now end |
Instance Attribute Details
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
5 6 7 |
# File 'lib/llms/stream/events.rb', line 5 def @timestamp end |