NAME
Praxo::Core - embeddable AI agent framework for Perl
SYNOPSIS
use Praxo::Models ();
use Praxo::Agent ();
my $model = Praxo::Agent::StaticModel->new('hello');
my $options = Praxo::Agent::AgentOptions->new($model);
my $result = Praxo::Agent::run_agent(
$options,
Praxo::Models::session(id => 'demo'),
'hello',
);
print $result->{output};
DESCRIPTION
PRAXO-CORE is an embeddable, MIT-licensed AI agent framework. This distribution is its native Perl Core: an agent loop with tool registration and dispatch, policy hooks, human-in-the-loop interrupt decisions, typed events, memory, checkpoints, context budgets, middleware, OpenTelemetry and Harmovela sinks, MCP, retriever and synchronous delegation seams, JSON Schema validation, and plugin manifest parsing.
It is not an HTTP user agent, web crawler, or hosted AI agent service. HTTP is used by optional adapters to communicate with model providers and external services.
FEATURES
Native Perl agent loop with tool registration and dispatch.
Policy hooks, explicit tool scope, final-argument reauthorization, and human-in-the-loop approve, edit, reject, and respond decisions.
Typed events, memory, checkpoints, context budgets, middleware, JSON Schema, and plugin manifests.
OpenAI-compatible, Anthropic, and Gemini adapters with SSE streaming.
MCP, OpenTelemetry, Harmovela, retriever, and synchronous delegation seams.
MIT-licensed and Perl core modules only.
QUICK START
Install the distribution:
cpanm Praxo::Core
Then run the smallest deterministic example:
use lib 'language/perl/lib';
use Praxo::Models ();
use Praxo::Agent ();
my $model = Praxo::Agent::StaticModel->new('hello');
my $options = Praxo::Agent::AgentOptions->new($model);
my $result = Praxo::Agent::run_agent(
$options,
Praxo::Models::session(id => 'demo'),
'hello',
);
print $result->{output};
Tools register on the options object:
my $registry = Praxo::Agent::ToolRegistry->new;
$registry->register(Praxo::Agent::FuncTool->new('echo', 'Echo arguments', sub {
return $_[0];
}));
$options->{tools} = $registry;
EXAMPLES
Runnable examples are in the repository:
Consumer starter (allow/deny): https://github.com/axisvela/praxo-core/tree/main/language/perl/examples/consumer
Live model: https://github.com/axisvela/praxo-core/tree/main/language/perl/examples/live-model
Full example index: https://github.com/axisvela/praxo-core/tree/main/language/perl/examples
LIMITS
Core is an execution framework, not a model provider, hosted agent service, crawler, workflow engine, or production sandbox.
Checkpoints are recovery hints, not transactions. Core does not provide durable execution, exactly-once effects, or an effect ledger.
Provider credentials, authentication, retries, and durable state remain application-owned.
Go remains the reference implementation; full Go feature parity is not claimed.
DOCUMENTATION
Language documentation: https://axisvela.github.io/praxo-core/languages/perl/
Contract and scope: https://axisvela.github.io/praxo-core/languages/matrix/
Registry introduction: https://github.com/axisvela/praxo-core/blob/main/language/perl/REGISTRY.md
LICENSE
MIT. See LICENSE.