AI-Anthropic
view release on metacpan or search on metacpan
examples/basic.pl view on Meta::CPAN
#!/usr/bin/perl
# Example: Basic usage of AI::Anthropic
#
# Replace 'your-api-key-here' with your actual Anthropic API key
# Get your key at: https://console.anthropic.com/settings/keys
use strict;
use warnings;
use 5.010;
use FindBin;
use lib "$FindBin::Bin/../lib";
use AI::Anthropic;
lib/AI/Anthropic.pm view on Meta::CPAN
STDOUT->flush;
},
);
=head1 ENVIRONMENT
=over 4
=item ANTHROPIC_API_KEY
Your Anthropic API key. Can be set instead of passing api_key to new().
=back
=head1 SEE ALSO
L<https://docs.anthropic.com/> - Anthropic API documentation
L<OpenAI::API> - Similar module for OpenAI
=head1 AUTHOR
( run in 0.216 second using v1.01-cache-2.11-cpan-0ffa90cfd1c )