Class: TUI::Decorators::ReadDecorator

Inherits:
BaseDecorator show all
Defined in:
lib/tui/decorators/read_decorator.rb

Overview

Renders read_file tool calls and responses. Calls show the file path with a page icon in the unified tool color. Responses use the CRUD Read color (light_blue) for informational content.

Constant Summary collapse

ICON =

page facing up

"\u{1F4C4}"

Constants inherited from BaseDecorator

BaseDecorator::CHECKMARK, BaseDecorator::ERROR_ICON, BaseDecorator::RETURN_ARROW

Instance Attribute Summary

Attributes inherited from BaseDecorator

#data

Instance Method Summary collapse

Methods inherited from BaseDecorator

#color, for, #initialize, #render, #render_call, #render_response, #render_think

Methods included from Formatting

#format_ns_timestamp, #format_token_label, #token_count_color

Constructor Details

This class inherits a constructor from TUI::Decorators::BaseDecorator

Instance Method Details

#iconObject



11
12
13
# File 'lib/tui/decorators/read_decorator.rb', line 11

def icon
  ICON
end

#response_colorObject



15
16
17
# File 'lib/tui/decorators/read_decorator.rb', line 15

def response_color
  "light_blue"
end