Class: TUI::Decorators::ReadDecorator

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

Overview

Renders read_file tool calls and responses. Calls show the file path in the header line for immediate visibility. 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 included from FileCallBehavior

#render_call

Methods inherited from BaseDecorator

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

Methods included from Formatting

#format_ns_timestamp, #format_token_label, #preserve_indentation, #token_count_color

Constructor Details

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

Instance Method Details

#iconObject



13
14
15
# File 'lib/tui/decorators/read_decorator.rb', line 13

def icon
  ICON
end

#response_colorObject



17
18
19
# File 'lib/tui/decorators/read_decorator.rb', line 17

def response_color
  Settings.theme_tool_read_color
end