| 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__ | ||