| 1 | package Langertha::Input; | ||
| 2 | 2 | our $VERSION = '0.502'; | |
| 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 | sub normalize_tools { | ||
| 15 | 1 | ▶ | shift; |
|
Subroutine
normalize_tools: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 16 | 1 | return Langertha::Input::Tools->normalize_tools(@_); | |
| 17 | } | ||
| 18 | |||
| 19 | sub to_openai_tools { | ||
| 20 | 1 | ▶ | shift; |
|
Subroutine
to_openai_tools: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 21 | 1 | return Langertha::Input::Tools->to_openai_tools(@_); | |
| 22 | } | ||
| 23 | |||
| 24 | sub to_anthropic_tools { | ||
| 25 | 1 | ▶ | shift; |
|
Subroutine
to_anthropic_tools: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 26 | 1 | return Langertha::Input::Tools->to_anthropic_tools(@_); | |
| 27 | } | ||
| 28 | |||
| 29 | sub normalize_tool_choice { | ||
| 30 | 2 | ▶ | shift; |
|
Subroutine
normalize_tool_choice: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 31 | 2 | return Langertha::Input::Tools->normalize_tool_choice(@_); | |
| 32 | } | ||
| 33 | |||
| 34 | sub to_openai_tool_choice { | ||
| 35 | 1 | ▶ | shift; |
|
Subroutine
to_openai_tool_choice: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 36 | 1 | return Langertha::Input::Tools->to_openai_tool_choice(@_); | |
| 37 | } | ||
| 38 | |||
| 39 | sub to_anthropic_tool_choice { | ||
| 40 | 1 | ▶ | shift; |
|
Subroutine
to_anthropic_tool_choice: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 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.502 | ||
| 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 | ||