| 1 | package Langertha::Role::Temperature; | ||
| 2 | # ABSTRACT: Role for an engine that can have a temperature setting | ||
| 3 | 33 | our $VERSION = '0.502'; | |
| 4 | 33 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 33 | has temperature => ( | |
| 7 | isa => 'Num', | ||
| 8 | is => 'ro', | ||
| 9 | predicate => 'has_temperature', | ||
| 10 | ); | ||
| 11 | |||
| 12 | |||
| 13 | |||
| 14 | 33 | 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.502 | ||
| 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 | =head1 SEE ALSO | ||
| 37 | |||
| 38 | =over | ||
| 39 | |||
| 40 | =item * L<Langertha::Role::Seed> - Seed for reproducible outputs | ||
| 41 | |||
| 42 | =item * L<Langertha::Role::ResponseSize> - Limit response token count | ||
| 43 | |||
| 44 | =back | ||
| 45 | |||
| 46 | =head1 SUPPORT | ||
| 47 | |||
| 48 | =head2 Issues | ||
| 49 | |||
| 50 | Please report bugs and feature requests on GitHub at | ||
| 51 | L<https://github.com/Getty/langertha/issues>. | ||
| 52 | |||
| 53 | =head2 IRC | ||
| 54 | |||
| 55 | Join C<#langertha> on C<irc.perl.org> or message Getty directly. | ||
| 56 | |||
| 57 | =head1 CONTRIBUTING | ||
| 58 | |||
| 59 | Contributions are welcome! Please fork the repository and submit a pull request. | ||
| 60 | |||
| 61 | =head1 AUTHOR | ||
| 62 | |||
| 63 | Torsten Raudssus <getty@cpan.org> | ||
| 64 | |||
| 65 | =head1 COPYRIGHT AND LICENSE | ||
| 66 | |||
| 67 | This software is copyright (c) 2026 by Torsten Raudssus L<https://raudssus.de/>. | ||
| 68 | |||
| 69 | This is free software; you can redistribute it and/or modify it under | ||
| 70 | the same terms as the Perl 5 programming language system itself. | ||
| 71 | |||
| 72 | =cut | ||