class RubyLLM::MCP::Progress
Progress a server reports while it works on a request, received by MCP.after_progress callbacks.
after_progress { |progress| puts "#{(progress.fraction * 100).round}% #{progress.message}" }
Attributes
What the server is doing, or nil.
How much work there is in total, or nil when the server does not know.
How much work is done. It only grows, but its unit is the serverโs.
Public Instance Methods
Source
# File lib/ruby_llm/mcp/progress.rb, line 31 def fraction value.to_f / total if total&.positive? end
Returns the share of work done, from 0.0 to 1.0, or nil without a total.