Module: AgentHarness::Api::RubyLlmResponsesStreamingRefusal
- Defined in:
- lib/agent_harness/api/ruby_llm_chat_adapter.rb
Overview
RubyLLM 2.0.0 flattens Responses API refusal deltas into ordinary text chunks and offers no public access to their event type. The gemspec pins that exact release so this compatibility shim cannot silently outlive the private parser shape it targets. Remove it when RubyLLM exposes refusals.
Defined Under Namespace
Modules: RefusalChunk
Instance Method Summary collapse
Instance Method Details
#build_chunk(data) ⇒ Object
15 16 17 18 19 |
# File 'lib/agent_harness/api/ruby_llm_chat_adapter.rb', line 15 def build_chunk(data) super.tap do |chunk| chunk.extend(RefusalChunk) if data["type"] == "response.refusal.delta" end end |