RubyGems Navigation menu

ai_stream 0.1.0

A pure-Ruby, zero-dependency implementation of the Vercel AI SDK "Data Stream Protocol" (UI Message Stream Protocol) — the Server-Sent-Events wire format that drives the AI SDK's useChat / useCompletion / useObject frontend hooks. The protocol is language-agnostic by design, but Ruby had no implementation; ai_stream lets a Rails/Rack backend stream text, reasoning, tool calls, sources, files, and custom data parts to a Vercel-AI-SDK frontend with the exact frames it expects. Provider-agnostic: it composes with ruby_llm, ruby-openai, or any token source instead of competing with them.

Gemfile:
=

install:
=

Versions:

  1. 0.1.0 June 04, 2026 (11 KB)

Development Dependencies (2):

minitest ~> 5.0
rake ~> 13.0

Owners:

Pushed by:

Authors:

  • Levelbrook Team

SHA 256 checksum:

=

Total downloads 205

For this version 205

Version Released:

License:

MIT

Required Ruby Version: >= 3.0.0

New versions require MFA: true

Version published with MFA: true

Links: