| 1 | package Langertha::Output; | ||
| 2 | 2 | our $VERSION = '0.503'; | |
| 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__ | ||
| 42 | |||
| 43 | =pod | ||
| 44 | |||
| 45 | =encoding UTF-8 | ||
| 46 | |||
| 47 | =head1 NAME | ||
| 48 | |||
| 49 | Langertha::Output - Response output transformation helpers | ||
| 50 | |||
| 51 | =head1 VERSION | ||
| 52 | |||
| 53 | version 0.503 | ||
| 54 | |||
| 55 | =head1 SUPPORT | ||
| 56 | |||
| 57 | =head2 Issues | ||
| 58 | |||
| 59 | Please report bugs and feature requests on GitHub at | ||
| 60 | L<https://github.com/Getty/langertha/issues>. | ||
| 61 | |||
| 62 | =head2 IRC | ||
| 63 | |||
| 64 | Join C<#langertha> on C<irc.perl.org> or message Getty directly. | ||
| 65 | |||
| 66 | =head1 CONTRIBUTING | ||
| 67 | |||
| 68 | Contributions are welcome! Please fork the repository and submit a pull request. | ||
| 69 | |||
| 70 | =head1 AUTHOR | ||
| 71 | |||
| 72 | Torsten Raudssus <getty@cpan.org> | ||
| 73 | |||
| 74 | =head1 COPYRIGHT AND LICENSE | ||
| 75 | |||
| 76 | This software is copyright (c) 2026 by Torsten Raudssus L<https://raudssus.de/>. | ||
| 77 | |||
| 78 | This is free software; you can redistribute it and/or modify it under | ||
| 79 | the same terms as the Perl 5 programming language system itself. | ||
| 80 | |||
| 81 | =cut | ||