Class: Agentilda::Transcript::Progress
- Inherits:
-
Data
- Object
- Data
- Agentilda::Transcript::Progress
- Defined in:
- lib/agentilda/transcript.rb
Overview
What one line of the display knows: the phrase, and the meter beside it.
Yielded whole rather than as loose arguments so a caller cannot render half an update, and frozen so the reader thread and the drawing thread are never looking at the same mutable object.
Instance Attribute Summary collapse
-
#activity ⇒ String?
readonly
The last thing the agent was seen doing.
-
#down ⇒ Integer
readonly
Tokens generated.
-
#pid ⇒ Integer?
readonly
The
claudeprocess, once the harness has found it — nil until then, and for callers that never look. -
#subagents ⇒ Integer
readonly
Sub-agents spawned so far.
-
#up ⇒ Integer
readonly
Tokens sent, cache reads included.
Instance Method Summary collapse
-
#initialize(pid: nil, **rest) ⇒ Progress
constructor
A new instance of Progress.
Constructor Details
#initialize(pid: nil, **rest) ⇒ Progress
Returns a new instance of Progress.
51 |
# File 'lib/agentilda/transcript.rb', line 51 def initialize(pid: nil, **rest) = super |
Instance Attribute Details
#activity ⇒ String? (readonly)
Returns the last thing the agent was seen doing.
50 51 52 |
# File 'lib/agentilda/transcript.rb', line 50 Progress = Data.define(:activity, :up, :down, :subagents, :pid) do def initialize(pid: nil, **rest) = super end |
#down ⇒ Integer (readonly)
Returns tokens generated.
50 51 52 |
# File 'lib/agentilda/transcript.rb', line 50 Progress = Data.define(:activity, :up, :down, :subagents, :pid) do def initialize(pid: nil, **rest) = super end |
#pid ⇒ Integer? (readonly)
Returns the claude process, once the harness has
found it — nil until then, and for callers that never look.
50 51 52 |
# File 'lib/agentilda/transcript.rb', line 50 Progress = Data.define(:activity, :up, :down, :subagents, :pid) do def initialize(pid: nil, **rest) = super end |
#subagents ⇒ Integer (readonly)
Returns sub-agents spawned so far.
50 51 52 |
# File 'lib/agentilda/transcript.rb', line 50 Progress = Data.define(:activity, :up, :down, :subagents, :pid) do def initialize(pid: nil, **rest) = super end |
#up ⇒ Integer (readonly)
Returns tokens sent, cache reads included.
50 51 52 |
# File 'lib/agentilda/transcript.rb', line 50 Progress = Data.define(:activity, :up, :down, :subagents, :pid) do def initialize(pid: nil, **rest) = super end |