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)


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

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:



336
337
338
# File 'sig/types.rbs', line 336

def llm
  @llm
end

#promptString (readonly)

Returns the value of attribute prompt.

Returns:

  • (String)


335
336
337
# File 'sig/types.rbs', line 335

def prompt
  @prompt
end

#schemajson_value (readonly)

Returns the value of attribute schema.

Returns:

  • (json_value)


331
332
333
# File 'sig/types.rbs', line 331

def schema
  @schema
end

#schema_descriptionString (readonly)

Returns the value of attribute schema_description.

Returns:

  • (String)


333
334
335
# File 'sig/types.rbs', line 333

def schema_description
  @schema_description
end

#schema_nameString (readonly)

Returns the value of attribute schema_name.

Returns:

  • (String)


332
333
334
# File 'sig/types.rbs', line 332

def schema_name
  @schema_name
end

#strictBoolean (readonly)

Returns the value of attribute strict.

Returns:

  • (Boolean)


334
335
336
# File 'sig/types.rbs', line 334

def strict
  @strict
end