class RubyLLM::AgUI::Input

A validated AG-UI 1.0 RunAgentInput.

The community Ruby SDK models RunAgentInput but has no JSON to model parser, so hosts parse and authorize the body by hand. This class does that once: it bounds the body size, decodes it, strips members the pinned schema does not define, validates the shapes the schema requires, and hands the run typed values and a stable digest for run identity.

input = RubyLLM::AgUI::Input.parse(request_body, max_bytes: 256_000)
input.thread_id   # => "thread-1"
input.resume      # => [#<RubyLLM::AgUI::ResumeEntry ...>]
input.digest      # => "9f2c..."

Nothing here grants trust. Client messages, state, tools, context and forwardedProps are accepted as data only; the host decides which tools and model a run may use. This gem never reconciles or appends client history to the host chat. The host owns that policy.