Class: ConsoleAgent::Channel::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/console_agent/channel/base.rb

Direct Known Subclasses

Console, Slack

Instance Method Summary collapse

Instance Method Details

#cancelled?Boolean

Returns:

  • (Boolean)


15
# File 'lib/console_agent/channel/base.rb', line 15

def cancelled?;               false; end

#confirm(text) ⇒ Object

Raises:

  • (NotImplementedError)


12
# File 'lib/console_agent/channel/base.rb', line 12

def confirm(text);            raise NotImplementedError; end

#display(text) ⇒ Object

Raises:

  • (NotImplementedError)


4
# File 'lib/console_agent/channel/base.rb', line 4

def display(text);            raise NotImplementedError; end

#display_code(code) ⇒ Object

Raises:

  • (NotImplementedError)


8
# File 'lib/console_agent/channel/base.rb', line 8

def display_code(code);       raise NotImplementedError; end

#display_dim(text) ⇒ Object

Raises:

  • (NotImplementedError)


5
# File 'lib/console_agent/channel/base.rb', line 5

def display_dim(text);        raise NotImplementedError; end

#display_error(text) ⇒ Object

Raises:

  • (NotImplementedError)


7
# File 'lib/console_agent/channel/base.rb', line 7

def display_error(text);      raise NotImplementedError; end

#display_result(text) ⇒ Object

Raises:

  • (NotImplementedError)


9
# File 'lib/console_agent/channel/base.rb', line 9

def display_result(text);     raise NotImplementedError; end

#display_result_output(text) ⇒ Object

stdout output from code execution



10
# File 'lib/console_agent/channel/base.rb', line 10

def display_result_output(text); end

#display_warning(text) ⇒ Object

Raises:

  • (NotImplementedError)


6
# File 'lib/console_agent/channel/base.rb', line 6

def display_warning(text);    raise NotImplementedError; end

#edit_code(code) ⇒ Object



18
# File 'lib/console_agent/channel/base.rb', line 18

def edit_code(code);          code; end

#modeObject

Raises:

  • (NotImplementedError)


14
# File 'lib/console_agent/channel/base.rb', line 14

def mode;                     raise NotImplementedError; end

#prompt(text) ⇒ Object

Raises:

  • (NotImplementedError)


11
# File 'lib/console_agent/channel/base.rb', line 11

def prompt(text);             raise NotImplementedError; end

#supports_danger?Boolean

Returns:

  • (Boolean)


16
# File 'lib/console_agent/channel/base.rb', line 16

def supports_danger?;         true; end

#supports_editing?Boolean

Returns:

  • (Boolean)


17
# File 'lib/console_agent/channel/base.rb', line 17

def supports_editing?;        false; end

#system_instructionsObject



20
# File 'lib/console_agent/channel/base.rb', line 20

def system_instructions;      nil; end

#user_identityObject

Raises:

  • (NotImplementedError)


13
# File 'lib/console_agent/channel/base.rb', line 13

def user_identity;            raise NotImplementedError; end

#wrap_llm_call(&block) ⇒ Object



19
# File 'lib/console_agent/channel/base.rb', line 19

def wrap_llm_call(&block);    yield; end