ABS Core
Technical

Documentation Entry

Technical and Commercial guidelines for ABS Core.

Native Integration: PydanticAI + ABS Core

Typed and Validatable Governance for Production Agents

The rise of PydanticAI requires a governance system that understands typed data structures. ABS Core v10.1.5 integrates perfectly into the Pydantic ecosystem.


1. Real-Time Schema Validation

Unlike solutions that treat everything as plain text, ABS Core understands PydanticAI models. It validates whether the agent's output complies with the expected schema before it reaches the application.

2. Structured Prompt Governance

We use CHI to analyze variables injected into Pydantic models, preventing indirect prompt injections attempting to bypass defined types.

3. Usage Example

from pydantic_ai import Agent
from abs_core.adapters import PydanticABSAdapter

agent = Agent(
    'openai:gpt-4o',
    deps_type=MyDeps,
    result_type=MyResult,
    instrument=PydanticABSAdapter(tenant_id="...") # Audit and Governance
)

Verdict: ABS Core turns the "hope" that an AI obeys the schema into a cryptographic guarantee registered on the Ledger.

On this page