Class: Aireview::LlmClient::Prompt

Inherits:
Struct
  • Object
show all
Defined in:
lib/aireview/llm_client.rb

Overview

What a stage sends to the model; the same for every route of the stage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#schema ⇒ Object

Returns the value of attribute schema

Returns:

  • (Object) —

    the current value of schema



14
15
16
# File 'lib/aireview/llm_client.rb', line 14

def schema
  @schema
end

#stage ⇒ Object

Returns the value of attribute stage

Returns:

  • (Object) —

    the current value of stage



14
15
16
# File 'lib/aireview/llm_client.rb', line 14

def stage
  @stage
end

#system ⇒ Object

Returns the value of attribute system

Returns:

  • (Object) —

    the current value of system



14
15
16
# File 'lib/aireview/llm_client.rb', line 14

def system
  @system
end

#temperature ⇒ Object

Returns the value of attribute temperature

Returns:

  • (Object) —

    the current value of temperature



14
15
16
# File 'lib/aireview/llm_client.rb', line 14

def temperature
  @temperature
end

#user ⇒ Object

Returns the value of attribute user

Returns:

  • (Object) —

    the current value of user



14
15
16
# File 'lib/aireview/llm_client.rb', line 14

def user
  @user
end

Instance Method Details

#chars ⇒ Object



15
16
17
# File 'lib/aireview/llm_client.rb', line 15

def chars
  system.length + user.length
end