Class: Crawlberg::ExtractionMeta

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeExtractionMeta

Returns a new instance of ExtractionMeta.

Parameters:

  • cost: (Float)
  • prompt_tokens: (Integer)
  • completion_tokens: (Integer)
  • model: (String)
  • chunks_processed: (Integer)


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

def initialize: (?cost: Float, ?prompt_tokens: Integer, ?completion_tokens: Integer, ?model: String, ?chunks_processed: Integer) -> void

Instance Attribute Details

#chunks_processedInteger (readonly)

Returns the value of attribute chunks_processed.

Returns:

  • (Integer)


273
274
275
# File 'sig/types.rbs', line 273

def chunks_processed
  @chunks_processed
end

#completion_tokensInteger? (readonly)

Returns the value of attribute completion_tokens.

Returns:

  • (Integer, nil)


271
272
273
# File 'sig/types.rbs', line 271

def completion_tokens
  @completion_tokens
end

#costFloat? (readonly)

Returns the value of attribute cost.

Returns:

  • (Float, nil)


269
270
271
# File 'sig/types.rbs', line 269

def cost
  @cost
end

#modelString? (readonly)

Returns the value of attribute model.

Returns:

  • (String, nil)


272
273
274
# File 'sig/types.rbs', line 272

def model
  @model
end

#prompt_tokensInteger? (readonly)

Returns the value of attribute prompt_tokens.

Returns:

  • (Integer, nil)


270
271
272
# File 'sig/types.rbs', line 270

def prompt_tokens
  @prompt_tokens
end