Base Platform Adapter • AI Agent SDK

BasePlatformAdapter: Inheritable base class for gateway platform/channel adapters.

BasePlatformAdapter

Defined in the base module.

AI Agent

Inheritable base class for gateway platform/channel adapters.

Subclasses implement a minimal abstract contract (four methods) and inherit capability-driven default behaviour (chunking, retry/backoff, typing heartbeat, edit/delete fallbacks, formatting). Override any default only when the platform can do better.

The base also satisfies the runtime surface `Bot/BotOS drive (start / stop / send_message / probe / health) with defaults built on those primitives, so a minimal subclass runs under the gateway as-is. Bot builds adapters with token= / agent= / config= keyword arguments, so a subclass __init__` should accept them.

Declare platform features by setting the class attribute :attr:capabilities to a :class:PlatformCapabilities instance. The default delivery path reads capabilities via `getattr` so it degrades gracefully when a flag is absent.

Properties

ResponseField PlatformCapabilities

No description available.

ResponseField int

No description available.

ResponseField float

No description available.

ResponseField bool

No description available.

Methods

Source

View on GitHub

praisonaiagents/bots/base.py at line 466