File Coverage

blib/lib/AI/Ollama/PullModelResponse.pm
Criterion Covered Total %
statement 20 24 83.3
branch n/a
condition n/a
subroutine 7 8 87.5
pod 0 1 0.0
total 27 33 81.8


line stmt bran cond sub pod time code
1             package AI::Ollama::PullModelResponse 0.05;
2             # DO NOT EDIT! This is an autogenerated file.
3              
4 1     1   21 use 5.020;
  1         4  
5 1     1   5 use Moo 2;
  1         31  
  1         9  
6 1     1   435 use experimental 'signatures';
  1         2  
  1         7  
7 1     1   194 use stable 'postderef';
  1         2  
  1         7  
8 1     1   88 use Types::Standard qw(Enum Str Bool Num Int HashRef ArrayRef);
  1         2  
  1         8  
9 1     1   2837 use MooX::TypeTiny;
  1         2  
  1         8  
10              
11 1     1   974 use namespace::clean;
  1         3  
  1         8  
12              
13             =encoding utf8
14              
15             =head1 NAME
16              
17             AI::Ollama::PullModelResponse -
18              
19             =head1 SYNOPSIS
20              
21             my $obj = AI::Ollama::PullModelResponse->new();
22             ...
23              
24             =cut
25              
26 0     0 0   sub as_hash( $self ) {
  0            
  0            
27 0           return { $self->%* }
28             }
29              
30             =head1 PROPERTIES
31              
32             =head2 C<< completed >>
33              
34             Total bytes transferred.
35              
36             =cut
37              
38             has 'completed' => (
39             is => 'ro',
40             isa => Int,
41             );
42              
43             =head2 C<< digest >>
44              
45             The model's digest.
46              
47             =cut
48              
49             has 'digest' => (
50             is => 'ro',
51             isa => Str,
52             );
53              
54             =head2 C<< status >>
55              
56             Status pulling the model.
57              
58             =cut
59              
60             has 'status' => (
61             is => 'ro',
62             isa => Enum[
63             "pulling manifest",
64             "downloading digestname",
65             "verifying sha256 digest",
66             "writing manifest",
67             "removing any unused layers",
68             "success",
69             ],
70             );
71              
72             =head2 C<< total >>
73              
74             Total size of the model.
75              
76             =cut
77              
78             has 'total' => (
79             is => 'ro',
80             isa => Int,
81             );
82              
83              
84             1;