NAME

async_await.pl - Demonstrate Langertha with Future::AsyncAwait

DESCRIPTION

This script demonstrates the various ways to use Langertha's async/await functionality powered by Future::AsyncAwait.

FEATURES DEMONSTRATED

  • Simple async chat requests

  • Streaming with real-time callbacks

  • Concurrent requests

  • Error handling in async context

REQUIREMENTS

Requires ANTHROPIC_API_KEY environment variable to be set.

USAGE

export ANTHROPIC_API_KEY=your-key-here
perl ex/async_await.pl