AI Agent Templates#
These templates provide ready-to-use instructions for AI agents integrating ArgDigest into a new library. Choose the style that matches the desired architecture.
The style choice concerns axis 2, how per-argument digesters are discovered. Every
template also covers axis 1, the function argument contract, which is independent of
the style: a closed signature is held to its own parameters with no declaration, and a
function taking **kwargs declares the domain those keywords come from.
Which template to use#
package_style: one file per argument in a digestion package.registry_style: centralizedargument -> functionmapping.decorator_style: registration via decorators across modules.mixed_style: migration periods where multiple styles coexist.
Validation after template-based integration#
After applying a template in a host library:
confirm decorated entry points are calling digesters,
verify at least one invalid-input path produces expected diagnostics,
verify a mistyped keyword is refused rather than ignored,
confirm every public callable is decorated, and every
**kwargsfunction declares its domain — an undeclared one admits anything,confirm docs/examples in the host library match implemented style.