What’s New in 1.0
Install the stable 1.0 release, with streamed tool calls fixed across provider protocols, Ruby 3.3 or newer, and a rehearsed upgrade from 0.4.
After reading this guide, you will know:
- What the 1.0 stability promise covers.
- Which streamed tool-call fixes reach your client.
- What changed for Rails boots, malformed input, and long-lived chats.
Install 1.0
gem 'ruby_llm-ag_ui', '~> 1.0'
Version 1.0.0 keeps the public API, configuration, and store contract that 0.4
proposed, with no new migration. From 1.0 on, that contract follows Semantic
Versioning: a change that breaks it waits for 2.0. See the
Public API Contract for what it covers.
Report a problem with the versions from RubyLLM::AgUI.config.to_h, as
Compatibility describes.
Use Ruby 3.3 or Newer
Ruby 3.2 reached end of life in March 2026, and 1.0 requires Ruby 3.3 or newer. The 1.0.0 CI matrix covered Ruby 3.3, 3.4, and 4.0 with RubyLLM 2.1.0 and 2.1.1. Patch 1.0.1 adds RubyLLM 2.2.3 and restores tool streaming, approval, and transport error handling on that version. See Upgrading.
Stream Tool Calls Correctly Across Protocols
A client assembles a tool call’s arguments by joining its TOOL_CALL_ARGS
deltas. Before this release, four provider shapes produced arguments the client
could not parse or attribute:
- A second tool round in one turn sent its arguments to the first round’s ended call. Chat Completions, OpenAI Responses, and Anthropic restart stream indexes in every response.
- Anthropic and Bedrock open a call with an empty input object before streaming
partial JSON, so the client received
{}{"query":"one"}. - Gemini sends a whole call as a parsed object, which went out as Ruby
Hash#to_soutput instead of JSON. - Some OpenAI-compatible servers send each parallel call whole at index 0. The second call’s arguments were appended to the first call. RubyLLM starts a new call for each fragment with a new id, and so does the mapper now.
Each call now opens once, and its deltas join to the JSON arguments the tool received. Intercepted-HTTP specs run a real RubyLLM chat for Chat Completions, Responses, Anthropic, and Gemini. Bedrock uses the same empty-object rule without its own HTTP spec. See Streaming Runs.
Boot Rails Without Loading Active Record Early
Requiring the gem during Bundler.require no longer loads ActiveRecord::Base.
The durable store’s row class loads on first use, after your application’s
configuration. The generated initializer still assigns
RubyLLM::AgUI::Rails::ActiveRecordStore.new as before.
Refuse an Unacceptable Stream Before Provider Work
SSEWriter.accepts? honors quality values and media-range precedence. An
explicit text/event-stream;q=0 refuses SSE even with */*;q=1. Empty media
parameters do not raise a server error. Rails returns 406 before resolving a
chat or reserving a run. Stream conflicts also return 409 in Rails hosts that
do not load Active Record; unrelated host errors still propagate.
Refuse Malformed Text as a Client Error
RubyLLM::AgUI::Input.parse(body)
# => raises RubyLLM::AgUI::MalformedInputError (400)
A body whose text is not UTF-8, or that holds a number JSON cannot represent,
is now refused as malformed input. The Rails adapter answers 400 instead of
raising JSON::GeneratorError as a server error.
Reuse a Chat Across Turns
RubyLLM cannot remove a callback, so each run’s callbacks stay on a chat you
reuse. A finished run now releases its response stream, and its callbacks map
and write nothing. A redaction policy object that defines only #call also
works now, alongside lambdas and methods.
Upgrade From 0.4
Change the version in your Gemfile and run bundle update ruby_llm-ag_ui.
Records written by 0.4 stay readable. The release rehearsal reconnects to a 0.4
run and resumes a 0.4 interrupt with 1.0. Follow
Upgrading for the steps.
Next Steps
- Compatibility - read the 1.0 release evidence.
- Public API Contract - review the API 1.0 stabilizes.
- Release History - compare earlier releases.