Class: LLM::Repl::Status Private

Inherits:
Object
  • Object
show all
Defined in:
lib/llm/repl/status.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

The LLM::Repl::Status class stores the small status line shown at the top of the REPL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider) ⇒ LLM::Repl::Status

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • provider (String, Symbol)


12
13
14
15
# File 'lib/llm/repl/status.rb', line 12

def initialize(provider)
  @provider = provider
  @text = "idle"
end

Instance Attribute Details

#providerString (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String)


19
20
21
# File 'lib/llm/repl/status.rb', line 19

def provider
  @provider
end

#textvoid Also known as: to_s

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

  • value (String)


24
25
26
# File 'lib/llm/repl/status.rb', line 24

def text
  @text
end