Class: Xberg::TranslationConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTranslationConfig

Returns a new instance of TranslationConfig.

Parameters:

  • target_lang: (String)
  • source_lang: (String)
  • preserve_markup: (Boolean)
  • llm: (LlmConfig)


2630
# File 'sig/types.rbs', line 2630

def initialize: (target_lang: String, ?source_lang: String, preserve_markup: bool, llm: LlmConfig) -> void

Instance Attribute Details

#llmLlmConfig (readonly)

Returns the value of attribute llm.

Returns:



2628
2629
2630
# File 'sig/types.rbs', line 2628

def llm
  @llm
end

#preserve_markupBoolean (readonly)

Returns the value of attribute preserve_markup.

Returns:

  • (Boolean)


2627
2628
2629
# File 'sig/types.rbs', line 2627

def preserve_markup
  @preserve_markup
end

#source_langString? (readonly)

Returns the value of attribute source_lang.

Returns:

  • (String, nil)


2626
2627
2628
# File 'sig/types.rbs', line 2626

def source_lang
  @source_lang
end

#target_langString (readonly)

Returns the value of attribute target_lang.

Returns:

  • (String)


2625
2626
2627
# File 'sig/types.rbs', line 2625

def target_lang
  @target_lang
end