blib/lib/Langertha/Role/Temperature.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 7 / 7 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« blib/lib/Langertha/Role/SystemPrompt.pm ↑ Summary blib/lib/Langertha/Stream/Chunk.pm »
1 package Langertha::Role::Temperature;
2 # ABSTRACT: Role for an engine that can have a temperature setting
3 178 our $VERSION = '0.503';
4 178 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 178 has temperature => (
7 isa => 'Num',
8 is => 'ro',
9 predicate => 'has_temperature',
10 );
11  
12  
13  
14 178 1;
15  
16 __END__
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 Langertha::Role::Temperature - Role for an engine that can have a temperature setting
25  
26 =head1 VERSION
27  
28 version 0.503
29  
30 =head2 temperature
31  
32 Sampling temperature as a number. Higher values (e.g. C<0.9>) make output more
33 random; lower values (e.g. C<0.1>) make it more focused and deterministic. When
34 not set, the engine's API default is used.
35  
36 Where the selected model does not take a temperature (or, on OpenAI reasoning
37 models, not while reasoning is active), a value other than C<1> is left off the
38 wire with a warning that names your call site. Set on the engine, it warns once
39 per engine instance; passed per request, on every request.
40  
41 =head1 SEE ALSO
42  
43 =over
44  
45 =item * L<Langertha::Role::Seed> - Seed for reproducible outputs
46  
47 =item * L<Langertha::Role::ResponseSize> - Limit response token count
48  
49 =back
50  
51 =head1 SUPPORT
52  
53 =head2 Issues
54  
55 Please report bugs and feature requests on GitHub at
56 L<https://github.com/Getty/langertha/issues>.
57  
58 =head2 IRC
59  
60 Join C<#langertha> on C<irc.perl.org> or message Getty directly.
61  
62 =head1 CONTRIBUTING
63  
64 Contributions are welcome! Please fork the repository and submit a pull request.
65  
66 =head1 AUTHOR
67  
68 Torsten Raudssus <getty@cpan.org>
69  
70 =head1 COPYRIGHT AND LICENSE
71  
72 This software is copyright (c) 2026 by Torsten Raudssus L<https://raudssus.de/>.
73  
74 This is free software; you can redistribute it and/or modify it under
75 the same terms as the Perl 5 programming language system itself.
76  
77 =cut
« blib/lib/Langertha/Role/SystemPrompt.pm ↑ Summary blib/lib/Langertha/Stream/Chunk.pm »