Class: LLM::MCP::Mailbox
- Inherits:
-
Object
- Object
- LLM::MCP::Mailbox
- Defined in:
- lib/llm/mcp/mailbox.rb
Overview
A per-request mailbox for routing a JSON-RPC response back to the caller waiting on that request id.
Instance Method Summary collapse
- #<<(message) ⇒ Object
-
#initialize ⇒ Mailbox
constructor
A new instance of Mailbox.
- #pop ⇒ Object
Constructor Details
#initialize ⇒ Mailbox
Returns a new instance of Mailbox.
8 9 10 |
# File 'lib/llm/mcp/mailbox.rb', line 8 def initialize @queue = Queue.new end |