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.505';
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__
« blib/lib/Langertha/UsageRecord.pm ↑ Summary blib/lib/Langertha/Engine/LlamaCpp.pm »