blib/lib/Langertha/Input.pm

filter: Statementstmt 100% 27 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 0.0% 0 / 6 totaltotal 86.0% 37 / 43 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Langertha/UsageRecord.pm ↑ Summary blib/lib/Langertha/Engine/LlamaCpp.pm »
1 package Langertha::Input;
2 2 our $VERSION = '0.503';
3 # ABSTRACT: Request input transformation helpers
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use Langertha::Input::Tools;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 Carp::carp(
10 "Langertha::Input is a backwards-compatibility facade. New code should use "
11 . "Langertha::Tool / Langertha::ToolChoice directly."
12 );
13  
14 1 ▶sub normalize_tools {
Subroutine normalize_tools: called CC=1 SCAR=0.0
Pod undocumented
15 1 shift;
16 1 return Langertha::Input::Tools->normalize_tools(@_);
17 }
18  
19 1 ▶sub to_openai_tools {
Subroutine to_openai_tools: called CC=1 SCAR=0.0
Pod undocumented
20 1 shift;
21 1 return Langertha::Input::Tools->to_openai_tools(@_);
22 }
23  
24 1 ▶sub to_anthropic_tools {
Subroutine to_anthropic_tools: called CC=1 SCAR=0.0
Pod undocumented
25 1 shift;
26 1 return Langertha::Input::Tools->to_anthropic_tools(@_);
27 }
28  
29 2 ▶sub normalize_tool_choice {
Subroutine normalize_tool_choice: called CC=1 SCAR=0.0
Pod undocumented
30 2 shift;
31 2 return Langertha::Input::Tools->normalize_tool_choice(@_);
32 }
33  
34 1 ▶sub to_openai_tool_choice {
Subroutine to_openai_tool_choice: called CC=1 SCAR=0.0
Pod undocumented
35 1 shift;
36 1 return Langertha::Input::Tools->to_openai_tool_choice(@_);
37 }
38  
39 1 ▶sub to_anthropic_tool_choice {
Subroutine to_anthropic_tool_choice: called CC=1 SCAR=0.0
Pod undocumented
40 1 shift;
41 1 return Langertha::Input::Tools->to_anthropic_tool_choice(@_);
42 }
43  
44 2 1;
45  
46 __END__
47  
48 =pod
49  
50 =encoding UTF-8
51  
52 =head1 NAME
53  
54 Langertha::Input - Request input transformation helpers
55  
56 =head1 VERSION
57  
58 version 0.503
59  
60 =head1 SUPPORT
61  
62 =head2 Issues
63  
64 Please report bugs and feature requests on GitHub at
65 L<https://github.com/Getty/langertha/issues>.
66  
67 =head2 IRC
68  
69 Join C<#langertha> on C<irc.perl.org> or message Getty directly.
70  
71 =head1 CONTRIBUTING
72  
73 Contributions are welcome! Please fork the repository and submit a pull request.
74  
75 =head1 AUTHOR
76  
77 Torsten Raudssus <getty@cpan.org>
78  
79 =head1 COPYRIGHT AND LICENSE
80  
81 This software is copyright (c) 2026 by Torsten Raudssus L<https://raudssus.de/>.
82  
83 This is free software; you can redistribute it and/or modify it under
84 the same terms as the Perl 5 programming language system itself.
85  
86 =cut
« blib/lib/Langertha/UsageRecord.pm ↑ Summary blib/lib/Langertha/Engine/LlamaCpp.pm »