blib/lib/Langertha/Output.pm

filter: Statementstmt 84.0% 21 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 77.7% 7 / 9 Podpod 0.0% 0 / 5 totaltotal 71.7% 28 / 39 CC 1 SCAR 2.0
CC
1
Cov
84%
to_openai_tool_calls
2.0
to_anthropic_tool_use_blocks
2.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Langertha/Role/Seed.pm ↑ Summary blib/lib/Langertha/Engine/AKIOpenAI.pm »
1 package Langertha::Output;
2 2 our $VERSION = '0.505';
3 # ABSTRACT: Response output 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::Output::Tools;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 Carp::carp(
10 "Langertha::Output is a backwards-compatibility facade. New code should use "
11 . "Langertha::ToolCall directly."
12 );
13  
14 1 ▶sub extract_from_raw {
Subroutine extract_from_raw: called CC=1 SCAR=0.0
Pod undocumented
15 1 shift;
16 1 return Langertha::Output::Tools->extract_from_raw(@_);
17 }
18  
19 1 ▶sub parse_hermes_calls_from_text {
Subroutine parse_hermes_calls_from_text: called CC=1 SCAR=0.0
Pod undocumented
20 1 shift;
21 1 return Langertha::Output::Tools->parse_hermes_calls_from_text(@_);
22 }
23  
24 0 ▶sub to_openai_tool_calls {
Subroutine to_openai_tool_calls: not called CC=1 SCAR=6.9
Pod undocumented
25 0 shift;
26 0 return Langertha::Output::Tools->to_openai_tool_calls(@_);
27 }
28  
29 0 ▶sub to_anthropic_tool_use_blocks {
Subroutine to_anthropic_tool_use_blocks: not called CC=1 SCAR=6.9
Pod undocumented
30 0 shift;
31 0 return Langertha::Output::Tools->to_anthropic_tool_use_blocks(@_);
32 }
33  
34 1 ▶sub to_ollama_tool_calls {
Subroutine to_ollama_tool_calls: called CC=1 SCAR=0.0
Pod undocumented
35 1 shift;
36 1 return Langertha::Output::Tools->to_ollama_tool_calls(@_);
37 }
38  
39 2 1;
40  
41 __END__
« blib/lib/Langertha/Role/Seed.pm ↑ Summary blib/lib/Langertha/Engine/AKIOpenAI.pm »