| 1 | package LLM::API::Usage; | ||
| 2 | |||
| 3 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 6 | ▶ | use English qw(-no_match_vars); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 6 | ▶ | use Data::Dumper; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 6 | our @ACCESSORS = qw( | |
| 10 | input_tokens | ||
| 11 | cache_creation_input_tokens | ||
| 12 | cache_read_input_tokens | ||
| 13 | output_tokens | ||
| 14 | cache_creation | ||
| 15 | ); | ||
| 16 | |||
| 17 | 6 | __PACKAGE__->mk_accessors(@ACCESSORS); | |
| 18 | |||
| 19 | 6 | ▶ | use parent qw(Class::Accessor::Fast); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | 6 | our $VERSION = '1.0.0'; | |
| 22 | |||
| 23 | ######################################################################## | ||
| 24 | 12 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 25 | ######################################################################## | ||
| 26 | 12 | my ( $class, $usage ) = @_; | |
| 27 | |||
| 28 | 12 | my $self = $class->SUPER::new($usage); | |
| 29 | |||
| 30 | 12 | return $self; | |
| 31 | } | ||
| 32 | |||
| 33 | ######################################################################## | ||
| 34 | 0 | ▶ | sub ephemeral_5m_input_tokens { |
|
Subroutine
ephemeral_5m_input_tokens: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 35 | ######################################################################## | ||
| 36 | 0 | my ($self) = @_; | |
| 37 | 0 | return $self->cache_creation->{ephemeral_5m_input_tokens}; | |
| 38 | } | ||
| 39 | |||
| 40 | ######################################################################## | ||
| 41 | 0 | ▶ | sub ephemeral_1h_input_tokens { |
|
Subroutine
ephemeral_1h_input_tokens: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 42 | ######################################################################## | ||
| 43 | 0 | my ($self) = @_; | |
| 44 | |||
| 45 | 0 | return $self->cache_creation->{ephemeral_1h_input_tokens}; | |
| 46 | } | ||
| 47 | |||
| 48 | 6 | 1; | |