Chorus
view release on metacpan or search on metacpan
lib/Chorus/Engine/AIAgent.pod view on Meta::CPAN
=encoding UTF-8
=head1 NAME
Chorus::Engine::AIAgent - AI agent integration for compliance-validation applications
=head1 VERSION
2.01
=head1 DESCRIPTION
Starting with version 2.01, C<Chorus::Engine> ships an optional companion
directory, C<agent/>, that turns the inference engine into a B<normed-corpus
compliance-validation platform> when used together with an B<AI agent>
(Claude, Copilot, ECAâ¦).
The companion provides:
=over 4
=item * B<Agent knowledge templates> â org-mode files that capture the
domain knowledge extracted from normative corpora (standards, DTUs, Eurocodes,
regulationsâ¦) for each pipeline agent.
=item * B<Six AI agent skills> â reusable prompt-driven workflows
(C<chorus-pdf>, C<chorus-feed>, C<chorus-create-project>,
C<chorus-import-project>, C<chorus-check>, C<chorus-strengthen>) that drive
an AI agent to build and run complete validation applications from a corpus.
=back
The resulting workflow is entirely deterministic: the rules are derived from
the corpus, encoded as transparent YAML files, and executed verbatim by the
Chorus inference engine â no LLM in the hot path.
=head1 OVERVIEW
The architecture connects three layers:
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Normative corpus (PDF, DTU, Eurocode, regulationâ¦) â
ââââââââââââââââââââââââââ¬ââââââââââââââââââââââââââââââââââ
â chorus-pdf (optional, PDF input)
â chorus-feed
â¼
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â KB org-mode (agent/agents/<slug>.org) â
â · Frames catalogue · Slot dictionary â
â · Rules catalogue · Perl helpers (normative tables) â
ââââââââââââââââââââââââââ¬ââââââââââââââââââââââââââââââââââ
âââââââââââ´âââââââââââ
chorus-checkâ âchorus-create-project
â¼ â¼
ââââââââââââââââââââââââ ââââââââââââââââââââââââââââ
â YAML rules â â project.json â
â Perl helpers â â (test data or real â
â Feed.pm / Expert.pm â â engineering project) â
â run.pl â ââââââââââââââââââââââââââââ
ââââââââââââââ¬ââââââââââ
â perl run.pl project.json
â¼
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Chorus::Expert pipeline â
â Agent1 â Agent2 â ⦠â AgentN (termination) â
ââââââââââââââââââââââââââ¬ââââââââââââââââââââââââââââââââââ
â
â¼
Compliance report (stdout)
=head1 AI AGENT SKILLS
The skills live in C<agent/skills/> and are loaded on demand by the AI agent.
They cover the entire lifecycle of a compliance-validation application.
=head2 chorus-pdf
chorus-pdf <sandbox-name> <file.pdf> [--out <slug>] [--auto] [--images]
Extracts a PDF corpus into a plain-text or Markdown file suitable for
C<chorus-feed>. Three extraction modes are available:
=over 4
=item * B<Text mode> (default) â C<pdfminer.six>, no API key required.
=item * B<Auto mode> (C<--auto>) â pdfminer for text pages, LLM vision for
figure and table pages. Recommended for mixed technical documents.
=item * B<Images mode> (C<--images>) â LLM vision on every page. Best for
scanned PDFs or diagram-heavy documents.
=back
( run in 0.733 second using v1.01-cache-2.11-cpan-7fcb06a456a )