Class: TUI::Decorators::ReadDecorator

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

Overview

Renders read tool calls and responses. Calls show the file path with a page icon. Responses show file content in dim text.

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

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

Methods included from Formatting

#format_ns_timestamp, #format_token_label

Constructor Details

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

Instance Method Details

#colorObject



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

def color
  "cyan"
end

#iconObject



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

def icon
  ICON
end

#response_colorObject



19
20
21
# File 'lib/tui/decorators/read_decorator.rb', line 19

def response_color
  "dark_gray"
end