NAME

Claude::Agent::Message - Message types for Claude Agent SDK

SYNOPSIS

use Claude::Agent::Message;

# Messages are returned from query iteration
while (my $msg = $iter->next) {
    if ($msg->isa('Claude::Agent::Message::Result')) {
        print $msg->result, "\n";
    }
}

DESCRIPTION

This module contains all message types returned by the Claude Agent SDK.

MESSAGE TYPES

METHODS

from_json

my $msg = Claude::Agent::Message->from_json($data);

Factory method to create the appropriate message type from JSON data.

AUTHOR

LNATION, <email at lnation.org>

LICENSE

This software is Copyright (c) 2026 by LNATION.

This is free software, licensed under The Artistic License 2.0 (GPL Compatible).