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: (String)
  • schema_name: (String)
  • schema_description: (String)
  • strict: (Boolean)
  • prompt: (String)
  • llm: (LlmConfig)


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

def initialize: (schema: String, 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:



2443
2444
2445
# File 'sig/types.rbs', line 2443

def llm
  @llm
end

#promptString? (readonly)

Returns the value of attribute prompt.

Returns:

  • (String, nil)


2442
2443
2444
# File 'sig/types.rbs', line 2442

def prompt
  @prompt
end

#schemaString (readonly)

Returns the value of attribute schema.

Returns:

  • (String)


2438
2439
2440
# File 'sig/types.rbs', line 2438

def schema
  @schema
end

#schema_descriptionString? (readonly)

Returns the value of attribute schema_description.

Returns:

  • (String, nil)


2440
2441
2442
# File 'sig/types.rbs', line 2440

def schema_description
  @schema_description
end

#schema_nameString (readonly)

Returns the value of attribute schema_name.

Returns:

  • (String)


2439
2440
2441
# File 'sig/types.rbs', line 2439

def schema_name
  @schema_name
end

#strictBoolean (readonly)

Returns the value of attribute strict.

Returns:

  • (Boolean)


2441
2442
2443
# File 'sig/types.rbs', line 2441

def strict
  @strict
end