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)


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

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

Instance Attribute Details

#chunks_processedInteger?

Returns the value of attribute chunks_processed.

Returns:

  • (Integer, nil)


17
18
19
# File 'sig/types.rbs', line 17

def chunks_processed
  @chunks_processed
end

#completion_tokensInteger?

Returns the value of attribute completion_tokens.

Returns:

  • (Integer, nil)


15
16
17
# File 'sig/types.rbs', line 15

def completion_tokens
  @completion_tokens
end

#costFloat?

Returns the value of attribute cost.

Returns:

  • (Float, nil)


13
14
15
# File 'sig/types.rbs', line 13

def cost
  @cost
end

#modelString?

Returns the value of attribute model.

Returns:

  • (String, nil)


16
17
18
# File 'sig/types.rbs', line 16

def model
  @model
end

#prompt_tokensInteger?

Returns the value of attribute prompt_tokens.

Returns:

  • (Integer, nil)


14
15
16
# File 'sig/types.rbs', line 14

def prompt_tokens
  @prompt_tokens
end