class RailsToolViews::Adapters::RubyLLM::Continuation
Host owns durable chat lookup and delivery deduplication. This adapter only starts a supported user turn; RubyLLM prevents pending-tool mixing.
Public Class Methods
# File lib/rails_tool_views/adapters/ruby_llm.rb, line 62 def initialize(chat_resolver:, delivery:) @chat_resolver, @delivery = chat_resolver, delivery end
Accepts authorized chat resolution and durable host delivery deduplication.
Public Instance Methods
# File lib/rails_tool_views/adapters/ruby_llm.rb, line 66 def call(payload, delivery_key:) @delivery.call(delivery_key) do chat = @chat_resolver.call(payload.fetch("context_ref")) chat.ask(JSON.generate(payload)) end end
Starts a user turn within the host delivery deduplication block.