middleware • AI Agent SDK

Runtime Tool Result Middleware Protocol.

middleware

AI Agent

Runtime Tool Result Middleware Protocol.

Defines the interface for normalizing tool results from plugin harnesses before they reach hooks and memory adapters.

Protocol-driven design following AGENTS.md:

  • Lightweight protocols only (no implementations)
  • Dataclasses for configuration
  • Async-first with proper typing

Import

python
from praisonaiagents.runtime import middleware

Classes


Related Documentation