File Coverage

blib/lib/AI/Ollama/GenerateEmbeddingResponse.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::GenerateEmbeddingResponse 0.05;
2             # DO NOT EDIT! This is an autogenerated file.
3              
4 1     1   14 use 5.020;
  1         2  
5 1     1   4 use Moo 2;
  1         9  
  1         5  
6 1     1   261 use experimental 'signatures';
  1         3  
  1         4  
7 1     1   136 use stable 'postderef';
  1         2  
  1         5  
8 1     1   63 use Types::Standard qw(Enum Str Bool Num Int HashRef ArrayRef);
  1         2  
  1         6  
9 1     1   1618 use MooX::TypeTiny;
  1         2  
  1         5  
10              
11 1     1   654 use namespace::clean;
  1         2  
  1         6  
12              
13             =encoding utf8
14              
15             =head1 NAME
16              
17             AI::Ollama::GenerateEmbeddingResponse -
18              
19             =head1 SYNOPSIS
20              
21             my $obj = AI::Ollama::GenerateEmbeddingResponse->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<< embedding >>
33              
34             The embedding for the prompt.
35              
36             =cut
37              
38             has 'embedding' => (
39             is => 'ro',
40             isa => ArrayRef[Num],
41             );
42              
43              
44             1;