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