Class: I18nContextGenerator::LLM::ContextResult
- Inherits:
-
Data
- Object
- Data
- I18nContextGenerator::LLM::ContextResult
- Defined in:
- lib/i18n_context_generator/llm/client.rb
Overview
Result from LLM context generation
Instance Attribute Summary collapse
-
#ambiguity_reason ⇒ Object
readonly
Returns the value of attribute ambiguity_reason.
-
#confidence ⇒ Object
readonly
Returns the value of attribute confidence.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#input_tokens ⇒ Object
readonly
Returns the value of attribute input_tokens.
-
#max_length ⇒ Object
readonly
Returns the value of attribute max_length.
-
#output_tokens ⇒ Object
readonly
Returns the value of attribute output_tokens.
-
#request_count ⇒ Object
readonly
Returns the value of attribute request_count.
-
#retries ⇒ Object
readonly
Returns the value of attribute retries.
-
#tone ⇒ Object
readonly
Returns the value of attribute tone.
-
#ui_element ⇒ Object
readonly
Returns the value of attribute ui_element.
Instance Method Summary collapse
-
#initialize(description:, ui_element: nil, tone: nil, max_length: nil, confidence: nil, ambiguity_reason: nil, error: nil, input_tokens: 0, output_tokens: 0, retries: 0, request_count: 0) ⇒ ContextResult
constructor
A new instance of ContextResult.
Constructor Details
#initialize(description:, ui_element: nil, tone: nil, max_length: nil, confidence: nil, ambiguity_reason: nil, error: nil, input_tokens: 0, output_tokens: 0, retries: 0, request_count: 0) ⇒ ContextResult
Returns a new instance of ContextResult.
23 24 25 26 27 |
# File 'lib/i18n_context_generator/llm/client.rb', line 23 def initialize(description:, ui_element: nil, tone: nil, max_length: nil, confidence: nil, ambiguity_reason: nil, error: nil, input_tokens: 0, output_tokens: 0, retries: 0, request_count: 0) super end |
Instance Attribute Details
#ambiguity_reason ⇒ Object (readonly)
Returns the value of attribute ambiguity_reason
19 20 21 |
# File 'lib/i18n_context_generator/llm/client.rb', line 19 def ambiguity_reason @ambiguity_reason end |
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence
19 20 21 |
# File 'lib/i18n_context_generator/llm/client.rb', line 19 def confidence @confidence end |
#description ⇒ Object (readonly)
Returns the value of attribute description
19 20 21 |
# File 'lib/i18n_context_generator/llm/client.rb', line 19 def description @description end |
#error ⇒ Object (readonly)
Returns the value of attribute error
19 20 21 |
# File 'lib/i18n_context_generator/llm/client.rb', line 19 def error @error end |
#input_tokens ⇒ Object (readonly)
Returns the value of attribute input_tokens
19 20 21 |
# File 'lib/i18n_context_generator/llm/client.rb', line 19 def input_tokens @input_tokens end |
#max_length ⇒ Object (readonly)
Returns the value of attribute max_length
19 20 21 |
# File 'lib/i18n_context_generator/llm/client.rb', line 19 def max_length @max_length end |
#output_tokens ⇒ Object (readonly)
Returns the value of attribute output_tokens
19 20 21 |
# File 'lib/i18n_context_generator/llm/client.rb', line 19 def output_tokens @output_tokens end |
#request_count ⇒ Object (readonly)
Returns the value of attribute request_count
19 20 21 |
# File 'lib/i18n_context_generator/llm/client.rb', line 19 def request_count @request_count end |
#retries ⇒ Object (readonly)
Returns the value of attribute retries
19 20 21 |
# File 'lib/i18n_context_generator/llm/client.rb', line 19 def retries @retries end |
#tone ⇒ Object (readonly)
Returns the value of attribute tone
19 20 21 |
# File 'lib/i18n_context_generator/llm/client.rb', line 19 def tone @tone end |
#ui_element ⇒ Object (readonly)
Returns the value of attribute ui_element
19 20 21 |
# File 'lib/i18n_context_generator/llm/client.rb', line 19 def ui_element @ui_element end |