=encoding UTF-8 =head1 NAME Praxo::Core - embeddable AI agent framework for Perl =head1 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}; =head1 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. =head1 FEATURES =over 4 =item * Native Perl agent loop with tool registration and dispatch. =item * Policy hooks, explicit tool scope, final-argument reauthorization, and human-in-the-loop approve, edit, reject, and respond decisions. =item * Typed events, memory, checkpoints, context budgets, middleware, JSON Schema, and plugin manifests. =item * OpenAI-compatible, Anthropic, and Gemini adapters with SSE streaming. =item * MCP, OpenTelemetry, Harmovela, retriever, and synchronous delegation seams. =item * MIT-licensed and Perl core modules only. =back =head1 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; =head1 EXAMPLES Runnable examples live in the repository: =over 4 =item * C: install and deny one unsafe call. L =item * C: connect a real model. L =item * C: connect MCP tools. L =item * C: validate structured output. L =item * C: stream a response. L =item * C: add identity and policy. L =item * C: require human approval. L =item * C: persist checkpoints. L =item * C: run behind HTTP. L =item * C: resume a multi-turn session. L =item * C: retry transient failures. L =item * C: add provider fallback. L =item * C: observe agent events. L =item * C: run the representative chain. L =item * C: apply governed delegation. L =item * Full example index: L =back =head1 SCENARIO TUTORIALS =over 4 =item * C: fixed synthetic issues produce four classified items and a review-only reviewer request. No GitHub API, closure, or impersonation. L =item * C: fixed policy versions yield two changed sections and a duplicate removal; Core drafts review-only remediation. No filing, audit conclusion, or live source. L =item * C: fixed market rules produce a review-only localized text draft. No translation engine, CMS, or publication. L =item * C: one fixed C tool reads the tutorial's log fixture and returns severity counts. L =item * C: compares fixed source excerpts for one synthetic article, cites a contradiction, and drafts a review-only fact-check. No truth-verification service. L =item * Tutorial index: L =back =head1 REFERENCE APPLICATIONS No accepted end-to-end reference application is recorded for this language yet. Candidate goals are tracked in the Reference Application Portfolio: L Planning context: L, L, and L. =head1 LIMITS =over 4 =item * Core is an execution framework, not a model provider, hosted agent service, crawler, workflow engine, or production sandbox. =item * Checkpoints are recovery hints, not transactions. Core does not provide durable execution, exactly-once effects, or an effect ledger. =item * Provider credentials, authentication, retries, and durable state remain application-owned. =item * Go remains the reference implementation; full Go feature parity is not claimed. =back =head1 DOCUMENTATION =over 4 =item * Language documentation: L =item * Contract and scope: L =item * Registry introduction: L =back =head1 COMMUNITY =over 4 =item * GitHub Discussions: L =item * GitHub Issues: L =item * X: L =item * Weibo: L =item * LinkedIn: L =item * Facebook: L =item * YouTube: L =item * Discord: L =item * Documentation: L =item * Architect: L =back =head1 LICENSE MIT. See F. =cut