Class: Xberg::StructuredExtractionConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStructuredExtractionConfig

Returns a new instance of StructuredExtractionConfig.

Parameters:

  • schema: (json_value)
  • schema_name: (String)
  • schema_description: (String)
  • strict: (Boolean)
  • prompt: (String)
  • llm: (LlmConfig)


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

def initialize: (schema: json_value, schema_name: String, ?schema_description: String, strict: bool, ?prompt: String, llm: LlmConfig) -> void

Instance Attribute Details

#llmLlmConfig (readonly)

Returns the value of attribute llm.

Returns:



312
313
314
# File 'sig/types.rbs', line 312

def llm
  @llm
end

#promptString (readonly)

Returns the value of attribute prompt.

Returns:

  • (String)


311
312
313
# File 'sig/types.rbs', line 311

def prompt
  @prompt
end

#schemajson_value (readonly)

Returns the value of attribute schema.

Returns:

  • (json_value)


307
308
309
# File 'sig/types.rbs', line 307

def schema
  @schema
end

#schema_descriptionString (readonly)

Returns the value of attribute schema_description.

Returns:

  • (String)


309
310
311
# File 'sig/types.rbs', line 309

def schema_description
  @schema_description
end

#schema_nameString (readonly)

Returns the value of attribute schema_name.

Returns:

  • (String)


308
309
310
# File 'sig/types.rbs', line 308

def schema_name
  @schema_name
end

#strictBoolean (readonly)

Returns the value of attribute strict.

Returns:

  • (Boolean)


310
311
312
# File 'sig/types.rbs', line 310

def strict
  @strict
end