Skip to main content
NiadraCapability is a Pydantic AI capability: its instructions are the pack, rendered on every model request, and its toolset is the history kit. Python only.

Install

The five primitives

Minimal example

The same code is in examples/pydantic_ai_agent.py.

Agent memory

NiadraCapability(conversation, agent_memory=True) puts the agent’s own notes before the customer’s context and adds the two tools to the toolset. See Agent memory.

Limits

  • Nothing here fails the run: without a pack, the capability’s instructions are empty.
  • Tested against pydantic-ai-slim 2.49 with the model replaced by a fake and Niadra on the emulator.

Next steps

History navigation

the three tools the agent receives.

Agent memory

the agent’s own working notes.