Class: Durable::Llm::Providers::Huggingface::HuggingfaceStreamResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/durable/llm/providers/huggingface.rb

Overview

Response wrapper for Hugging Face streaming API responses.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tokenObject (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_sObject



175
176
177
# File 'lib/durable/llm/providers/huggingface.rb', line 175

def to_s
  @token.to_s
end