Class: Durable::Llm::Providers::Huggingface::HuggingfaceStreamResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::Huggingface::HuggingfaceStreamResponse
- Defined in:
- lib/durable/llm/providers/huggingface.rb
Overview
Response wrapper for Hugging Face streaming API responses.
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(parsed) ⇒ HuggingfaceStreamResponse
constructor
A new instance of HuggingfaceStreamResponse.
- #to_s ⇒ Object
Constructor Details
#initialize(parsed) ⇒ HuggingfaceStreamResponse
Returns a new instance of HuggingfaceStreamResponse.
171 172 173 |
# File 'lib/durable/llm/providers/huggingface.rb', line 171 def initialize(parsed) @token = HuggingfaceStreamToken.new(parsed) end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
169 170 171 |
# File 'lib/durable/llm/providers/huggingface.rb', line 169 def token @token end |
Instance Method Details
#to_s ⇒ Object
175 176 177 |
# File 'lib/durable/llm/providers/huggingface.rb', line 175 def to_s @token.to_s end |